:root {
  color-scheme: light;
  --canvas: #f2f5fa;
  --ink: #142137;
  --muted: #4a5a73;
  --faint: #62728b;
  --border: #dce4f0;
  --accent: #2659d9;
  --deep: #111b30;
  --tint: #eaf0ff;
  --white: #fff;
  --radius: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #5d88ef; outline-offset: 3px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.icon { width: 20px; height: 20px; display: inline-block; flex: none; vertical-align: middle; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 23px 14px 17px; background: #111a2e; color: #f3f6ff; border-right: 1px solid #1e2a40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 7px; color: var(--ink); text-align: left; }
.sidebar .brand { color: #f4f7ff; }
.sidebar .brand-store { color: #a8b7d2; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#618fff,#2855d8 68%); color: white; display: grid; place-items: center; flex: none; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-name { display: block; font-size: 19px; font-weight: 760; letter-spacing: -.045em; white-space: nowrap; }
.brand-store { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav { margin-top: 37px; display: grid; gap: 5px; }
.nav-label { padding: 18px 11px 5px; color: #aab8d2; font-size: 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 45px; width: 100%; padding: 10px 11px; border: 0; border-radius: 9px; background: none; color: #d5dff2; font-size: 15px; text-align: left; }
.nav-item:hover { background: #1b2a46; color: #fff; }
.nav-item[aria-current="page"] { background: #223763; color: #f2f6ff; font-weight: 680; }
.nav-item[aria-current="page"]::after { content: ""; width: 6px; height: 6px; border-radius: 100%; background: #80a5ff; margin-left: auto; }
.sidebar-foot { margin-top: auto; padding-top: 30px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 12px 6px 6px; border-top: 1px solid #2a3652; }
.avatar { width: 35px; height: 35px; border-radius: 50%; display: inline-grid; place-items: center; background: #293d66; color: #d7e4ff; font-weight: 700; font-size: 14px; flex: none; }
.profile-name { font-size: 14px; font-weight: 680; }
.profile-role { font-size: 12px; color: #aab8d2; margin-top: 2px; }
.view-mode { margin-top: 8px; border: 1px solid #405782; background: #1b2a46; color: #e0eaff; font-size: 13px; }
.view-mode:hover { background: #263d68; }
.view-mode .icon { width: 17px; height: 17px; }
.content { min-width: 0; }
.toolbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; border-bottom: 1px solid var(--border); background: var(--white); }
.crumb { display: flex; gap: 9px; align-items: center; min-width: 0; color: var(--muted); font-size: 14px; }
.crumb strong { color: var(--ink); white-space: nowrap; font-weight: 650; }
.crumb .icon { width: 16px; height: 16px; }
.separator { color: #7b8ba4; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.demo-label { color: #556783; font-size: 13px; white-space: nowrap; }
.btn, .input { min-height: 40px; border: 1px solid #d6deed; border-radius: 9px; color: var(--ink); background: var(--white); padding: 9px 13px; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-weight: 650; }
.btn .icon { width: 17px; height: 17px; }
.btn:hover { background: #f1f5ff; }
.btn.primary { color: white; background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: #1c49ba; }
.btn.plain { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 4px; }
.btn.plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn.danger { color: #9a3435; }
.menu-button { display: none; }
.drawer-overlay { display: none; }
.inner { max-width: 1390px; margin: 0 auto; padding: 31px 32px 45px; }
.page-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.page-heading h1 { font-size: clamp(28px, 3.05vw, 39px); line-height: 1.23; letter-spacing: -.052em; font-weight: 760; }
.subtitle { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 7px; }
.overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 18px; }
.overview-metric { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 17px; }
.overview-metric:hover { background: #fbfcff; border-color: #9bb3eb; }
.overview-metric span.label { display: block; font-size: 14px; color: var(--muted); }
.overview-metric strong { display: block; margin-top: 3px; font-size: 28px; line-height: 1.15; letter-spacing: -.04em; font-weight: 730; font-variant-numeric: tabular-nums; }
.overview-metric .icon { color: #4970c4; width: 19px; height: 19px; margin-top: 4px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(292px,1fr); align-items: start; gap: 16px; }
.workspace-column { display: grid; gap: 16px; min-width: 0; }
.tile, .panel { background: var(--white); }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 17px; font-weight: 730; letter-spacing: -.025em; }
.tile { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; align-items: center; min-height: 71px; width: 100%; padding: 12px 18px; text-align: left; color: var(--ink); border: 0; border-bottom: 1px solid #ebeff6; }
.tile:last-child { border-bottom: 0; }
.tile:hover { background: #f6f8fe; }
.tile-icon { border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; color: #2d5fcb; background: #ecf1ff; }
.tile-icon.blue { background: #e9f6fa; color: #256b84; }
.tile-icon.violet { background: #f3edfc; color: #7245a2; }
.tile strong { display: block; font-size: 16px; font-weight: 730; letter-spacing: -.02em; }
.tile p { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tile .tile-open { color: var(--accent); font-weight: 690; font-size: 13px; }
.activity-panel { color: #f0f5ff; border: 1px solid #2d426e; background: radial-gradient(ellipse at 100% -10%, #263e71, transparent 67%), linear-gradient(125deg,#141e37,#18294c); }
.activity-panel .panel-head { border-color: #becfff26; }
.activity-panel .panel-head .icon { color: #93b3ff; }
.activity-panel .list-row { border-color: #becfff22; }
.activity-panel .list-main .icon, .activity-panel .btn.plain { color: #a8c1ff; }
.activity-panel .list-meta { color: #c0cee6; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #ebeff6; }
.list-row:last-child { border-bottom: 0; }
.list-main { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.list-main .icon { color: var(--accent); width: 18px; height: 18px; }
.list-main strong { font-weight: 680; }
.list-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.row-time { color: var(--muted); font-size: 13px; text-align: right; }
.home-table th, .home-table td { padding-top: 7px; padding-bottom: 7px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }
.metric { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 15px 17px; }
.metric p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.metric strong { display: block; margin-top: 4px; font-size: 25px; font-weight: 740; font-variant-numeric: tabular-nums; }
.tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tab { border: 0; border-radius: 8px; background: transparent; color: var(--muted); min-height: 38px; padding: 8px 12px; font-size: 14px; font-weight: 650; }
.tab[aria-pressed="true"] { background: var(--tint); color: var(--accent); }
.tab:hover { background: #f2f5ff; }
.filters { display: flex; gap: 8px; }
.filters input { width: 235px; max-width: 100%; }
select.input { appearance: none; padding-right: 29px; background-image: linear-gradient(45deg,transparent 50%,#536a91 50%),linear-gradient(135deg,#536a91 50%,transparent 50%); background-position: calc(100% - 14px) 50%,calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.input { min-width: 0; line-height: 1.25; }
.input::placeholder { color: #5b6c85; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { padding: 11px 16px; font-size: 13px; font-weight: 650; color: #465a75; background: #f4f7fc; white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid #e9eef7; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child, th:first-child { padding-left: 19px; }
td:last-child, th:last-child { padding-right: 19px; }
td small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.table-action { padding-block: 4px; min-height: 32px; }
.pill { border-radius: 5px; padding: 4px 8px; display: inline-block; background: #ecf2ee; color: #456157; font-size: 13px; line-height: 1.25; }
.pill.ok { background: #e2f3ea; color: #165c48; }
.pill.wait { background: #fff2db; color: #795313; }
.pill.off { background: #f3efee; color: #73514e; }
.empty { padding: 25px 19px; color: var(--muted); font-size: 15px; }
.watermark { position: fixed; z-index: 8; inset: 0; pointer-events: none; background-image: var(--identity-mark, none); background-repeat: repeat; background-size: 413px 231px; }
.dialog-watermark { position: absolute; }
dialog { width: min(480px, calc(100% - 30px)); max-height: calc(100dvh - 38px); padding: 23px; color: var(--ink); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 65px #172b5b30; }
dialog::backdrop { background: #101c3aa8; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.dialog-heading h2 { font-size: 21px; }
.dialog-heading .btn { min-height: 35px; }
.dialog-body { display: grid; gap: 12px; }
.dialog-note { line-height: 1.65; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.checks { display: flex; flex-wrap: wrap; gap: 7px 13px; }
.checks label { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.detail-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
#notice { position: fixed; right: 20px; bottom: 20px; z-index: 12; max-width: calc(100% - 40px); background: var(--deep); color: white; padding: 12px 17px; border-radius: 10px; font-size: 14px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(405px,100%); padding: 27px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.login-card form { display: grid; gap: 13px; margin-top: 21px; }
.login-card h1 { margin-top: 19px; font-size: 25px; }
.login-card .brand { padding: 0; }
@media (max-width: 1020px) {
  .shell { grid-template-columns: 198px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .toolbar { padding-inline: 22px; }
  .inner { padding-inline: 22px; }
  .workspace-grid { grid-template-columns: minmax(0,1.35fr) minmax(240px,1fr); gap: 12px; }
  .workspace-column { gap: 12px; }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 7; left: 0; top: 0; width: min(260px, 81vw); display: none; box-shadow: 8px 0 50px #17372c26; }
  .sidebar.open { display: flex; }
  .drawer-overlay { display: block; position: fixed; z-index: 6; inset: 0; border: 0; background: #13234b7a; width: 100%; }
  .toolbar { height: auto; min-height: 60px; padding: 8px 14px; }
  .menu-button { display: inline-flex; min-width: 40px; padding: 8px; }
  .crumb > span, .crumb > .icon { display: none; }
  .inner { padding: 23px 14px 32px; }
  .page-heading { margin-bottom: 16px; align-items: flex-start; }
  .page-heading:has(.account-actions) { flex-direction: column; }
  .account-actions { justify-content: flex-start; }
  .page-heading .btn { min-height: 36px; padding-inline: 8px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 12px; }
  .workspace-column { display: contents; }
  .apps-panel { order: 0; }
  .activity-panel { order: 1; }
  .business-snapshot { order: 2; }
  .device-snapshot { order: 3; }
  .overview-metrics { gap: 6px; margin-bottom: 12px; }
  .overview-metric { padding: 9px 8px; gap: 3px; }
  .overview-metric span.label { font-size: 12px; }
  .overview-metric strong { font-size: 22px; }
  .overview-metric .icon { width: 15px; height: 15px; }
  .tile { min-height: 65px; gap: 9px; padding: 9px 11px; grid-template-columns: 38px minmax(0,1fr) auto; }
  .tile-icon { width: 35px; height: 35px; }
  .tile p { font-size: 13px; }
  .metrics { gap: 6px; }
  .metric { padding: 10px 8px; }
  .metric p { font-size: 13px; }
  .metric strong { font-size: 22px; }
  .panel-head, .list-row { padding: 11px; }
  .filters { width: 100%; flex-wrap: wrap; }
  .filters input { flex: 1 1 148px; }
  .watermark { background-size: 269px 181px; }
  .table-wrap table, .table-wrap tbody { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tr { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 13px; padding: 13px 12px; border-bottom: 1px solid var(--border); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td, .table-wrap td:first-child, .table-wrap td:last-child { padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .table-wrap td:first-child { grid-column: 1 / -1; font-weight: 670; }
  .table-wrap td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
  .table-wrap td:first-child::before, .table-wrap td:last-child::before { display: none; }
  .table-wrap td:last-child { grid-column: 1 / -1; }
}
@media (min-width: 650px) and (max-width: 820px) and (hover: hover) and (pointer: fine) {
  .shell { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
  .sidebar, .sidebar.open { display: flex; position: sticky; width: auto; padding: 15px 7px 12px; box-shadow: none; }
  .sidebar .brand { padding: 6px 5px; }
  .sidebar .brand > div, .profile > div, .nav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav { margin-top: 25px; }
  .nav-label { text-align: center; padding: 13px 0 4px; font-size: 11px; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .nav-item[aria-current="page"]::after, .menu-button, .drawer-overlay { display: none; }
  .toolbar { padding-inline: 17px; }
  .inner { padding-inline: 17px; }
  .workspace-grid { grid-template-columns: minmax(0,1.2fr) minmax(214px,1fr); }
  .workspace-column { display: grid; }
  .row-time { font-size: 12px; }
}
@media (max-width: 390px) {
  .demo-label, .page-heading .btn[data-action="admin-accounts"] .icon { display: none; }
  .page-heading { gap: 8px; }
  .list-meta { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.embedded-module { min-width: 0; }
.module-frame { display: block; width: 100%; height: calc(100dvh - 70px); border: 0; }
.customer-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; }
@media (max-width: 820px) {
  .module-frame { height: calc(100dvh - 60px); }
}

.management-tabs { margin-bottom: 16px; padding: 6px 9px; }
.access-fieldset { margin:0; border:1px solid var(--border); border-radius:9px; padding:8px 10px 11px; }
.access-fieldset legend { margin-inline:3px; padding-inline:4px; font-size:14px; font-weight:680; }
.private-checks { display:grid; gap:8px; }
.report-controls { display:flex; align-items:end; flex-wrap:wrap; gap:14px; padding:15px 18px; margin-bottom:16px; }
.report-controls .input { min-width: 146px; }
.report-period { background:#f0f4fc; border-radius:9px; padding:3px; }
.report-period .tab { min-width:37px; min-height:32px; padding:4px 10px; }
.report-period .tab[aria-pressed="true"] { background:#fff; box-shadow:0 1px 4px #233c7b19; }
.report-ranges { margin:0 0 0 auto; display:grid; gap:4px; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.report-ranges > div { display:grid; grid-template-columns:57px auto; gap:6px; }
.report-ranges dd { margin:0; color:var(--ink); }
.comparison-grid { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(0,1fr); align-items:start; gap:16px; }
.comparison-scroll { overflow-x:auto; }
.comparison-scroll tbody th { background:none; border-bottom:1px solid #e9eef7; font-size:14px; color:var(--ink); }
.comparison-scroll tbody tr:last-child th { border-bottom:0; }
.comparison-scroll td { font-variant-numeric:tabular-nums; }
.comparison-selected { background:#f5f8ff; }
.comparison-person { min-height:36px; }
.comparison-note { margin-top:4px; font-size:13px; color:var(--muted); line-height:1.55; }
.comparison-change { background:var(--tint); color:var(--accent); border-radius:5px; padding:4px 7px; font-weight:660; white-space:nowrap; }
.comparison-change.unchanged { background:#f1f4f8; color:var(--muted); }
.report-note { margin-top:12px; font-size:13px; line-height:1.65; color:var(--muted); }
@media (max-width:1040px) {
  .comparison-grid { grid-template-columns:1fr; gap:12px; }
}
@media (max-width:650px) {
  .report-controls { gap:9px; padding:11px; margin-bottom:12px; }
  .report-controls .input { min-width:125px; }
  .report-ranges { width:100%; margin-top:2px; }
  .comparison-scroll th, .comparison-scroll td { padding-inline:8px; }
  .comparison-scroll th:first-child { padding-left:11px; }
  .comparison-scroll td:last-child { padding-right:11px; }
}
