/* ─── Pill Tabs ─── */
    .pill-tabs{display:flex;flex-wrap:wrap;background:var(--bg);border:1px solid var(--border);border-radius:var(--r-sm);padding:4px;gap:4px;margin-bottom:28px}
    .pill{display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:8px 20px;font-size:14px;font-weight:500;font-family:var(--font);color:var(--text-2);border:0;background:transparent;border-radius:7px;cursor:pointer;transition:color .15s,background .15s,box-shadow .15s,opacity .15s}
    .pill:hover{color:var(--text)}
    .pill.on{background:var(--bg-card);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.06)}

    /* compact solver status on health page */
    .solver-status-card{padding:16px 18px !important}
    .solver-status-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
    .solver-status-head .card-title{margin:0;font-size:18px;min-height:auto}
    .solver-status-body{font-size:13px;color:var(--text);line-height:1.55}
    .solver-status-body strong#h-solver-rate{font-size:18px;font-weight:700;color:var(--text)}
    .solver-status-body #h-solver-rate-sub,
    .solver-status-body #h-solver-status-hint,
    .solver-status-body #h-solver-restart-at{color:var(--text-2);font-size:12px}

    /* Compact register / health / settings / mail / blacklist panels */
    #v-register .card,
    #v-health .card,
    #v-settings .card,
    #v-mail .card{
      padding:16px 18px;
      margin-bottom:12px;
      border-radius:var(--r-sm);
    }
    #v-register .card-title,
    #v-health .card-title,
    #v-settings .card-title,
    #v-mail .card-title{
      font-size:20px;
      margin-bottom:14px;
      min-height:auto;
      line-height:1.3;
    }
    #v-register .pill-tabs{
      position:relative;display:flex;flex-direction:column;align-items:stretch;
      padding:4px;gap:4px;margin-bottom:14px;
      overflow:visible;max-width:100%;min-width:0;
    }
    #v-register .pill-track{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;width:100%;gap:4px}
    #v-register .pill-seg{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;width:100%;min-width:0}
    #v-register .pill-seg + .pill-seg{border-top:1px solid var(--border);padding-top:4px}
    #v-register .pill-seg[data-family="go/native"]{--seg-mark:var(--accent)}
    #v-register .pill-seg[data-family="newapi"]{--seg-mark:#5E6F62}
    #v-register .pill-seg[data-family="sub2api"]{--seg-mark:#7A6550}
    html[data-theme="dark"] #v-register .pill-seg[data-family="newapi"]{--seg-mark:#8A9B8C}
    html[data-theme="dark"] #v-register .pill-seg[data-family="sub2api"]{--seg-mark:#B09A7E}
    #v-register .pill-seg-head{
      display:flex;align-items:center;gap:5px;align-self:flex-start;width:auto;max-width:100%;padding:0;min-height:0;
    }
    #v-register .pill-seg-mark{
      flex:0 0 auto;width:2px;height:10px;border-radius:1px;background:var(--seg-mark,var(--accent));
    }
    #v-register .pill-seg-title{font-size:11px;font-weight:600;color:var(--text);line-height:1.2}
    #v-register .pill-seg-hint{font-size:10px;font-weight:500;color:var(--text-3);line-height:1.2}
    #v-register .pill-seg-pills{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;align-content:flex-start;gap:1px;width:100%;min-width:0}
    #v-register .pill-insert{
      position:absolute;width:2px;border-radius:1px;background:var(--accent);
      pointer-events:none;z-index:2;
    }
    #v-register .pill{
      flex:0 0 auto;padding:4px 8px;font-size:12px;min-height:26px;
      white-space:nowrap;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none;
    }
    #v-register .pill.dragging{opacity:.42;cursor:grabbing}
    #v-register .pill-tabs.is-pill-dragging,#v-register .pill-tabs.is-pill-dragging .pill{cursor:grabbing}
    #v-register .field{margin-bottom:12px}
    #v-register .field label{margin-bottom:4px;font-size:12px}
    #v-register .grid-2{gap:12px}
    #v-register .inp{
      padding:8px 12px;font-size:13px;min-height:36px;height:auto;box-sizing:border-box;
    }
    #v-register .btn{padding:8px 14px;font-size:13px;min-height:36px}
    #v-register .btn-sm{padding:5px 10px;font-size:12px;min-height:30px}
    #v-register .actions{
      gap:10px;margin-top:10px;padding-top:10px;
    }
    #v-register .svc-title-line{gap:8px;margin-bottom:2px}
    #v-register .svc-tag{padding:2px 7px;font-size:10px}
    #v-register .platform-tag-editor{margin:-6px 0 14px;padding:8px 0}
    #v-settings,
    #v-settings .settings-group,
    #v-settings .card,
    #v-settings .card.settings-accordion{
      height:auto;
      min-height:0;
    }
    #v-settings .card,
    #v-settings .card.settings-accordion{
      padding:12px 16px;
    }
    #v-settings .settings-accordion .card-title{
      margin-bottom:8px;
      min-height:auto;
      padding-top:0;
    }
    #v-register .field,
    #v-health .field,
    #v-settings .field,
    #v-mail .field{margin-bottom:10px}
    #v-register .field label,
    #v-health .field label,
    #v-settings .field label,
    #v-mail .field label{margin-bottom:4px;font-size:12px}
    #v-register .grid-2,
    #v-health .grid-2,
    #v-settings .grid-2,
    #v-mail .grid-2{gap:12px}
    #v-register .inp,
    #v-health .inp,
    #v-settings .inp,
    #v-mail .inp{padding:8px 12px;font-size:13px;min-height:36px;height:auto;box-sizing:border-box}
    #v-settings .ts-key-field{min-height:28px;height:28px}
    #v-settings .ts-key-field .inp{min-height:0;height:100%;padding:0 8px 0 10px;line-height:26px;background:transparent;border:0;box-shadow:none}
    #v-settings .ts-field-hint{margin:4px 0 0;line-height:1.35}
    #v-settings .ts-layer-title + .ts-field-hint{margin:0 0 4px}
    #v-settings .ts-local-grid .field{margin-bottom:0}
    #v-settings .ts-local-grid .inp{
      min-height:28px;height:28px;padding:0 8px;font-size:13px;
    }
    #v-settings .ts-timeout-field .inp{
      width:4.5em;min-width:4.2em;max-width:5.5em;
    }
    #v-settings .ts-kind-cell > select.inp{
      min-height:28px;height:28px;padding:0 24px 0 8px;font-size:12px;
    }
    #v-settings .ts-kind-cell > .nice-select .nice-select-btn{
      min-height:28px;height:28px;padding:0 24px 0 8px;font-size:12px;
    }
    #v-settings .ts-actions{margin-top:8px;padding-top:0;border-top:0}
    #v-settings .ts-actions .btn{width:auto;min-width:4.5em;min-height:32px;height:32px;padding:0 14px}
    #v-register .btn,
    #v-health .btn,
    #v-settings .btn,
    #v-mail .btn{padding:7px 12px;font-size:13px}
    #v-register .btn-sm,
    #v-health .btn-sm,
    #v-settings .btn-sm,
    #v-mail .btn-sm{padding:5px 10px;font-size:12px}
    #v-health .ver-hint,
    #v-settings .ver-hint,
    #v-mail .ver-hint{font-size:12px;line-height:1.45;margin-bottom:10px}
    #v-settings .ts-field-hint.ver-hint{margin:4px 0 0;line-height:1.35}
    #v-settings .ts-layer-title + .ts-field-hint.ver-hint{margin:0 0 4px}
    #v-health .tbl-wrap{margin-top:4px}
    #v-health table th,
    #v-health table td{padding:8px 10px;font-size:12px}

    /* Health tab cockpit: narrow nums, status bar, collapsed empty tables */
    #v-health .card{
      padding:12px 16px;
      margin-bottom:10px;
    }
    #v-health .card-title{
      font-size:18px;
      margin-bottom:8px;
    }
    #v-health .ver-hint{
      margin:0 0 8px;
      font-size:12px;
      line-height:1.4;
    }
    #v-health .health-enable-row{margin:0 0 8px}
    #v-health .health-enable-row label{
      display:inline-flex;
      align-items:center;
      gap:6px;
      margin:0;
      font-size:13px;
      cursor:pointer;
    }
    #v-health .health-num-row{
      display:grid;
      grid-template-columns:repeat(5,max-content);
      align-items:end;
      gap:8px 16px;
      margin:0 0 8px;
    }
    #v-health .health-num-row > .field{margin:0;width:auto}
    #v-health .health-num-row > .field label{
      display:block;
      margin:0 0 4px;
      font-size:12px;
      white-space:nowrap;
    }
    #v-health .health-num-row > .field .inp{
      width:4.5em;
      min-width:4.25em;
      max-width:4.5em;
      padding:4px 8px;
      min-height:32px;
      height:32px;
      font-size:13px;
      line-height:22px;
      text-align:center;
      font-variant-numeric:tabular-nums;
    }
    #v-health .health-advanced{margin:2px 0 0}
    #v-health .health-advanced summary{
      cursor:pointer;
      color:var(--text-2);
      font-size:12px;
    }
    #v-health .health-advanced .health-num-row{margin:8px 0 0}
    #v-health .health-save-row{margin-top:8px}
    #v-health .health-save-row .btn{width:auto}
    #v-health .solver-status-card{padding:12px 16px !important}
    #v-health .solver-status-bar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    #v-health .solver-status-body{
      display:block;
      min-width:0;
      font-size:13px;
      line-height:1.55;
      color:var(--text);
    }
    #v-health .solver-status-body > div + div{margin-top:2px}
    #v-health .solver-status-body strong#h-solver-rate{
      font-size:18px;
      font-weight:700;
      font-variant-numeric:tabular-nums;
    }
    #v-health .solver-status-body #h-solver-rate-sub,
    #v-health .solver-status-body #h-solver-status-hint,
    #v-health .solver-status-body #h-solver-restart-at{
      color:var(--text-2);
      font-size:12px;
    }
    #v-health .solver-status-body #h-solver-rate-sub:empty{display:none}
    #v-health .solver-status-body > div:empty{display:none}
    #v-health .collapsible-toolbar{margin:0 0 6px}
    #v-health .collapsible-toolbar .btn,
    #v-health .solver-status-bar .btn-sm,
    #v-health .btn-sm{min-height:30px;height:30px}
    #v-health .health-select-all{
      display:inline-flex;
      align-items:center;
      gap:6px;
      margin:0;
      font-size:12px;
      color:var(--text-2);
      cursor:pointer;
    }
    #v-health .health-selected{color:var(--text-3);font-size:12px}
    #v-health .health-empty{
      margin:8px 0 0;
      color:var(--text-3);
      font-size:12px;
      line-height:1.5;
    }
    #v-health .health-empty:empty{display:none}
    #v-health .health-warp-card:has(#h-warp-tbody:empty) .health-select-all{display:none}
    #v-health .card.is-empty .collapsible-toolbar{margin-bottom:4px}
    @media (max-width:820px){
      #v-health .health-num-row{
        grid-template-columns:repeat(2,max-content);
      }
      #v-health .solver-status-bar{flex-wrap:wrap}
    }
    #v-settings .push-config{margin-top:12px;padding-top:10px}
    #v-settings .push-config .push-title{margin-bottom:8px;font-size:12px}

    /* Settings / Mail cockpit：对齐健康页密度；窄数字框、紧凑标题、短字段合并行 */
    #v-mail .card{padding:12px 16px}
    #v-settings .card-title,
    #v-mail .card-title{font-size:18px;margin-bottom:8px}
    #v-mail #sWait,#v-mail #sPoll,#v-mail #sME{width:7em;min-width:6.5em;max-width:7.5em;text-align:center;font-variant-numeric:tabular-nums}
    #v-mail #sPri{width:100%;max-width:none}
    #v-settings .live-card > .card-title,
    #v-settings .live-card > .card-title .collapsible-title-text{
      font-family:var(--font);font-weight:500;
    }
    #v-settings .live-card .field{margin-bottom:10px}
    #v-settings .live-card .live-status-field{margin-bottom:8px}
    #v-settings .live-plats-head label,
    #v-settings .live-status-head > label,
    #v-settings .live-num-row > .field label{margin-bottom:0}
    #v-settings .live-num-row > .field .inp{
      width:4.5em;min-width:4.2em;max-width:5.5em;
      padding:0 8px;min-height:28px;height:28px;
      font-size:13px;border-color:var(--border-hover);
    }
    #v-settings .live-plat-toolbar .inp{
      min-height:28px;height:28px;padding:0 8px;font-size:12px;
    }
    #v-settings .live-plat-toolbar .btn{
      min-height:28px;height:28px;padding:0 8px;font-size:12px;
    }
    #v-settings .live-save-row{
      margin-top:8px;padding-top:8px;border-top:1px solid var(--border);
    }
    #v-settings .live-save-row .btn{width:auto;min-width:4.5em;min-height:32px;height:32px;padding:0 14px}
    #v-settings .field > .nice-select{max-width:340px}
    #v-settings .sec-fields-row,
    #v-mail .sec-fields-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:10px;align-items:end}
    #v-mail .sec-fields-row{grid-template-columns:minmax(8em,1fr) max-content max-content}
    #v-settings .sec-fields-row .field,
    #v-mail .sec-fields-row .field{margin-bottom:0}
    @media (max-width:820px){
      #v-settings .sec-fields-row,
      #v-mail .sec-fields-row{grid-template-columns:1fr}
    }

    /* Domain blacklist — 紧凑 chip 流，密度对齐设置/平台列表 */
    .bl-panel{padding:16px 18px;margin-bottom:16px}
    .bl-panel > .card-title{font-size:20px;margin-bottom:12px}
    .bl-search-row{margin-bottom:10px}
    .bl-search-row .inp{width:100%;max-width:420px}
    .bl-merged-list{display:flex;flex-direction:column}
    .bl-section{padding:10px 0}
    .bl-section:first-child{padding-top:2px}
    .bl-section + .bl-section{border-top:1px solid var(--border)}
    .bl-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
    .bl-section-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text);line-height:1.3}
    .bl-chip-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;padding:1px 6px;border-radius:99px;background:var(--bg-input);border:1px solid var(--border);color:var(--text-3);font-size:10px;font-weight:500;line-height:1.4}
    .bl-chip-count:empty{display:none}
    .bl-section-add{display:flex;gap:6px;margin-bottom:8px;max-width:460px}
    .bl-section-add .inp{flex:1;min-width:0;padding:6px 10px;font-size:12px;min-height:30px}
    .bl-section-add .btn{flex:0 0 auto;min-height:30px;white-space:nowrap}
    .bl-section-list{max-height:144px;overflow-y:auto;color:var(--text-2);font-size:12px}
    .bl-chips{display:flex;flex-wrap:wrap;gap:6px;padding:2px 0}
    .bl-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border:1px solid var(--border);border-radius:99px;background:var(--bg-input);color:var(--text-2);font-size:12px;line-height:1.5;transition:border-color .15s,background .15s}
    .bl-chip:hover{border-color:var(--border-hover)}
    .bl-chip:has(input:checked){border-color:var(--accent);background:var(--accent-light);color:var(--text)}
    .bl-chip input[type="checkbox"]{margin:0;width:12px;height:12px;flex:0 0 auto;accent-color:var(--accent);cursor:pointer}
    .bl-chip-domain{font-family:var(--mono);font-size:12px;font-weight:500;color:var(--text);word-break:break-all}
    .bl-chip-ago{font-size:10px;color:var(--text-3);white-space:nowrap}
    .bl-chip-x{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:0;border-radius:99px;background:transparent;color:var(--text-3);font-size:13px;line-height:1;cursor:pointer}
    .bl-chip-x:hover{background:var(--error-bg);color:var(--error)}
    .bl-none{color:var(--text-3);font-size:12px}
    .bl-section-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
    .bl-empty{padding:8px 0;color:var(--text-2);font-size:12px}
    .bl-pager{
      margin:4px 0 0!important;padding:12px 0 0!important;
      border:0!important;border-top:0!important;border-radius:0!important;
      background:transparent!important;box-shadow:none!important;
    }
