  :root {
    color-scheme: light;
    --bg-base: #f5f5f7;
    --bg-elevated: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #8e8e93;
    --fill-control: #e5e5ea;
    --fill-secondary: #f2f2f7;
    --accent: #0071e3;
    --danger: #d70015;
    --success: #1a7f37;
    --warning: #a15c00;
    --separator: rgba(0, 0, 0, .08);
    --shadow-card: 0 1px 2px color-mix(in srgb, #000 4%, transparent), 0 8px 24px color-mix(in srgb, #000 5%, transparent);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, .12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --fill-subtle: rgba(0, 0, 0, .04);
    --ease: cubic-bezier(.32, .72, 0, 1);
    --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
    /* 视觉升级令牌：尺寸与主题无关，深色块同步一份便于两处对照。 */
    --space-page-y: 28px;
    --space-page-x: 32px;
    --space-gutter: 20px;
    --space-card-header-y: 18px;
    --space-card-x: 22px;
    --space-card-footer-y: 14px;
    --space-cell-x: 14px;
    --space-3xl: 48px;
    --nav-height: 64px;
    --sidebar-width: 240px;
    --control-height: 34px;
    --control-height-sm: 28px;
    --radius-card: 14px;
    --overlay-bg: color-mix(in srgb, #000 32%, transparent);
    --nav-active-bg: var(--fill-secondary);
  }

  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg-base: #000000;
    --bg-elevated: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;
    --fill-control: #3a3a3c;
    --fill-secondary: #1c1c1e;
    --accent: #0a84ff;
    --danger: #ff453a;
    --success: #30d158;
    --warning: #ff9f0a;
    --separator: rgba(255, 255, 255, .12);
    --shadow-card: 0 1px 2px color-mix(in srgb, #000 45%, transparent), 0 8px 24px color-mix(in srgb, #000 35%, transparent);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, .6);
    --fill-subtle: rgba(255, 255, 255, .06);
    /* 视觉升级令牌（与浅色块成对）：深色下 fill-secondary 与卡面同色，选中态单独提亮一档。 */
    --space-page-y: 28px;
    --space-page-x: 32px;
    --space-gutter: 20px;
    --space-card-header-y: 18px;
    --space-card-x: 22px;
    --space-card-footer-y: 14px;
    --space-cell-x: 14px;
    --space-3xl: 48px;
    --nav-height: 64px;
    --sidebar-width: 240px;
    --control-height: 34px;
    --control-height-sm: 28px;
    --radius-card: 14px;
    --overlay-bg: color-mix(in srgb, #000 55%, transparent);
    --nav-active-bg: color-mix(in srgb, #ffffff 10%, transparent);
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html, body { min-height: 100%; }
  body {
    margin: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, p { margin: 0; }
  h1, h2 { font-size: 16px; font-weight: 600; line-height: 1.3; }
  button, input, select { font: inherit; color: inherit; }
  button {
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background-color 120ms var(--ease), color 120ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease);
  }
  button:disabled { cursor: default; opacity: .55; }
  button:not(:disabled):active { transform: scale(.97); }
  button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  input, select, textarea {
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--fill-control);
    padding: 9px 12px;
    outline: none;
    transition: box-shadow 120ms var(--ease);
  }
  input[type="checkbox"] { width: auto; }
  input::placeholder { color: var(--text-tertiary); }
  input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
  textarea {
    font: inherit;
    color: inherit;
    min-height: 220px;
    resize: vertical;
    line-height: 1.6;
  }

  .btnPrimary { background: var(--accent); color: #ffffff; padding: 9px 18px; font-weight: 500; }
  .btnPrimary:not(:disabled):hover { filter: brightness(.94); }
  .btnSecondary { background: var(--fill-control); padding: 9px 16px; }
  .btnSecondary:not(:disabled):hover { filter: brightness(.96); }
  .btnDanger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
  .btnDanger:not(:disabled):hover { background: color-mix(in srgb, var(--danger) 18%, transparent); }
  .btnDangerSolid { background: var(--danger); color: #ffffff; padding: 9px 18px; font-weight: 500; }
  .btnDangerSolid:not(:disabled):hover { filter: brightness(.94); }
  .smallButton { padding: 5px 12px; font-size: 12px; }
  .rowMuted { opacity: .55; }

  .loginView { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; }
  .loginCard {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
  }
  .loginSubtitle { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
  .loginLogo { width: 48px; height: 48px; border-radius: var(--radius-md); display: block; }
  .loginNotice { color: var(--success); font-size: 12px; line-height: 1.5; }
  /* ACT: 台账相关样式集中在文件末尾的「协作台账」段（需排在通用控件与 .loginCard 之后才能盖住定宽按钮与 400px 卡宽）。 */

  /* ACT: UI 规范 2.4「左侧菜单 + 右侧内容」。左栏是结构骨架：不画右边框、不加 --shadow-card，
     与右栏只靠背景色阶差分层；两侧各自滚动，整页不出现纵向滚动条。 */
  #mainView { height: 100vh; overflow: hidden; }
  .appShell { display: flex; height: 100%; min-height: 0; }

  .sideBar {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 224px;
    padding: 16px 12px;
    background: var(--color-bg-elevated, var(--bg-elevated));
    overflow-x: hidden;
    overflow-y: auto;
  }
  .sideBrand { display: flex; align-items: center; gap: 8px; padding: 0 12px 12px; }
  .sideBrandTitle { font-size: 13px; font-weight: 600; line-height: 1.3; }
  .sideMenu { display: flex; flex-direction: column; }
  .menuGroup { display: flex; flex-direction: column; gap: 2px; }
  /* 分组靠留白 + 小标题分隔，不画分隔线（规范 2.4「必须遵守」第 1 条）。 */
  .menuGroup + .menuGroup { margin-top: 16px; }
  .menuGroupTitle {
    padding-left: 12px;
    margin-bottom: 4px;
    color: var(--color-label-tertiary, var(--text-tertiary));
    font-size: 12px;
    line-height: 1.5;
  }
  .tabButton {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    color: var(--color-label-secondary, var(--text-secondary));
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
  }
  .menuIcon { flex: none; width: 16px; font-size: 13px; line-height: 1; text-align: center; }
  .menuLabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tabButton:hover { background: var(--fill-control); }
  .tabButton[aria-selected="true"] {
    background: var(--fill-control);
    color: var(--color-label-primary, var(--text-primary));
    font-weight: 500;
  }
  .tabButton[aria-selected="true"] .menuIcon { color: var(--color-accent, var(--accent)); }
  .tabButton.menuSubItem { padding-left: 32px; height: 32px; font-size: 12px; }
  /* 链接型菜单项（协作台账）与按钮型页签同外观：只去下划线，颜色/背景/悬停沿用 .tabButton。 */
  a.tabButton { text-decoration: none; }

  .sideFoot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 0; }
  .sideAccount { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
  .accountChip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
  .accountName { font-size: 13px; font-weight: 500; white-space: nowrap; }
  .roleBadge {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: var(--fill-control);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .contentPane {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 20px 24px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .topBar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 16px;
  }
  .brandLine { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-width: 0; }
  .pageTitle { font-size: 17px; font-weight: 600; line-height: 1.3; }
  .brandLogo { width: 28px; height: 28px; border-radius: var(--radius-sm); flex: none; align-self: center; }
  .brandNote { color: var(--color-label-tertiary, var(--text-tertiary)); font-size: 12px; }
  .topActions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
  .menuButton { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 16px; background: var(--fill-control); }
  .sideScrim { position: fixed; inset: 0; z-index: 30; background: color-mix(in srgb, var(--text-primary) 40%, transparent); }

  .page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-bottom: 24px;
  }
  .panel { display: flex; flex-direction: column; gap: 16px; }

  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
  .statCard { background: var(--bg-elevated); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px; }
  .statValue { font-size: 22px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .statLabel { margin-top: 2px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }

  .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .searchInput { flex: 1 1 260px; max-width: 340px; }
  .toolbar select { width: auto; min-width: 132px; }
  .toolbarMeta { margin-left: auto; color: var(--text-tertiary); font-size: 12px; }
  .pagerBar { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .pagerBar .toolbarMeta { margin-left: 0; }

  .banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    font-size: 13px;
  }

  .banner.policyNote {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }

  .createForm {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
  .createForm .field { flex: 1 1 260px; }

  .tableCard { background: var(--bg-elevated); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
  .tableScroller { overflow-x: auto; }
  table { width: 100%; min-width: 820px; border-collapse: collapse; }
  th {
    padding: 12px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--separator);
    white-space: nowrap;
  }
  /* 中文默认按字断行，窄列会把「无有效订阅」拆成一列单字；keep-all 只允许在空格/标点处断，列宽不够时交给外层 .cardBodyFlush 横向滚动。 */
  td { padding: 12px 10px; border-bottom: 1px solid var(--separator); vertical-align: middle; word-break: keep-all; }
  tbody tr:last-child td { border-bottom: 0; }
  .dataRow:hover td { background: var(--fill-subtle); }

  /* 表格里的标识/账号/设备码都是短 token，折行后两行更难看；表格外层 .cardBodyFlush
     有 overflow-x auto，放不下就横向滚动，不挤坏布局。 */
  .monoCell { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
  /* 设备 ID 限宽省略（签发记录表）：32 位十六进制整串会把表格撑出横向滚动条，完整值放单元格 title。 */
  .machineCell { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .selectAll { user-select: all; }
  .muted { color: var(--text-tertiary); font-size: 12px; }

  .pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
  .pillActive { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
  .pillSuspended { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
  .pillExpired { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
  .pillUnknown { color: var(--text-secondary); background: var(--fill-subtle); }

  .linkButton { padding: 2px 0; color: var(--accent); font-size: 13px; background: transparent; white-space: nowrap; }
  .linkButton:not(:disabled):hover { text-decoration: underline; }
  /* 表格行内操作：给动作列留最小宽度，让按钮两两并排，避免每个按钮各占一行把行高撑到 160px */
  /* ACT: 设备表 12 列，横向 padding 收到 8px，避免时间/到期列被挤成多行、操作列被表格横向滚动切掉 */
  .devicesTable th, .devicesTable td { padding-left: var(--space-sm); padding-right: var(--space-sm); white-space: nowrap; }
  .devicesTable .machineCell { max-width: 110px; }
  /* ACT: 用户列表行内展开的订阅明细：整格占一行、左侧竖线缩进，条目复用行内横排。 */
  .devicesTable .deviceSubRow > td { padding: 0 0 8px; white-space: normal; }
  .deviceSubList { display: flex; flex-direction: column; gap: 2px; margin: 0 0 0 44px; padding-left: 12px; border-left: 2px solid var(--accent); }
  .deviceSubItem { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 0; }
  .deviceSubItem .monoCell { min-width: 96px; }
  .deviceSubEmpty { margin: 0 0 0 44px; padding-left: 12px; color: var(--muted); font-size: 13px; }
  .rowActions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 112px; justify-content: flex-end; }
  .rowActions > button { flex: 0 0 auto; padding: 4px 6px; font-size: 12px; white-space: nowrap; }
  /* 码列：截断的码与复制按钮同行，窄屏时允许换行。 */
  .codeCell { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

  .deviceRow td { background: var(--fill-subtle); padding: 4px 16px 12px; }
  .deviceList { display: flex; flex-direction: column; gap: 4px; }
  .deviceItem { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 6px 0; }
  .deviceItem.revoked { opacity: .6; }
  .deviceItem .monoCell { min-width: 240px; }

  .empty { padding: 48px 24px; text-align: center; }
  .emptyTitle { font-weight: 500; }
  .emptyHint { margin-top: 4px; color: var(--text-tertiary); font-size: 12px; }

  .inlineError { color: var(--danger); font-size: 12px; line-height: 1.5; }

  .overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .32);
    backdrop-filter: blur(2px);
  }
  .modal {
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-float);
  }
  .modalHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .modalClose { padding: 5px 12px; color: var(--text-secondary); background: var(--fill-control); font-size: 12px; }

  .field { display: flex; flex-direction: column; gap: 8px; }
  .fieldLabel { color: var(--text-secondary); font-size: 12px; }
  .fieldHint { color: var(--text-tertiary); font-size: 12px; line-height: 1.5; }

  .pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .pillOption { padding: 7px 14px; border-radius: var(--radius-full); background: var(--fill-control); font-size: 13px; }
  .pillOption:not(:disabled):hover { filter: brightness(.96); }
  .pillOption[aria-pressed="true"] { background: var(--accent); color: #ffffff; }

  .resultSection { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--separator); }
  .resultHeader { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .resultTitle { color: var(--text-secondary); font-size: 12px; }
  .resultActions { display: flex; gap: 8px; }
  .codeList { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
  .codeRow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--fill-subtle); }
  .codeText {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    word-break: break-all;
    color: var(--text-secondary);
  }

  .popover {
    position: fixed;
    z-index: 80;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-float);
  }
  .popoverTitle { color: var(--text-secondary); font-size: 12px; }
  .popoverActions { display: flex; justify-content: flex-end; gap: 8px; }
  .popoverActions button { padding: 7px 14px; font-size: 13px; }

  .credentialCard { max-width: 460px; }
  .credentialLine { font-size: 14px; line-height: 1.9; }
  .credentialValue {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--fill-subtle);
    font-weight: 500;
    user-select: all;
  }
  .credentialHint { color: var(--warning); font-size: 12px; line-height: 1.6; }
  .credentialActions { display: flex; justify-content: flex-end; }

  .confirmCard { max-width: 460px; gap: 14px; }
  /* ACT: 设备详情字段多（账号、设备码、两套渠道、订阅、两次上报时间与使用 IP），比确认卡宽一些，label 要能放五个字。 */
  .deviceDetailCard { max-width: 560px; }
  .deviceDetailCard .confirmLabel { width: 88px; }
/* ACT: 集成明细一行一条会撑高弹窗，内容区限高滚动，Key 是长串允许换行。 */
.deviceDetailCard .confirmDetails { max-height: 62vh; overflow-y: auto; }
.deviceDetailCard .confirmValue { word-break: break-all; white-space: pre-line; }
  .confirmDetails {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--fill-subtle);
  }
  .confirmRow { display: flex; gap: 12px; font-size: 12px; line-height: 1.6; }
  .confirmLabel { flex: none; width: 56px; color: var(--text-tertiary); }
  .confirmValue { min-width: 0; white-space: pre-line; word-break: break-all; }
  .confirmMessage { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
  .confirmActions { display: flex; justify-content: flex-end; gap: 8px; }

  .toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 120;
    max-width: min(90vw, 520px);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: var(--shadow-float);
    font-size: 13px;
    pointer-events: none;
  }

  .pagerSizeSelect { width: auto; min-width: 108px; padding: 6px 10px; font-size: 12px; }
  .toolbarHint { color: var(--text-tertiary); font-size: 12px; }

  .infoCard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
  .cardHeader { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .cardTitle { font-size: 14px; font-weight: 600; }

  .chartLegend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-left: auto; }
  .legendItem { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12px; }
  .legendSwatch { flex: none; width: 10px; height: 10px; border-radius: var(--radius-full); }
  .legendSubscriptions { background: var(--accent); }
  .legendActivations { background: var(--success); }
  .legendIssues { background: var(--warning); }
  .chartScroller { overflow-x: auto; }
  .chartSvg { display: block; width: 100%; height: auto; min-width: 520px; }
  .chartGrid { stroke: var(--separator); stroke-width: 1; }
  .chartAxis { fill: var(--text-tertiary); font-size: 11px; }
  .chartLine { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .chartLineSubscriptions { stroke: var(--accent); }
  .chartLineActivations { stroke: var(--success); }
  .chartLineIssues { stroke: var(--warning); }
  .chartHit { fill: transparent; pointer-events: all; }
  .chartFallback { padding: 24px 8px; color: var(--text-tertiary); font-size: 12px; text-align: center; }

  .alertList { display: flex; flex-direction: column; gap: 4px; }
  .alertItem { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
  .alertDot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: var(--radius-full); }
  .alertDotWarn { background: var(--el-color-warning, var(--warning)); }
  .alertDotInfo { background: var(--el-color-info, var(--text-tertiary)); }
  .alertBody { flex: 1; min-width: 0; }
  .alertTitle { font-size: 13px; font-weight: 500; word-break: break-all; }
  .alertDetail { color: var(--text-secondary); font-size: 12px; line-height: 1.5; word-break: break-all; }
  .alertTime { flex: none; color: var(--text-tertiary); font-size: 12px; white-space: nowrap; }

  .sectionBlock { display: flex; flex-direction: column; gap: 12px; }

  /* 协议卡折叠：只作用于协议页签的 collapsibleHeader/collapsibleBody，不全局改 sectionBlock 语义。
     折叠后 meta 仍留在 header 上，版本信息始终可见。 */
  .collapsibleHeader {
    cursor: pointer;
    border-radius: var(--radius-sm);
    outline: none;
    transition: color 160ms var(--ease);
    user-select: none;
    -webkit-user-select: none;
  }
  .collapsibleHeader:hover .cardTitle { color: var(--accent); }
  .collapsibleHeader:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
  .collapseChevron {
    flex: none;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 2px solid var(--text-tertiary);
    border-bottom: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    transition: transform 180ms var(--ease);
  }
  .collapsibleHeader[aria-expanded="false"] .collapseChevron { transform: rotate(-135deg); }
  .collapsibleBody[hidden] { display: none; }

  /* 窄屏（容器 < 900px）折叠为抽屉：左栏移出视口，顶部菜单按钮唤起。
     规范明确禁止压成只剩图标、也禁止退回顶部横向页签。 */
  @media (max-width: 900px) {
    .sideBar {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      z-index: 40;
      transform: translateX(-100%);
      transition: transform 200ms var(--ease);
      box-shadow: var(--shadow-float);
    }
    .sideBar.isOpen { transform: none; }
    /* 折叠态在窄屏不生效：抽屉固定整宽、标题与文字全部复原，只保留 isOpen 控制移入移出。 */
    .sideBar.isCollapsed { width: var(--sidebar-width); }
    .menuButton { display: inline-flex; }
    .contentPane { padding: 16px; }
    .page { padding-bottom: 16px; }
  }

  @media (max-width: 640px) {
    .modal { padding: 20px; }
    .toast { bottom: 88px; }
  }

  @media (prefers-reduced-motion: reduce) {
    button { transition: none; }
    button:not(:disabled):active { transform: none; }
    .sideBar { transition: none; }
    .collapsibleHeader { transition: none; }
    .collapseChevron { transition: none; }
  }

  /* 阶段 1：统一卡片骨架（标准区块语言）。旧类 .infoCard/.createForm/.tableCard/
     .sectionBlock/.statCard/.toolbar 一律保留不改，本阶段只新增 .card 供后续面板迁移。
     注意：.cardHeader/.cardTitle 已被旧区块（infoCard、功能策略、协议等）直接使用，
     旧规则是 14px 标题且无内边距；这里用 .card 作用域收口，保证旧面板外观零变化。 */
  .card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
  .card .cardHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--separator);
  }
  .card .cardTitle { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
  .card .cardToolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--fill-secondary);
  }
  /* ACT: 控件宽度只在 .toolbar 里收窄（:253），.cardToolbar 没有同名规则，
     导致 select 落回 :75 的 width:100% 被撑满整行。这里按同一口径补齐，不把 .toolbar 加进选择器，避免影响旧面板。 */
  .card .cardToolbar select { width: auto; min-width: 132px; }
  .card .cardToolbarActions { display: flex; gap: var(--space-sm); margin-left: auto; }
  .card .cardBody { padding: var(--space-lg); flex: 1; min-height: 0; }
  /* 表格/图表页显式使用：表格自己撑满整卡，不套 16px 内边距；表格页例外，待 UI 规范登记。 */
  .card .cardBodyFlush { padding: 0; flex: 1; min-height: 0; overflow-x: auto; }
  .card .cardFooter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    /* ACT: 卡底跟卡体同色，只用上边线分隔。原先取 var(--fill-secondary) 与 .cardToolbar 同色，
       中间夹一截白色卡体时像被断成两块；工具栏保留灰底是因为它紧跟卡头、属于「筛选区」，语义不同。 */
    background: var(--bg-elevated);
    border-top: 1px solid var(--separator);
  }
  .card .cardEmpty {
    flex-shrink: 0;
    padding: 48px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
  }
  /* ACT: 窄屏卡片页的高度约束链。.contentPane（:206）本身是高度=视口的 flex 列，
     但 .page（:235）/.panel（:244）/.card（:547）都是 auto 高度，卡片只能随内容长高：
     704px 下 .cardBodyFlush 被撑到 1384px 高，表格的 min-width: 820px（:288）产生的
     横向滚动条落在首屏之外约 700px，而 .card 的 overflow: hidden 又把「操作」列在卡片右缘裁掉。
     这里只补高度传递，让 .cardBodyFlush（:579）自己成为视口内可见的滚动容器；宽度链不改，
     也不给 .card 加 max-width 或用 overflow 遮盖。仅 ≤900px 生效，宽屏仍保持卡片贴合内容。 */
  @media (max-width: 900px) {
    .page:has(> .panel > .card) { flex: 1 1 auto; min-height: 0; }
    .page > .panel:has(> .card) { flex: 1 1 auto; min-height: 0; }
    .page > .panel > .card { flex: 1 1 auto; min-height: 0; }
    /* ACT: 上面的压缩规则只适用于「单卡表格页」（让卡体内部滚动）。多卡页（如总览 =
       概览 + 趋势 + 异常事件）若按视口压缩，.card 的 overflow: hidden 会裁掉卡体内容，
       所以多卡时卡片恢复按内容撑高、由 .page 承担滚动；单卡页仍撑满视口由卡体内部滚动。 */
    .page > .panel > .card:not(:only-child) { flex: 0 0 auto; }
    .page { overflow-y: auto; }
  }

  /* 阶段 3：总览页迁移到 .card 后，统计块由「自带卡片外观的 .statCard 网格」降级为
     卡体内的裸网格——外框交给 .card，格子之间只留 16px 间距，不再叠第二层阴影。
     .stats 本身仍保留（:246）供旧面板使用。 */
  .card .stats { gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .card .stats .statCard { padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
  /* ACT: 总览 5 张统计卡在 1264 宽仍会挤成一行、每个只剩 ~230px，数值和标签贴太近。
     卡内统计最多三列，5 张自然排成 3+2（末行两格拉满），窄屏退到两列、再退到一列。
     不改 :246 的 .stats，旧面板的 auto-fit 行为保持原样。 */
  @media (min-width: 901px) {
    .card .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    .card .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 560px) {
    .card .stats { grid-template-columns: minmax(0, 1fr); }
  }
  .card .cardBodyFlush .chartScroller { padding: var(--space-lg); }
  .card .cardBodyFlush .chartFallback { padding: 0; }

  /* 阶段 3：行内表单（新建渠道等）放进 .cardBody 后仍要横排换行，字段等宽自适应。
     旧 .createForm（:274）自带卡片外观，这里只复用它的排布口径，不再叠卡片。
     align-items 取 flex-start：字段提示可能是一行、也可能折成两行，只有让每个字段
     从顶部排起、控件紧跟标签，同一行里各控件的基线才一致；改用 stretch/flex-end
     按底部对齐时，提示行数多的字段会把控件顶上去，整行错位。 */
  .card .formRow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-md); }
  .card .formRow .field { flex: 1 1 260px; justify-content: flex-start; }
  /* 卡底左贴一条说明、右侧分页：.cardFooter 是 flex，直接排在 .pagerBar 前面即可。 */
  .card .cardFooter > .fieldHint { flex: 1 1 auto; }
  /* 签发激活码：说明文字整行落到表单底部，不再把设备码列撑高、把别的字段顶到底下。 */
  .issueForm { display: flex; flex-direction: column; gap: var(--space-sm); }
  .issueForm > .formRow > .fieldAuto { flex: 0 0 auto; }
  .issueForm > .fieldHint { margin: 0; }

  /* 数量这种窄字段不跟着 260px 拉伸，避免把「签发」按钮挤到下一行。 */
  .card .formRow .fieldNarrow { flex: 0 0 160px; }

  /* 行内单复选框（强制更新）：撑成与输入框同高的一行（40px = 9px 内边距 × 2 + 行高），
     勾选框垂直居中，不会贴在标签下沿、也不会和右侧输入框错半行。 */
  .card .formRow .checkLine { display: flex; align-items: center; min-height: 40px; }

  /* 行内动作按钮（新建渠道、签发激活码）：HTML 里包成
     .field.fieldAction + 一个空 label 占位，撑出与普通字段相同的标签行高，
     按钮就落在输入框那条基线上；这里只负责不参与拉伸、也不被挤宽。 */
  .card .formRow > .fieldAction { flex: 0 0 auto; }
  .card .formRow > .fieldAction > .fieldLabel { visibility: hidden; }

  /* 阶段 3：把原来裸露在卡外的操作按钮/筛选器收进卡头右侧。.cardHeader 是
     space-between 的 flex 行，标题左、这里右，换行时整体折到下一行。 */
  .card .cardActions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
  .card .cardActions select { width: auto; min-width: 132px; }
  .card .cardMeta { font-size: 13px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
  /* 批量操作条在 .cardToolbar 里时不再自带底部留白。 */
  .card .cardToolbar .batchToolbar { padding: 0; background: transparent; }
  /* 用户列表工具栏：搜索框收窄、筛选下拉整齐排一行，批量条按 flex-basis 独占下一行。 */
  .devicesToolbar .searchInput { flex: 1 1 220px; max-width: 300px; }
  .devicesToolbar select { min-width: 116px; }
  .devicesToolbar .batchToolbar { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
  /* 用户列表卡头右侧的全量指标：数值在前、标签在后，条目之间用细竖线分隔。 */
  .deviceMetrics { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-md); }
  .deviceMetric { display: inline-flex; align-items: baseline; gap: 4px; }
  .deviceMetric + .deviceMetric { padding-left: var(--space-md); border-left: 1px solid var(--separator); }
  .deviceMetricValue { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .deviceMetricLabel { font-size: 12px; color: var(--text-tertiary); }
  .deviceMetricFiltered { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
  /* 页面级操作条：不属于任何卡片，但仍与卡片同宽、同色、同圆角，避免裸露成一块直角灰条。
     底色交给这里而不是 .card .cardFooter——操作条挂在 .panel 直下，走不到 .card 后代选择器。 */
  .actionBar {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
  .actionBar > .cardActions { margin-left: auto; }
  /* 协议页：正文是长 Markdown，字段按整行排（标题/正文/生效时间各占一行），
     否则 .formRow 的 260px 等宽会把 textarea 挤到 307px。折叠头的圆角随卡片走。 */
  .card .formRow > .fieldWide { flex: 1 1 100%; }
  .card .collapsibleHeader { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  /* 系统健康的指标是 dt/dd 两列一行（healthView.js 直接 append div），
     旧 .infoCard 靠 gap:12px 撑着，进卡体后要自己给出行距与分隔。 */
  .card #healthMetrics { display: flex; flex-direction: column; margin: 0; }
  .card #healthMetrics > div {
    display: flex;
    gap: var(--space-lg);
    padding: 10px 0;
    border-bottom: 1px solid var(--separator);
    font-size: 13px;
  }
  .card #healthMetrics > div:last-child { border-bottom: 0; }
  .card #healthMetrics dt { flex: none; width: 160px; color: var(--text-secondary); margin: 0; }
  .card #healthMetrics dd { flex: 1; min-width: 0; margin: 0; color: var(--text-primary); word-break: break-all; }

  /* ============================================================
     视觉升级 · 基础（排版、页面骨架、顶栏、控件基线）
     只做覆盖，不删除上方任何既有选择器；后出现者生效。
     ============================================================ */

  .contentPane { padding: 0; }

  .page {
    max-width: none;
    min-width: 0;
    gap: var(--space-gutter);
    padding: var(--space-page-y) var(--space-page-x);
  }
  .panel { min-width: 0; }

  .topBar {
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    height: var(--nav-height);
    min-height: var(--nav-height);
    margin: 0;
    padding: 0 var(--space-page-x);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--separator);
  }
  .brandLine { flex: 1 1 auto; align-items: baseline; gap: var(--space-md); }
  .pageTitle { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
  .brandNote { font-size: 12px; color: var(--text-tertiary); }
  .topActions { gap: var(--space-sm); }
  .menuButton { height: var(--control-height); padding: 0; }

  /* 控件基线：统一 34px 高、1px 边框、白底，焦点改为外环。 */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    border: 1px solid var(--separator);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select {
    height: var(--control-height);
    padding: 0 var(--space-md);
  }
  textarea { padding: 10px var(--space-md); }
  input:not([type="checkbox"]):not([type="radio"]):focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  input::placeholder, textarea::placeholder { color: var(--text-tertiary); }

  button {
    height: var(--control-height);
    padding: 0 var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 500;
  }

  /* ============================================================
     视觉升级 · 组件（侧栏、卡片、按钮、表格、状态、图表、弹窗）
     ============================================================ */

  .sideBar {
    width: var(--sidebar-width);
    padding: 0 var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border-right: 1px solid var(--separator);
  }
  .sideBrand { height: 60px; padding: 0 var(--space-sm); }
  .menuGroup + .menuGroup { margin-top: var(--space-md); }
  .menuGroupTitle {
    padding: var(--space-md) var(--space-md) var(--space-xs);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-tertiary);
  }
  .menuIcon { width: 18px; font-size: 15px; text-align: center; color: inherit; }
  .tabButton {
    position: relative;
    height: 38px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-sm);
  }
  .tabButton:hover { background: var(--fill-subtle); }
  .tabButton[aria-selected="true"] { background: var(--nav-active-bg); color: var(--text-primary); }
  .tabButton[aria-selected="true"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 18px;
    margin-top: -9px;
    border-radius: var(--radius-full);
    background: var(--accent);
  }
  .tabButton[aria-selected="true"] .menuIcon { color: inherit; }
  .tabButton.menuSubItem { height: var(--control-height); padding-left: 32px; font-size: 12px; }

  .card {
    min-width: 0;
    border: 1px solid var(--separator);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }
  .card .cardHeader { padding: var(--space-card-header-y) var(--space-card-x); }
  .card .cardTitle { font-size: 15px; font-weight: 600; }
  .cardTitle { font-size: 15px; font-weight: 600; }
  .card .cardBody { padding: var(--space-card-x); }
  .card .cardBodyFlush { padding: 0; max-width: 100%; }
  .card .cardToolbar {
    padding: var(--space-md) var(--space-card-x);
    background: var(--fill-subtle);
    border-bottom: 1px solid var(--separator);
  }
  .card .cardFooter {
    padding: var(--space-card-footer-y) var(--space-card-x);
    background: transparent;
    border-top: 1px solid var(--separator);
  }
  .actionBar { border: 1px solid var(--separator); border-radius: var(--radius-card); }

  .btnPrimary { padding: 0 var(--space-lg); }
  .btnPrimary:not(:disabled):hover { filter: brightness(.95); }
  .btnSecondary {
    padding: 0 var(--space-lg);
    background: var(--fill-secondary);
    border: 1px solid var(--separator);
  }
  .btnSecondary:not(:disabled):hover { background: var(--fill-control); filter: none; }
  .btnDanger { padding: 0 var(--space-lg); }
  .btnDangerSolid { padding: 0 var(--space-lg); }
  .smallButton { height: var(--control-height-sm); padding: 0 10px; font-size: 12px; }
  .modalClose { padding: 0 var(--space-md); }
  /* 表格内联文字按钮和行内操作不受 34px 控件高度影响，避免把行高撑开。 */
  .linkButton, .rowActions > button { height: auto; }

  table { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
  thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: var(--space-md) var(--space-cell-x);
    background: var(--bg-elevated);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--separator);
    text-align: left;
    white-space: nowrap;
  }
  td {
    padding: var(--space-md) var(--space-cell-x);
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid var(--separator);
  }
  tbody tr:hover td { background: var(--fill-subtle); }
  th:last-child, td:last-child { white-space: nowrap; }
  .rowActions { flex-wrap: nowrap; }

  .pill {
    height: 22px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
  }
  .pill::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: var(--radius-full);
    background: currentColor;
    opacity: .9;
  }

  .empty, .card .cardEmpty {
    padding: var(--space-3xl) var(--space-xl);
    border-top: 1px dashed var(--separator);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
  }
  .emptyTitle { font-weight: 600; color: var(--text-primary); }

  .fieldLabel { font-size: 12px; font-weight: 600; letter-spacing: .02em; }

  .chartGrid { stroke: color-mix(in srgb, var(--separator) 60%, transparent); }
  .chartAxis { font-size: 11px; fill: var(--text-tertiary); }
  .legendSwatch { width: 8px; height: 8px; }

  .overlay { background: var(--overlay-bg); }
  .modal { border-radius: var(--radius-card); padding: var(--space-xl); }
  .modalHeader h2 { font-size: 17px; font-weight: 600; line-height: 1.3; }

  .loginView {
    background:
      radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
      var(--bg-base);
  }
  .loginCard {
    max-width: 400px;
    padding: var(--space-page-x);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
  }

  /* ============================================================
     视觉升级 · 面板（统计卡与系统健康）
     ============================================================ */

  .card .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-gutter);
  }
  .card .stats .statCard {
    padding: 0 0 0 var(--space-lg);
    border-left: 1px solid var(--separator);
  }
  .card .stats .statValue { font-size: 30px; font-weight: 600; line-height: 1.2; }
  .card .stats .statLabel { margin-top: var(--space-xs); font-size: 12px; color: var(--text-secondary); }

  /* 系统健康：指标由一行一条改为两列网格，每项内部标签在上、数值在下。 */
  .card #healthMetrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-xl);
    margin: 0;
  }
  .card #healthMetrics > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-card-footer-y) 0;
    border-bottom: 1px solid var(--separator);
  }
  .card #healthMetrics > div:last-child { border-bottom: 0; }
  .card #healthMetrics dt {
    flex: none;
    width: auto;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
  }
  .card #healthMetrics dd {
    flex: none;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
  }

  /* ============================================================
     品牌订阅策略 · 档位设置矩阵（名称 / 每日限次 / 三列功能复选框）
     ============================================================ */

  .tierMatrix {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
  }
  .tierRow {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(140px, .9fr) repeat(3, minmax(120px, 1fr));
    align-items: center;
    gap: var(--space-md);
    min-width: 680px;
    padding: var(--space-sm) 0;
  }
  /* 表头贴顶，表头后的每条数据行用上边线分隔，避免与表头下边线叠成双线。 */
  .tierHead { padding-top: 0; }
  .tierRow + .tierRow { border-top: 1px solid var(--separator); }
  .tierHead .tierCell,
  .tierHead .tierFeatureCell {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
  }
  .tierFeatureCell { display: flex; justify-content: flex-start; }
  .tierMatrix + .fieldHint { margin: var(--space-md) 0 0; }

  /* ============================================================
     视觉升级 · 响应式（不得出现整页横向滚动，表格滚动留在卡体内）
     ============================================================ */

  @media (max-width: 1100px) {
    .page { padding: var(--space-gutter); }
    .topBar { padding: 0 var(--space-gutter); }
    .card .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 900px) {
    .page { padding: var(--space-lg); }
    .topBar {
      height: auto;
      flex-wrap: wrap;
      padding: var(--space-md) var(--space-lg);
    }
    .brandNote { display: none; }
    th, td { font-size: 12px; }
    .card #healthMetrics { grid-template-columns: minmax(0, 1fr); }
  }

  @media (max-width: 640px) {
    .topBar { padding: var(--space-md); }
    .card .stats { grid-template-columns: minmax(0, 1fr); }
    .modal { padding: var(--space-lg); }
  }

  /* ============================================================
     安装包品牌资料（渠道页）：两列文本字段、图标文件与预览框
     ============================================================ */

  .brandFieldGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
  .brandFieldWide { grid-column: 1 / -1; }
  .brandIconRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
  }
  .brandIconRow input[type="file"] { max-width: 210px; }
  .previewBox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    overflow: hidden;
    border: 1px solid var(--separator);
    border-radius: var(--radius-sm);
    background: var(--fill-control);
  }
  .previewBox img { max-width: 100%; max-height: 100%; }
  .channelPackageInput { width: 110px; }

  @media (max-width: 640px) {
    .brandFieldGrid { grid-template-columns: minmax(0, 1fr); }
  }

  /* ============================================================
     侧栏折叠：宽屏时左栏压到 56px 只留图标，窄屏仍走上面的抽屉
     ============================================================ */

  .sideBrand { gap: var(--space-sm); }
  .sideBrandTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sideToggle {
    flex: none;
    width: var(--control-height-sm);
    height: var(--control-height-sm);
    padding: 0;
    border: 1px solid var(--separator);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1;
  }
  .sideToggle:hover { background: var(--fill-subtle); color: var(--text-primary); }
  .sideToggle:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

  .sideBar.isCollapsed { width: 56px; padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .sideBar.isCollapsed .sideBrandTitle,
  .sideBar.isCollapsed .menuLabel,
  .sideBar.isCollapsed .accountName,
  .sideBar.isCollapsed .roleBadge { display: none; }
  /* 分组标题在折叠态是空壳，换成一条细线提示分组边界。 */
  .sideBar.isCollapsed .menuGroupTitle {
    height: 0;
    padding: 0;
    margin: 0 0 var(--space-xs);
    overflow: hidden;
    font-size: 0;
    border-top: 1px solid var(--separator);
  }
  /* 图标条里标题只剩细线，箭头也得一起收掉，否则 10px 宽度会把线撑破。 */
  .sideBar.isCollapsed .menuGroupArrow { display: none; }
  .sideBar.isCollapsed .sideBrand { justify-content: center; }
  /* 这里写 padding-left/right 而不是 padding 简写：.tabButton.menuSubItem 的左缩进是更具体的选择器，
     简写会让窄屏抽屉里的二级项缩进丢不掉。 */
  .sideBar.isCollapsed .tabButton { padding-left: 0; padding-right: 0; }
  .sideBar.isCollapsed .tabButton.menuSubItem { padding-left: 0; }
  .sideBar.isCollapsed .tabButton { justify-content: center; }
  .sideBar.isCollapsed .menuIcon { width: auto; }
  .sideBar.isCollapsed .sideFoot { align-items: center; padding-left: 0; padding-right: 0; }
  .sideBar.isCollapsed .sideAccount { justify-content: center; }
  .sideBar.isCollapsed .sideFoot .smallButton {
    width: 100%;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  /* 退出登录按钮在折叠态只剩图标，用伪元素顶替文字（按钮文字仍在 DOM 里，屏幕阅读器照常读出）。 */
  .sideBar.isCollapsed .sideFoot .smallButton::before {
    content: "⏻";
    font-size: 14px;
  }
  /* ============================================================
     分组折叠：分组标题是按钮，点一下收起本组子菜单项
     ============================================================ */

  .menuGroupItems { display: flex; flex-direction: column; gap: 2px; }
  .menuGroupItems[hidden] { display: none; }
  /* 标题覆盖原先 .menuGroupTitle 的纯文本样式：横向排开箭头与文字，去掉按钮默认外观。 */
  .menuGroupTitle {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-label-tertiary, var(--text-tertiary));
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
  }
  .menuGroupTitle:hover { color: var(--color-label-secondary, var(--text-secondary)); }
  .menuGroupTitle:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
  .menuGroupArrow { flex: none; width: 10px; font-size: 9px; line-height: 1; text-align: center; }
  .menuGroupLabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 收起时箭头朝右、下边距收掉，让标题紧贴下一组。 */
  .menuGroup.isGroupCollapsed .menuGroupArrow { transform: rotate(-90deg); }
  .menuGroup.isGroupCollapsed .menuGroupTitle { margin-bottom: 0; }

  /* 窄屏抽屉宽度恒定，折叠类只影响图标与标题，不参与宽度计算。 */
  @media (max-width: 900px) {
    .sideBar.isCollapsed { width: var(--sidebar-width); padding-left: var(--space-md); padding-right: var(--space-md); }
    .sideBar.isCollapsed .sideBrandTitle,
    .sideBar.isCollapsed .menuLabel,
    .sideBar.isCollapsed .accountName,
    .sideBar.isCollapsed .roleBadge { display: revert; }
    .sideBar.isCollapsed .menuGroupTitle {
      height: auto;
      padding-top: var(--space-md);
      padding-bottom: var(--space-xs);
      padding-left: var(--space-md);
      padding-right: var(--space-md);
      margin: 0;
      font-size: 11px;
      border-top: 0;
    }
    .sideBar.isCollapsed .tabButton { justify-content: flex-start; padding-left: var(--space-md); padding-right: var(--space-md); }
    .sideBar.isCollapsed .tabButton.menuSubItem { padding-left: 32px; }
    .sideBar.isCollapsed .sideFoot .smallButton { font-size: 12px; }
    .sideBar.isCollapsed .sideFoot .smallButton::before { content: none; }
  }

  /* ============================================================
     视觉升级 · 总览页：分组指标 + 趋势/异常并排
     指标按业务分四块，组内两列；渠道块额外给条形分布。
     .overviewSplit 只是排版容器，不参与高度传递规则
     （:662-668 的选择器只认 .page > .panel > .card 直系，包层内的卡按内容撑高即可）。
     ============================================================ */

  .overviewHint { margin-left: auto; font-size: 12px; color: var(--text-tertiary); }
  .metricGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: var(--space-gutter); }
  .metricGroup {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
    padding: var(--space-lg);
    border: 1px solid var(--separator);
    border-radius: var(--radius-md);
    background: var(--fill-secondary);
  }
  .metricGroupTitle { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
  .metricRow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); }
  .metricItem { min-width: 0; }
  .metricValue { font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .metricLabel { margin-top: 2px; font-size: 12px; color: var(--text-tertiary); }
  .channelBars { display: flex; flex-direction: column; gap: var(--space-sm); }
  .channelBarRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--space-sm); font-size: 12px; }
  .channelBarName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
  .channelBarValue { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
  .channelBarTrack { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--separator); overflow: hidden; }
  .channelBarFill { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
  .channelBarEmpty { font-size: 12px; color: var(--text-tertiary); }
  .overviewSplit { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-gutter); align-items: start; }
  @media (max-width: 1100px) {
    .overviewSplit { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 640px) {
    .metricRow { grid-template-columns: minmax(0, 1fr); }
  }

  /* ============================================================
     视觉升级 · 设备详情「最近操作」
     详情卡 max-width 560，资料区自己滚（.confirmDetails 62vh），
     审计区单独一块、自己滚，避免把操作按钮顶出弹窗。
     ============================================================ */

  .deviceAudit { border-top: 1px solid var(--separator); padding: var(--space-md) var(--space-xl) 0; max-height: 28vh; overflow-y: auto; }
  .deviceAuditTitle { margin-bottom: 6px; color: var(--text-tertiary); font-size: 12px; }
  .deviceAuditList { display: flex; flex-direction: column; gap: 4px; }
  .deviceAuditItem { display: flex; align-items: baseline; gap: 10px; font-size: 12px; }
  .deviceAuditAction { color: var(--text-primary); font-family: var(--font-mono); }
  .deviceAuditActor { color: var(--text-secondary); }
  .deviceAuditTime { margin-left: auto; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
  .deviceAuditEmpty { color: var(--text-tertiary); font-size: 12px; }

  /* ============================================================
     视觉升级 · 全局排版统一
     卡头/卡底左右内边距是 --space-lg(16px)，卡内表格首列却沿用
     --space-cell-x(14px)、卡内横幅自带 14px。三处只差 2px，但多卡
     并排时左边缘会明显参差——统一到卡头口径。
     用户列表是紧凑表（11 列），首列复选框、末列操作按钮，仍用
     --space-sm，否则每行再宽 4px 会把操作列挤到横向滚动里。
     ============================================================ */

  .card .cardBodyFlush > table > thead > tr > th:first-child,
  .card .cardBodyFlush > table > tbody > tr > td:first-child { padding-left: var(--space-lg); }
  .card .cardBodyFlush > table > thead > tr > th:last-child,
  .card .cardBodyFlush > table > tbody > tr > td:last-child { padding-right: var(--space-lg); }
  .card .cardBodyFlush > table.devicesTable > thead > tr > th:first-child,
  .card .cardBodyFlush > table.devicesTable > tbody > tr > td:first-child,
  .card .cardBodyFlush > table.devicesTable > thead > tr > th:last-child,
  .card .cardBodyFlush > table.devicesTable > tbody > tr > td:last-child { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  /* 展开的订阅明细行整格占一行，缩进由 .deviceSubList 的 44px 负责，单元格自身不留边距。 */
  .card .cardBodyFlush > table.devicesTable > tbody > tr.deviceSubRow > td { padding-left: 0; padding-right: 0; }

  /* 卡内横幅（错误条/说明条）与卡体同一左右内边距，不再自成一套缩进。 */
  .card > .banner { margin: 0; padding-left: var(--space-lg); padding-right: var(--space-lg); border-radius: 0; }

  /* ============================================================
     视觉升级 · 联系方式管理
     每条联系方式是一张内嵌小卡：名称 + 操作按钮一行，工具条在上、富文本编辑区在下。
     ============================================================ */

  .contactItem { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); border: 1px solid var(--separator); border-radius: var(--radius-md); }
  .contactItem + .contactItem { margin-top: var(--space-md); }
  .contactItem > .formRow { width: 100%; }
  .contactToolbar { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
  .contactRichText { min-height: 96px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--fill-control); line-height: 1.6; outline: none; }
  .contactRichText:focus { box-shadow: inset 0 0 0 2px var(--accent); }

  /* ============================================================
     协作台账（/admin?view=ledgerTasks 任务列表、/admin?view=ledgerCreate 创建台账、
     /admin?view=ledgerTask&id=… 详情；旧地址 view=ledger 兼容为任务列表）
     整页是一张登录卡，列表页与创建页互斥、一次只显示一页；
     详情是卡片弹窗（遮罩复用 .overlay、卡片复用 .modal 与 --overlay-bg 令牌），
     列表点「查看」与深链 view=ledgerTask&id=… 共用同一个弹窗：
     列表页 = 成员信息 → 筛选 → 任务列表（全宽）；
     创建页 = 新建事项 → owner 工具（收窄到阅读宽度）；
     详情弹窗 = 标题/编号 → 编辑 / 文件占用 / 审计，正文区自己滚动。
     owner 工具只在创建页出现，不与日常查改任务混排。
     层级：页标题 20px > 区块标题 15px > 卡内小标题 13px。
     只引用顶部令牌，卡内区块用 1px 分隔线定形，不叠第二层阴影。
     ============================================================ */

  /* 台账内容比登录表单高得多：改为顶部对齐，整页交给 body 滚动。
     否则 .loginView 的 align-items: center 会把超出视口的上半截裁掉且滚不到。 */
  #ledgerView { align-items: flex-start; padding: var(--space-xl); }
  .ledgerLoginCard { width: 100%; max-width: 1120px; padding: var(--space-page-x); }
  /* 创建页只有表单与 owner 工具：收窄到阅读宽度，任务列表页保持全宽。 */
  #ledgerView:has(#ledgerCreatePage:not([hidden])) .ledgerLoginCard { max-width: 920px; }
  /* 未登录时只剩标题与提示：收窄到登录卡尺度并居中，不摊成一块空白板。
     工作区与详情弹窗都隐藏才算未登录，否则深链详情会被误判成未登录而收窄。 */
  #ledgerView:has(#ledgerWorkspace[hidden]):has(#ledgerTaskModal[hidden]) { align-items: center; }
  #ledgerView:has(#ledgerWorkspace[hidden]):has(#ledgerTaskModal[hidden]) .ledgerLoginCard { max-width: 460px; }

  .ledgerHeader { display: flex; flex-direction: column; gap: var(--space-xs); }
  .ledgerTitle { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
  .ledgerLoginLink { color: var(--accent); font-size: 12px; text-align: center; }
  /* 台账页内切换：整页视图不带后台侧栏，页头提供「任务列表 / 创建台账」入口。 */
  .ledgerNav { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
  .ledgerNavLink {
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--separator);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
  }
  .ledgerNavLink:hover { background: var(--fill-secondary); color: var(--text-primary); }
  .ledgerNavLink[aria-current="page"] {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-weight: 600;
  }

  /* 列表页与创建页各自纵向成流；详情弹窗的正文块整块隐藏时不留空隙。 */
  .ledgerWorkspace,
  .ledgerPage,
  .ledgerTaskBody { display: flex; flex-direction: column; gap: var(--space-lg); }

  /* 卡内卡：外层是白卡，内层靠 1px 分隔线定边界，深浅主题同形。 */
  .ledgerDetail {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
    padding: var(--space-lg);
    border: 1px solid var(--separator);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
  }
  /* 每张区块卡统一「标题行 + 正文」：标题下压一条分隔线，区块边界一眼可辨。 */
  .ledgerDetail > h2 {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--separator);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .ledgerDetail textarea { min-height: 120px; }
  /* 详情卡里的保存按钮不跟着整行拉满，避免变成一整条色块。 */
  .ledgerDetail > .btnPrimary { align-self: flex-start; }

  /* owner 工具：成员邀请与 Markdown 导入同卡两段，中间一条分隔线。 */
  .ledgerTools { gap: var(--space-lg); }
  .ledgerToolsBlock { display: flex; flex-direction: column; gap: var(--space-md); min-width: 0; }
  .ledgerToolsBlock + .ledgerToolsBlock { padding-top: var(--space-lg); border-top: 1px solid var(--separator); }
  .ledgerBlockTitle { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-secondary); }
  #ledgerImportMarkdown { min-height: 180px; }
  /* 预检结果是一串格式化 JSON：保留换行、等宽、限高滚动，长内容不撑破卡片。 */
  #ledgerImportResult {
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: var(--font-mono);
  }
  #ledgerInviteResult { overflow-wrap: anywhere; }

  /* 新建事项：沿用 .createForm 的卡片外观，排布改成等宽网格——
     字段按 176px 自适应列数，按钮独占一行靠左，不会因为 5 个字段与按钮同排而错位。 */
  .ledgerCreateForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    align-items: end;
    gap: var(--space-md);
    border: 1px solid var(--separator);
    box-shadow: none;
  }
  .ledgerFormTitle { grid-column: 1 / -1; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-secondary); }
  .ledgerCreateForm > .btnPrimary { grid-column: 1 / -1; justify-self: start; }

  /* 筛选区自成一横条，与下方任务列表拉开一层。 */
  .ledgerFilters {
    padding: var(--space-md);
    border: 1px solid var(--separator);
    border-radius: var(--radius-md);
    background: var(--fill-subtle);
  }
  .ledgerToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
  .ledgerToolbar > * { flex: 1 1 160px; min-width: 0; }
  .ledgerToolbar > select { flex: 0 1 180px; }
  /* 按钮不参与拉伸：长文案靠 nowrap 保持单行，放不下时整条折行，
     而不是被压窄后换行、溢出 34px 的控件高度。 */
  .ledgerToolbar > button { flex: 0 0 auto; white-space: nowrap; }

  /* 列表页整宽：表格外层负责横向滚动，纵向限高交给 #ledgerTasks，整页长度可控。 */
  .ledgerTaskList { min-width: 0; }
  /* 列表长了不把页面拉到无限长：列表自己滚，整页长度可控。 */
  #ledgerTasks { max-height: min(62vh, 760px); overflow-y: auto; }

  /* 任务表格：窄屏不挤压七列，放不下就整表横向滚动。 */
  .ledgerTableScroller {
    overflow-x: auto;
    border: 1px solid var(--separator);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
  }
  .ledgerTable { min-width: 760px; }
  /* 表头弱化、行间分隔线、hover 高亮，与后台其他表格同一套视觉。 */
  .ledgerTable thead th {
    padding: var(--space-sm) var(--space-md);
    background: var(--fill-subtle);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    white-space: nowrap;
  }
  .ledgerTable tbody td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--separator);
    font-size: 12px;
    line-height: 1.5;
    vertical-align: top;
  }
  .ledgerTable tbody tr:last-child td { border-bottom: 0; }
  .ledgerTable tbody tr:hover td { background: var(--fill-subtle); }
  /* 编号、状态、时间、详情列不换行；只有任务名称与负责人允许断行。 */
  .ledgerCellNumber,
  .ledgerCellStatus,
  .ledgerCellTime,
  .ledgerCellAction { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ledgerCellNumber { color: var(--text-secondary); }
  .ledgerCellTitle { min-width: 220px; overflow-wrap: anywhere; }
  .ledgerCellOwner { overflow-wrap: anywhere; }
  /* 「查看」是按钮而非链接（点了不跳页），外观沿用后台行内 .linkButton。 */
  .ledgerCellAction > .linkButton { font-size: 12px; }

  .ledgerTaskMeta {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin-top: var(--space-xs);
    overflow-wrap: anywhere;
  }

  /* 空状态：细虚线框 + 一行弱化说明，不抢列表与详情的注意力。 */
  #ledgerTasks > p,
  .ledgerFiles > p,
  .ledgerAudit > p {
    padding: var(--space-lg) var(--space-sm);
    border: 1px dashed var(--separator);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-size: 12px;
    text-align: center;
  }

  .ledgerFiles, .ledgerAudit { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
  #ledgerFiles { max-height: 240px; overflow-y: auto; }
  #ledgerAudit { max-height: 340px; overflow-y: auto; }
  /* 占用行：路径占满、释放按钮靠右不换行；审计行数字等宽、长 detail 允许断行。 */
  .ledgerFile, .ledgerAuditItem {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--separator);
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .ledgerFile:last-child, .ledgerAuditItem:last-child { border-bottom: 0; }
  .ledgerFile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
  .ledgerFile > span { flex: 1 1 auto; min-width: 0; }
  .ledgerFile > button { flex: 0 0 auto; }
  .ledgerAuditItem { color: var(--text-secondary); line-height: 1.55; font-variant-numeric: tabular-nums; }

  /* ACT: 台账登录卡字段宽度类沿用旧名（当前模板未使用），仍排在 .ledgerToolbar > * 之后。 */
  .ledgerLoginField { flex: 1 1 240px; }
  .ledgerLoginFieldNarrow { flex: 1 1 180px; }

  /* 详情弹窗：遮罩与卡片直接复用后台 .overlay / .modal（遮罩色走 --overlay-bg 令牌），
     这里只覆盖宽度、内边距与滚动分工——标题行固定，正文区自己滚。 */
  .ledgerTaskCard {
    width: min(920px, 100%);
    max-width: min(920px, 100%);
    max-height: 86vh;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }
  .ledgerTaskHeader {
    flex: none;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--separator);
  }
  .ledgerTaskHeading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ledgerTaskHeading > h2 { overflow-wrap: anywhere; }
  .ledgerTaskHeading > .ledgerTaskMeta { margin-top: 0; }
  /* 弹窗内错误提示：沿用 .banner 的危险色，左右留出与正文同宽的边距。 */
  .ledgerTaskError { flex: none; margin: 0 var(--space-xl) var(--space-md); }
  #ledgerTaskBody {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--space-lg) var(--space-xl);
    overflow-y: auto;
  }

  /* 窄屏：两个视图本来就是单列，只取消列表与审计限高，交给整页滚动，
     避免窄屏里套两层滚动条。 */
  @media (max-width: 760px) {
    #ledgerView { padding: var(--space-md); }
    .ledgerLoginCard { padding: var(--space-lg); }
    #ledgerTasks, #ledgerFiles, #ledgerAudit { max-height: none; overflow-y: visible; }
    /* 窄屏详情弹窗接近全屏：遮罩留白收到 4px 档，卡片铺满视口，正文区继续自己滚。 */
    .ledgerTaskOverlay { padding: var(--space-sm); }
    .ledgerTaskCard {
      width: 100%;
      max-width: none;
      height: 100%;
      max-height: 100%;
      border-radius: var(--radius-md);
    }
    .ledgerTaskHeader, #ledgerTaskBody { padding-left: var(--space-lg); padding-right: var(--space-lg); }
    .ledgerTaskError { margin-left: var(--space-lg); margin-right: var(--space-lg); }
  }
