:root {
  --paper: #f3f6f9;
  --surface: #ffffff;
  --ink: #243449;
  --ink-soft: #62748a;
  --line: #dfe7ee;
  --primary: #127b76;
  --primary-strong: #08645f;
  --coral: #b65c14;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
}
h1 {
  font-size: 18px;
  margin: 0 0 4px;
}
.sub {
  color: var(--ink-soft);
  font-size: 12px;
  margin-bottom: 16px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.tab.active {
  border-color: var(--primary);
  color: var(--primary-strong);
  background: #e8f4f1;
}
.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.row-title {
  font-size: 14px;
  font-weight: 800;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card .v {
  font-size: 22px;
  font-weight: 900;
}
.card .l {
  color: var(--ink-soft);
  font-size: 12px;
}
.card.warn .v {
  color: var(--coral);
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.chip {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chip.active {
  border-color: var(--primary);
  color: var(--primary-strong);
  background: #e8f4f1;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
th {
  background: #edf2f6;
  color: var(--ink-soft);
  font-size: 12px;
}
th:first-child,
td:first-child {
  text-align: left;
}
tr:last-child td {
  border-bottom: none;
}
input[type="text"],
input[type="password"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
.btn {
  display: inline-block;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.btn:active {
  background: var(--primary-strong);
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.note {
  color: var(--ink-soft);
  font-size: 12px;
  padding: 12px 2px;
}
.empty {
  color: var(--ink-soft);
  font-size: 13px;
  padding: 18px 2px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.kv:last-child {
  border-bottom: none;
}
.kv b {
  font-weight: 800;
}
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.badge.ok {
  background: #e8f8ee;
  color: #1e8e4e;
}
.badge.pend {
  background: #fff3e0;
  color: #b26a00;
}
.badge.off {
  background: #edf2f6;
  color: #9b7b4f;
}
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
}
/* 登录层 */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(61, 48, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.login {
  width: 320px;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.login h2 {
  margin: 0;
  font-size: 16px;
}
.login p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.login input {
  width: 100%;
}
.err {
  color: var(--coral);
  font-size: 12px;
  min-height: 16px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: rgba(61, 48, 39, 0.9);
  color: #fff;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  display: none;
  z-index: 20;
}
/* 图表与环比 */
.delta {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.delta.up {
  color: #1e8e4e;
}
.delta.down {
  color: #c0392b;
}
.chart-box {
  padding: 10px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.chart-box svg {
  width: 100%;
  height: auto;
  display: block;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 2px 4px 6px;
  color: var(--ink-soft);
  font-size: 11px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
}
.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.funnel-label {
  width: 110px;
  flex: none;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: right;
}
.funnel-track {
  flex: 1;
  background: #edf2f6;
  border-radius: 8px;
  overflow: hidden;
}
.funnel-bar {
  min-width: 34px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.funnel-rate {
  width: 92px;
  flex: none;
  font-size: 12px;
  color: var(--ink-soft);
}
.section-note {
  color: var(--ink-soft);
  font-size: 11px;
  margin-top: 4px;
}
/* 用户页：概览卡条（一行小卡，可点击筛选） */
.stat-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.stat-card {
  flex: 1 1 0;
  min-width: 96px;
  padding: 9px 12px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
}
.stat-card:hover {
  border-color: #d9c9a8;
}
.stat-card.active {
  border-color: var(--primary);
  background: #e8f4f1;
}
.stat-card .v {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}
.stat-card .l {
  color: var(--ink-soft);
  font-size: 11px;
}
.stat-card.warn .v {
  color: var(--coral);
}
/* 用户状态小标签（克制的五色系：绿/琥珀/蓝/沙/灰绿） */
.st {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.st-paid {
  background: #e8f8ee;
  color: #1e8e4e;
}
.st-converting {
  background: #fff3e0;
  color: #b26a00;
}
.st-new,
.st-active {
  background: #e3f3fd;
  color: #1f8fd0;
}
.st-experiencing {
  background: #f1ead9;
  color: #8a744e;
}
.st-backflow {
  background: #e6f0ef;
  color: #3d7a72;
}
.st-silent {
  background: #edf2f6;
  color: #9b7b4f;
}
.user-name {
  font-weight: 700;
}
.user-sub {
  color: var(--ink-soft);
  font-size: 11px;
}
.identity-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.identity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #edf2f6;
  flex: none;
}
.identity-avatar.empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11px;
  background: #edf2f6;
  color: #7c6647;
  margin: 0 4px 4px 0;
  font-weight: 600;
}
.tag.hot {
  background: #fff3e0;
  color: #b26a00;
}
#usersTableWrap {
  overflow-x: auto;
}
#usersTableWrap table {
  min-width: 860px;
}
#usersTableWrap tbody tr {
  cursor: pointer;
}
#usersTableWrap tbody tr:hover {
  background: #eff7f6;
}
#ordersTableWrap {
  overflow-x: auto;
}
#ordersTableWrap tbody tr {
  cursor: pointer;
}
#ordersTableWrap tbody tr:hover {
  background: #eff7f6;
}
#auditTableWrap {
  overflow-x: auto;
}
/* 作品处置：抽屉内作品表 + 目标行高亮（分享码直查定位） */
.works-table th,
.works-table td {
  font-size: 12px;
  padding: 7px 8px;
}
.works-table tbody tr.hl td {
  background: #e8f4f1;
}
.btn.danger {
  background: var(--coral);
}
.btn.danger:active {
  background: #c96a22;
}
/* 用户详情抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(61, 48, 39, 0.28);
  z-index: 14;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 42%;
  min-width: 430px;
  max-width: 660px;
  background: var(--paper);
  box-shadow: -8px 0 24px rgba(61, 48, 39, 0.18);
  z-index: 15;
  display: flex;
  flex-direction: column;
}
.drawer-head {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px 24px;
}
.drawer-close {
  float: right;
}
.tl-row {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.tl-row:last-child {
  border-bottom: none;
}
.tl-time {
  flex: none;
  width: 108px;
  color: var(--ink-soft);
  font-size: 12px;
  padding-top: 1px;
}
.tl-text {
  flex: 1;
}
.tl-detail {
  color: var(--ink-soft);
  font-size: 11px;
}
/* 运维备注 */
.note-dot {
  font-size: 12px;
  cursor: help;
}
.note-card textarea {
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font:
    13px/1.6 -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.note-card textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mini-stat {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}
.mini-stat .v {
  font-size: 17px;
  font-weight: 800;
}
.mini-stat .l {
  color: var(--ink-soft);
  font-size: 11px;
}
@media (max-width: 900px) {
  .drawer {
    width: 100%;
    min-width: 0;
  }
}
/* Console layout and component hierarchy */
body {
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #15968c;
  outline-offset: 3px;
}
a {
  color: var(--primary-strong);
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  filter: brightness(0.96);
}
.skip-link {
  position: fixed;
  left: 240px;
  top: -60px;
  padding: 12px;
  background: #fff;
  z-index: 40;
}
.skip-link:focus {
  top: 8px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  display: flex;
  flex-direction: column;
  background: #183348;
  color: #c5d3df;
  padding: 28px 16px 18px;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 30px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  height: 42px;
  width: 42px;
  border-radius: 13px 13px 16px 16px;
  background: #d7efeb;
  color: #183348;
  font-size: 22px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #a7bdcc;
}
.nav-group {
  margin: 23px 12px 8px;
  color: #98afbf;
  font-size: 11px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #c5d3df;
  text-decoration: none;
  padding: 10px 14px;
  margin: 3px 0;
  border-radius: 7px;
  font-size: 13px;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.nav-item:hover {
  background: #264358;
  color: #fff;
}
.nav-item.active {
  color: #fff;
  background: #2b5866;
  box-shadow: inset 3px 0 #8fd1c4;
}
.nav-item.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fd1c4;
  margin-left: auto;
}
.sidebar nav {
  flex: 1;
  overflow-y: auto;
}
.sidebar-foot {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 18px 8px 0;
  border-top: 1px solid #355064;
  font-size: 11px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #92c9bb;
  border-radius: 50%;
}
.logout {
  background: none;
  border: 0;
  color: #bfced9;
  padding: 4px;
  margin-left: auto;
  font-size: 11px;
}
.app-main {
  margin-left: 218px;
  min-width: 0;
}
.topbar {
  height: 58px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-soft);
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.wrap {
  max-width: 1480px;
  padding: 30px 34px 16px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.5px;
  margin: 0;
}
.page-heading p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.refresh-button {
  flex: none;
}
.workspace-footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 16px 0;
  color: var(--ink-soft);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.row-head {
  margin: 24px 0 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.row-title {
  font-size: 15px;
  font-weight: 650;
}
.card {
  border-radius: 9px;
  padding: 20px;
}
.card .v {
  font-size: 26px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
}
.card .l {
  margin-top: 4px;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
}
.btn {
  background: var(--primary);
  border-radius: 6px;
  padding: 9px 15px;
  font-weight: 600;
  line-height: 1.5;
}
.btn.ghost {
  color: var(--ink);
}
.btn.small {
  padding: 6px 11px;
  font-size: 12px;
}
input[type="text"],
input[type="password"],
input[type="date"],
select {
  border: 1px solid #cdd8e2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  height: 38px;
  padding: 0 10px;
  max-width: 100%;
}
.chip {
  border-radius: 6px;
  color: var(--ink-soft);
  font-weight: 500;
}
.chip.active,
.stat-card.active {
  background: #e8f4f1;
  color: #08645f;
  border-color: #87bfb5;
}
.stat-card {
  border-radius: 7px;
}
.stat-card .v {
  font-weight: 650;
}
.stat-card:hover {
  border-color: #87bfb5;
}
th {
  background: #edf2f6;
  color: #52677c;
  font-weight: 600;
  white-space: nowrap;
}
th,
td {
  padding: 12px 14px;
}
td {
  font-variant-numeric: tabular-nums;
}
.table-scroll {
  overflow: auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.table-scroll table {
  border: 0;
  min-width: 620px;
}
.empty {
  background: #fff;
  border: 1px dashed #cdd8e2;
  border-radius: 8px;
  text-align: center;
  padding: 30px 18px;
}
.chart-box {
  border-radius: 9px;
  padding: 18px 16px 10px;
}
.legend {
  font-size: 12px;
  gap: 20px;
  margin-bottom: 12px;
}
.note {
  line-height: 1.8;
}
.funnel-label {
  text-align: left;
}
.mask {
  background: rgba(21, 43, 61, 0.48);
  backdrop-filter: blur(3px);
}
.login {
  width: 360px;
  max-width: calc(100vw - 32px);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 20px 80px #18334833;
}
.login h2 {
  font-size: 21px;
}
.drawer {
  background: var(--paper);
  box-shadow: -10px 0 50px #18334820;
  width: 48%;
}
.drawer-head {
  padding: 20px;
}
.drawer-body {
  padding: 18px 20px 28px;
}
.drawer-mask {
  background: #18334840;
}
#toast {
  background: #183348;
  border-radius: 8px;
}
.note-card textarea {
  background: #fff;
  border-radius: 6px;
}
.perspective-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.perspective-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #e6edf2;
  border-radius: 8px;
}
.perspective-tabs button {
  border: 0;
  background: transparent;
  color: #5c7083;
  padding: 8px 19px;
  border-radius: 5px;
  font-size: 13px;
}
.perspective-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #183348;
  box-shadow: 0 1px 3px #18334812;
  font-weight: 600;
}
.data-stamp {
  color: #65758a;
  font-size: 11px;
}
.workspace-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 1px solid #c9e4df;
  border-radius: 9px;
  background: #e9f5f2;
}
.workspace-intro h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 600;
  color: #205d58;
}
.workspace-intro p {
  margin: 0;
  color: #4a746f;
  font-size: 12px;
}
.intro-symbol {
  width: 48px;
  height: 48px;
  border: 1px solid #a6d3ca;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #127b76;
}
.intro-symbol svg {
  width: 25px;
  height: 25px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.kpi-label {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi-label svg {
  width: 16px;
  height: 16px;
  color: #8a9eaf;
}
.kpi-value {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.kpi-meta {
  font-size: 11px;
  color: var(--ink-soft);
}
.workspace-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  min-width: 0;
}
.panel h2 {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-title a,
.panel-title button {
  font-size: 12px;
}
.panel .chart-box {
  border: 0;
  padding: 5px 0 0;
}
.panel + .panel {
  margin-top: 20px;
}
.panel-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 6px 0 14px;
}
.task-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.task-item:first-child {
  border-top: 0;
  padding-top: 2px;
}
.task-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #85a7b8;
  margin-top: 7px;
  flex: none;
}
.task-marker.attention {
  background: #cb8537;
}
.task-copy {
  flex: 1;
  min-width: 0;
}
.task-copy h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.task-copy p {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 5px 0 10px;
  line-height: 1.8;
}
.text-button {
  color: var(--primary-strong);
  padding: 0;
  background: none;
  border: 0;
  font-size: 12px;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.shortcut {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
}
.shortcut svg {
  width: 19px;
  height: 19px;
  color: #127b76;
  flex: none;
}
.shortcut strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.shortcut small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.coverage-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 50px;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  font-size: 12px;
}
.coverage-track {
  background: #eef3f5;
  border-radius: 3px;
  height: 9px;
  overflow: hidden;
}
.coverage-fill {
  height: 100%;
  background: #328e85;
  border-radius: 3px;
}
.coverage-row b {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.data-notice {
  padding: 12px 16px;
  border: 1px solid #c9e1de;
  background: #edf7f5;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.8;
  color: #376862;
  margin-bottom: 16px;
}
.data-notice.warning {
  background: #fff7eb;
  border-color: #f0debc;
  color: #86561e;
}
.metrics-help {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
}
.metrics-help summary {
  cursor: pointer;
  color: #52677c;
}
.metrics-help p {
  color: var(--ink-soft);
  max-width: 80ch;
}
.content-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.content-toolbar input {
  flex: 1;
  min-width: 150px;
}
.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;
}
.segment-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.segment-list button {
  border: 1px solid var(--line);
  background: #fff;
  color: #52677c;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.segment-list button.active {
  background: #e8f4f1;
  border-color: #87bfb5;
  color: #08645f;
}
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.split-panels .panel {
  margin: 0;
}
.filter-summary {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 12px 0;
}
.table-scroll td:first-child small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
}
.metric-definition {
  width: 100%;
}
.metric-definition td {
  text-align: left;
  vertical-align: top;
}
.metric-definition th {
  text-align: left;
}
.metric-definition td:first-child {
  min-width: 100px;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding-inline: 12px;
  }
  .app-main {
    margin-left: 190px;
  }
  .wrap {
    padding: 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .workspace-columns {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  }
  .kpi {
    padding: 15px;
  }
  .kpi-value {
    font-size: 28px;
  }
  .shortcut-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
  }
  .brand {
    padding: 0 0 12px;
    font-size: 18px;
  }
  .brand small {
    display: inline;
    margin-left: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .nav-group {
    display: none;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 8px 12px;
  }
  .nav-item svg,
  .nav-item.active:after {
    display: none;
  }
  .sidebar-foot {
    position: absolute;
    right: 20px;
    top: 7px;
    border: 0;
  }
  .app-main {
    margin-left: 0;
  }
  .workspace-columns,
  .split-panels {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 44px;
  }
  .timezone {
    display: none;
  }
  .wrap {
    padding: 22px 18px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi-value {
    font-size: 26px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .drawer {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .brand small {
    display: none;
  }
  .topbar {
    padding-inline: 18px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading p {
    max-width: 24ch;
    font-size: 12px;
  }
  .btn {
    padding: 8px 12px;
  }
  .perspective-tabs {
    width: 100%;
  }
  .perspective-tabs button {
    flex: 1;
    padding: 8px 10px;
  }
  .workspace-intro {
    padding: 18px;
    gap: 14px;
  }
  .workspace-intro h2 {
    font-size: 17px;
  }
  .panel {
    padding: 18px;
  }
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
  .workspace-footer {
    font-size: 10px;
    gap: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card {
    padding: 14px;
  }
  .card .v {
    font-size: 22px;
  }
  .stat-card {
    min-width: 80px;
  }
  .tl-time {
    width: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* A confirmation launched from a drawer must stay above that drawer. */
#qrMask {
  z-index: 25;
}
#disposeMask {
  z-index: 30;
}
#loginMask {
  z-index: 40;
}
#toast {
  z-index: 60;
}
