:root, :host {
  --ink: #172036;
  --muted: #6e7688;
  --soft: #99a1b1;
  --paper: #f3f6fb;
  --surface: #fff;
  --line: #dce4f0;
  --line-soft: #edf2f7;
  --primary: #2468e8;
  --primary-dark: #174fb8;
  --primary-soft: #eaf2ff;
  --green: #139765;
  --green-soft: #e6f8ef;
  --red: #d44d59;
  --red-soft: #fcebed;
  --orange: #df8b31;
  --orange-soft: #fff2e4;
  --dark: #171c30;
  --radius: 18px;
  --shadow: 0 18px 52px rgba(29, 68, 126, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 0, rgba(36,104,232,.08), transparent 28%),
    var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", Consolas, monospace; }
::selection { color: #fff; background: var(--primary); }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 9px 13px; color: #fff; background: var(--primary); border-radius: 8px; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.loading-line { position: fixed; inset: 0 auto auto 0; z-index: 100; width: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #a179ff, #31c6bc); opacity: 0; transition: width .25s ease, opacity .2s ease; }
.loading-line.running { width: 72%; opacity: 1; }
.loading-line.done { width: 100%; opacity: 0; }

.site-header { display: flex; width: min(100% - 34px, 1540px); min-height: 70px; margin: 0 auto; padding: 0 20px; align-items: center; gap: 34px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 8px 30px rgba(29,35,60,.04); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { position: relative; display: block; width: 34px; height: 34px; background: linear-gradient(145deg, #3d7df0, #1e57c4); border-radius: 10px; box-shadow: 0 8px 20px rgba(36,104,232,.24); }
.brand-mark i { position: absolute; width: 12px; height: 4px; background: #fff; border-radius: 4px; transform: rotate(-42deg); }
.brand-mark i:first-child { top: 10px; left: 8px; }
.brand-mark i:last-child { right: 7px; bottom: 10px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .12em; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; color: #8d95a6; font-size: 8px; letter-spacing: .12em; }
.site-header nav { display: flex; height: 70px; align-items: stretch; gap: 4px; }
.site-header nav a { position: relative; display: grid; padding: 0 15px; place-items: center; color: #71798a; font-size: 11px; font-weight: 700; }
.site-header nav a:hover, .site-header nav a.active { color: var(--ink); }
.site-header nav a.active::after { position: absolute; right: 15px; bottom: -1px; left: 15px; height: 3px; content: ""; background: var(--primary); border-radius: 3px 3px 0 0; }
.site-header nav .external-link { display: flex; align-items: center; gap: 4px; }
.site-header nav .external-link::after { content: "↗"; color: #a0a7b7; font-size: 9px; }
.service-state { display: flex; margin-left: auto; align-items: center; gap: 8px; color: #687184; font-size: 10px; font-weight: 700; }
.service-state i { width: 8px; height: 8px; background: #29bd7a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(41,189,122,.1); }

.page-shell { width: min(100% - 34px, 1600px); margin: 0 auto; padding: 30px 0 70px; }
.page-title {
  display: grid;
  margin-bottom: 18px;
  padding: 23px 26px 24px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 510px);
  gap: 32px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(32, 72, 132, .06);
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.eyebrow i { width: 30px; height: 1px; background: #b9d2ff; }
.eyebrow span:last-child { color: #969dae; }
.page-title h1 { margin: 7px 0 6px; font-size: clamp(32px, 2.7vw, 42px); letter-spacing: -.045em; line-height: 1.1; text-wrap: balance; }
.page-title p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.title-metrics { display: grid; min-width: 0; padding: 17px 12px; grid-template-columns: repeat(4, 1fr); background: #f7f9fd; border: 1px solid #e1e9f5; border-radius: 14px; }
.title-metrics span { padding: 0 16px; border-left: 1px solid #dfe7f2; }
.title-metrics span:first-child { border-left: 0; }
.title-metrics small, .title-metrics strong { display: block; }
.title-metrics small { color: #7f8a9c; font-size: 12px; font-weight: 650; }
.title-metrics strong { margin-top: 3px; color: #27344a; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.title-metrics .alive strong { color: var(--green); }
.title-metrics .dead strong { color: var(--red); }
.title-metrics .codes strong { color: var(--primary); }

.machine-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.machine-toolbar { display: flex; min-height: 82px; padding: 16px 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; border-bottom: 1px solid var(--line); }
.primary-actions, .secondary-actions, .action-cluster { display: flex; align-items: center; gap: 8px; }
.action-cluster { position: relative; }
.cluster-label { position: absolute; top: -5px; left: 1px; color: #9aa1b0; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.pool-cluster .cluster-label { color: var(--primary); }
.toolbar-separator { width: 1px; height: 34px; margin: 5px 4px 0; background: var(--line); }
.button { display: inline-flex; min-height: 44px; padding: 0 17px; align-items: center; justify-content: center; gap: 8px; color: #455269; background: #fff; border: 1px solid #d6dfec; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 750; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover:not(:disabled) { border-color: #bdb6f7; transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 9px 22px rgba(36,104,232,.22); }
.button.primary:hover:not(:disabled) { background: var(--primary-dark); }
.button.dark { color: #fff; background: var(--dark); border-color: var(--dark); }
.button:disabled { color: #a3aab7; background: #f0f2f5; border-color: #e5e8ed; box-shadow: none; cursor: not-allowed; transform: none; }
.button-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,.04); }
.button-dot.green { background: #26bb79; }
.button-dot.purple { background: #8d7cff; }
.secondary-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.secondary-actions > span { margin-right: 4px; color: #7f8a9c; font-size: 13px; }
.text-button { min-height: 36px; padding: 6px 10px; color: #5d6a7e; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; transition: color .2s ease, background .2s ease; }
.text-button:hover:not(:disabled) { color: var(--primary); background: var(--primary-soft); }
.text-button.danger:hover:not(:disabled) { color: var(--red); background: var(--red-soft); }
.text-button:disabled { color: #b1b7c2; cursor: not-allowed; }

.settings-bar {
  display: grid;
  min-height: 86px;
  padding: 14px 22px 15px;
  align-items: end;
  grid-template-columns: minmax(215px, 1.3fr) minmax(200px, 1.1fr) minmax(190px, 1fr) minmax(110px, .55fr) minmax(125px, .6fr) minmax(125px, .6fr);
  gap: 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.settings-bar > label:not(.check-option) { display: grid; min-width: 0; gap: 5px; }
.settings-bar label > span { color: #5f6d82; font-size: 12px; font-weight: 700; white-space: nowrap; }
.settings-bar select, .settings-bar input[type="number"] { width: 100%; height: 42px; padding: 0 12px; color: #344158; background: #fff; border: 1px solid #d6dfec; border-radius: 9px; outline: 0; font-size: 13px; }
.settings-bar select:focus, .settings-bar input:focus { border-color: #79a9ff; box-shadow: 0 0 0 3px rgba(36,104,232,.1); }
.settings-bar .compact input { width: 100%; }
.check-option { position: relative; display: flex; min-height: 42px; padding: 0 12px; align-items: center; gap: 8px; background: #fff; border: 1px solid #d6dfec; border-radius: 9px; cursor: pointer; }
.check-option input { position: absolute; opacity: 0; }
.check-option i { position: relative; width: 30px; height: 18px; flex: 0 0 auto; background: #d5dce7; border-radius: 18px; transition: background .2s ease; }
.check-option i::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s ease; }
.check-option input:checked + i { background: var(--primary); }
.check-option input:checked + i::after { transform: translateX(12px); }
.privacy-note { display: flex; min-height: 40px; align-items: center; gap: 7px; color: #758298; font-size: 11px; line-height: 1.55; }
.privacy-note b { color: var(--primary); font-size: 9px; }

.pool-bar { display: flex; min-height: 76px; padding: 12px 22px; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.pool-heading { display: flex; min-width: 240px; align-items: center; gap: 11px; }
.pool-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 10px; font-size: 18px; font-weight: 900; }
.pool-heading strong, .pool-heading small { display: block; }
.pool-heading strong { font-size: 14px; }
.pool-heading small { margin-top: 2px; color: #8b97a9; font-size: 11px; }
.pool-search { flex: 1; max-width: 450px; }
.pool-search input, .pool-filter select { width: 100%; height: 42px; padding: 0 12px; color: #344158; background: #f8fafc; border: 1px solid #d9e2ee; border-radius: 9px; outline: 0; font-size: 13px; }
.pool-search input:focus, .pool-filter select:focus { background: #fff; border-color: #79a9ff; box-shadow: 0 0 0 3px rgba(36,104,232,.1); }
.pool-filter { display: flex; align-items: center; gap: 7px; }
.pool-filter > span { color: #69768b; font-size: 12px; font-weight: 700; }
.pool-filter select { width: 145px; }
.pool-scope { margin-left: auto; color: #7d899b; font-size: 12px; white-space: nowrap; }

.task-progress { padding: 13px 22px; background: #edf4ff; border-bottom: 1px solid #d3e3ff; }
.task-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #315c9f; font-size: 12px; }
.progress-track { height: 6px; margin-top: 8px; overflow: hidden; background: #d3e3ff; border-radius: 6px; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--primary), #63a5ff); border-radius: inherit; transition: width .3s ease; }

.table-wrap { min-height: 460px; overflow-x: auto; }
.account-table { width: 100%; min-width: 1420px; border-collapse: collapse; table-layout: fixed; }
.account-table col.col-check { width: 42px; }
.account-table col.col-index { width: 42px; }
.account-table col.col-email { width: 205px; }
.account-table col.col-password { width: 155px; }
.account-table col.col-client { width: 195px; }
.account-table col.col-token { width: 290px; }
.account-table col.col-status { width: 155px; }
.account-table col.col-code { width: 155px; }
.account-table col.col-actions { width: 165px; }
.account-table th { height: 48px; padding: 0 10px; color: #6d798d; background: #fbfcfe; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 750; text-align: left; }
.account-table td { min-height: 66px; padding: 10px; color: #435067; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.account-table tbody tr { transition: background .18s ease; }
.account-table tbody tr:hover { background: #fbfbfe; }
.account-table tbody tr.selected { background: #f8f7ff; }
.account-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.row-index { display: grid; width: 30px; height: 30px; place-items: center; color: #657286; background: #eef2f7; border-radius: 8px; font-family: monospace; font-size: 10px; font-weight: 800; }
.field-shell { position: relative; display: flex; height: 40px; min-width: 0; align-items: center; background: #f8fafc; border: 1px solid #dce4ef; border-radius: 8px; }
.field-shell:focus-within { background: #fff; border-color: #79a9ff; box-shadow: 0 0 0 3px rgba(36,104,232,.08); }
.field-shell input { width: 100%; min-width: 0; height: 100%; padding: 0 9px; color: #344158; background: transparent; border: 0; outline: 0; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; text-overflow: ellipsis; }
.field-shell.invalid { border-color: #f0b9be; background: #fff8f8; }
.field-shell .field-action { flex: 0 0 auto; height: 100%; padding: 0 8px; color: #748197; background: transparent; border: 0; border-left: 1px solid #e0e7f0; cursor: pointer; font-size: 10px; }
.field-shell .field-action:hover { color: var(--primary); }
.token-field input { color: #6d7587; }

.status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.status-badge { display: inline-flex; min-height: 28px; padding: 0 9px; align-items: center; gap: 7px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; }
.status-idle { color: #727b8d; background: #eef0f3; }
.status-idle i { background: #9ba2b0; }
.status-checking, .status-fetching { color: #554acb; background: var(--primary-soft); }
.status-checking i, .status-fetching i { background: var(--primary); animation: pulse 1s infinite; }
.status-alive, .status-success { color: var(--green); background: var(--green-soft); }
.status-alive i, .status-success i { background: var(--green); }
.status-dead, .status-failed, .status-invalid { color: var(--red); background: var(--red-soft); }
.status-dead i, .status-failed i, .status-invalid i { background: var(--red); }
.status-no-code { color: #a05f1c; background: var(--orange-soft); }
.status-no-code i { background: var(--orange); }
.status-note { max-width: 145px; overflow: hidden; color: #8995a7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }

.code-list { display: flex; flex-wrap: wrap; gap: 4px; }
.code-chip { padding: 6px 8px; color: #fff; background: var(--primary); border: 0; border-radius: 7px; cursor: pointer; font-family: monospace; font-size: 12px; font-weight: 850; letter-spacing: .05em; }
.code-chip:hover { background: var(--primary-dark); }
.empty-code { color: #8f9aab; font-size: 11px; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.row-actions button { min-height: 34px; padding: 0 9px; color: #536177; background: #fff; border: 1px solid #d8e1ed; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 700; }
.row-actions button:hover:not(:disabled) { color: var(--primary); border-color: #9fc1fb; background: #f4f8ff; }
.row-actions button.delete:hover:not(:disabled) { color: var(--red); border-color: #efc0c5; background: #fff7f8; }
.row-actions button:disabled { color: #abb1bc; background: #f2f3f5; cursor: not-allowed; }

.empty-state { display: grid; min-height: 420px; padding: 42px; place-items: center; align-content: center; text-align: center; }
.empty-machine { position: relative; width: 116px; height: 92px; margin-bottom: 18px; }
.empty-machine span { position: absolute; inset: 13px 12px 0; background: linear-gradient(145deg, #fff, #eef0f5); border: 1px solid #dce0e7; border-radius: 13px; box-shadow: 0 13px 26px rgba(34,40,65,.08); }
.empty-machine span::after { position: absolute; top: 20px; right: 20px; left: 20px; height: 4px; content: ""; background: #ded9ff; border-radius: 4px; box-shadow: 0 14px 0 #e5e8ed, 0 28px 0 #e5e8ed; }
.empty-machine i { position: absolute; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 5px rgba(36,104,232,.09); }
.empty-machine i:nth-child(2) { top: 2px; left: 2px; }
.empty-machine i:nth-child(3) { right: 0; bottom: 2px; background: #25b979; box-shadow: 0 0 0 5px rgba(37,185,121,.08); }
.empty-machine b { position: absolute; z-index: 1; top: 28px; right: 28px; display: grid; width: 26px; height: 26px; place-items: center; color: #fff; background: var(--primary); border-radius: 8px; font-size: 17px; }
.empty-state h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.empty-state p { max-width: 540px; margin: 8px 0 20px; color: #7f8b9d; font-size: 13px; line-height: 1.75; }
.table-footer { display: grid; min-height: 56px; padding: 8px 22px; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 16px; color: #7e899b; background: #fafbfc; border-top: 1px solid var(--line); font-size: 11px; }
.table-footer > span:last-child { text-align: right; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination label { display: flex; align-items: center; gap: 5px; }
.pagination select, .pagination button { height: 32px; color: #58667c; background: #fff; border: 1px solid #d8e1ed; border-radius: 7px; font-size: 11px; }
.pagination select { padding: 0 5px; }
.pagination button { width: 28px; cursor: pointer; font-size: 16px; line-height: 1; }
.pagination button:hover:not(:disabled) { color: var(--primary); border-color: #9fc1fb; }
.pagination button:disabled { color: #bdc2cb; background: #f2f3f5; cursor: not-allowed; }
#page-label { min-width: 64px; color: #747d8f; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; padding: 20px; place-items: center; background: rgba(17,22,39,.56); backdrop-filter: blur(5px); }
.import-dialog { width: min(100%, 780px); padding: 26px; background: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; box-shadow: 0 28px 80px rgba(15,20,38,.3); }
.import-dialog > header { display: flex; align-items: center; justify-content: space-between; }
.import-dialog > header > div { display: flex; align-items: center; gap: 11px; }
.dialog-icon { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--primary); border-radius: 10px; font-size: 22px; }
.import-dialog h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.import-dialog header p { margin: 2px 0 0; color: #7f8b9d; font-size: 12px; }
#close-import { width: 32px; height: 32px; color: #7d8596; background: #f5f6f8; border: 0; border-radius: 8px; cursor: pointer; font-size: 20px; line-height: 1; }
.format-tip { display: flex; min-height: 44px; margin-top: 21px; padding: 0 13px; align-items: center; gap: 12px; color: #5f6d82; background: #f2f6ff; border: 1px solid #d9e6fb; border-bottom: 0; border-radius: 10px 10px 0 0; font-size: 12px; }
.format-tip span { padding: 4px 7px; color: #1f57bf; background: #e1edff; border-radius: 5px; font-weight: 800; }
.format-tip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-editor { display: grid; height: 285px; overflow: hidden; grid-template-columns: 36px 1fr; background: #151b2d; border: 1px solid #222b42; border-radius: 0 0 9px 9px; }
.line-numbers { padding-top: 13px; overflow: hidden; color: #63708b; background: #101624; border-right: 1px solid #242d43; font-family: monospace; font-size: 11px; line-height: 1.8; text-align: center; white-space: pre-line; user-select: none; }
#import-text { width: 100%; height: 100%; padding: 12px 14px; resize: none; color: #e1e7f0; background: transparent; border: 0; outline: 0; font-family: monospace; font-size: 12px; line-height: 1.8; white-space: pre; }
#import-text::placeholder { color: #5c6881; }
.import-tools { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 12px; }
.import-tools > div { display: flex; gap: 5px; }
.import-tools button { padding: 7px 9px; color: #56647a; background: #f1f4f8; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 650; }
.import-tools button:hover { color: var(--primary); background: var(--primary-soft); }
#import-feedback { color: #7c889a; font-size: 11px; }
#import-feedback.error { color: var(--red); }
#import-feedback.success { color: var(--green); }
.append-option { display: flex; width: max-content; align-items: center; gap: 8px; color: #6e7789; cursor: pointer; font-size: 9px; }
.append-option input { position: absolute; opacity: 0; }
.append-option i { display: grid; width: 16px; height: 16px; place-items: center; background: #fff; border: 1px solid #ccd1da; border-radius: 5px; }
.append-option input:checked + i { background: var(--primary); border-color: var(--primary); }
.append-option input:checked + i::after { color: #fff; content: "✓"; font-size: 10px; }
.pool-import-note { display: flex; align-items: center; gap: 8px; color: #5f6d82; font-size: 12px; }
.pool-import-note i { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 9px; font-style: normal; }
.import-dialog > footer { display: flex; margin-top: 20px; justify-content: flex-end; gap: 8px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; padding: 11px 15px; color: #fff; background: #171d30; border-radius: 9px; box-shadow: 0 14px 35px rgba(23,29,48,.24); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(36,104,232,.24); outline-offset: 2px; }

.batch-native-shell {
  --ink: #172036;
  --muted: #6e7688;
  --soft: #99a1b1;
  --surface: #fff;
  --line: #dce4f0;
  --line-soft: #edf2f7;
  --primary: #2468e8;
  --primary-dark: #174fb8;
  --primary-soft: #eaf2ff;
  --green: #139765;
  --green-soft: #e6f8ef;
  --red: #d44d59;
  --red-soft: #fcebed;
  --orange: #df8b31;
  --orange-soft: #fff2e4;
  --dark: #172036;
  --radius: 18px;
  --shadow: 0 18px 52px rgba(29, 68, 126, .09);
  display: block;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.batch-native-shell .page-shell { width: 100%; padding: 0 0 42px; }
.batch-native-shell .page-title { margin-bottom: 16px; }
.batch-native-shell .page-title h1 { font-size: clamp(31px, 2.6vw, 40px); }
.batch-native-shell .machine-card { box-shadow: 0 14px 38px rgba(29, 68, 126, .075); }

@media (max-width: 1280px) {
  .settings-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .privacy-note { grid-column: 1 / -1; }
}

@media (max-width: 1120px) {
  .page-title { align-items: flex-start; grid-template-columns: 1fr; }
  .title-metrics { width: 100%; min-width: 0; }
  .machine-toolbar { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .secondary-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .settings-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pool-bar { flex-wrap: wrap; }
  .pool-search { max-width: none; }
  .pool-scope { width: 100%; margin-left: 0; }
}

@media (max-width: 720px) {
  .site-header { width: 100%; min-height: 62px; padding: 0 12px; border-right: 0; border-left: 0; border-radius: 0; }
  .site-header nav { height: 62px; margin-left: auto; }
  .site-header nav a { padding: 0 8px; font-size: 11px; }
  .site-header nav a:first-child, .service-state { display: none; }
  .brand small { display: none; }
  .page-shell { width: min(100% - 18px, 1600px); padding-top: 22px; }
  .page-title { padding: 19px; }
  .page-title h1 { font-size: 34px; }
  .title-metrics span { padding: 0 8px; }
  .machine-toolbar { padding-right: 13px; padding-left: 13px; }
  .primary-actions { width: 100%; align-items: stretch; flex-wrap: wrap; }
  .action-cluster { flex: 1; }
  .action-cluster .button { flex: 1; }
  .toolbar-separator { display: none; }
  .secondary-actions { flex-wrap: wrap; }
  .settings-bar { padding-right: 13px; padding-left: 13px; grid-template-columns: 1fr; }
  .settings-bar > label:not(.check-option) { width: 100%; }
  .settings-bar select, .settings-bar .compact input { width: 100%; }
  .pool-bar { padding-right: 13px; padding-left: 13px; }
  .pool-heading, .pool-search, .pool-filter { width: 100%; max-width: none; }
  .pool-filter { justify-content: space-between; }
  .pool-filter select { width: min(70%, 260px); }
  .title-metrics strong { font-size: 24px; }
  .import-dialog { padding: 16px; }
  .import-editor { height: 320px; }
  .import-tools { align-items: flex-start; flex-direction: column; }
  .import-dialog > footer .button { flex: 1; }
  .table-footer { grid-template-columns: 1fr; justify-items: stretch; text-align: center; }
  .table-footer > span:last-child { text-align: center; }
}

@media (max-width: 440px) {
  .site-header nav a { padding: 0 6px; }
  .page-title { padding: 16px; }
  .page-title h1 { font-size: 30px; }
  .page-title p { font-size: 13px; }
  .title-metrics { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .title-metrics span:nth-child(3) { border-left: 0; }
  .title-metrics { padding: 11px 8px; }
  .title-metrics span { padding: 0 6px; }
  .secondary-actions > span { width: 100%; }
  .action-cluster { width: 100%; flex: 1 0 100%; }
  .modal-backdrop { padding: 8px; }
  .format-tip { align-items: flex-start; flex-direction: column; gap: 5px; padding: 8px 10px; }
  .toast { right: 12px; bottom: 12px; left: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
