:root {
  --page: #f6f7fb;
  --surface: #fff;
  --ink: #242b43;
  --muted: #7d8498;
  --line: #eceef5;
  --primary: #7261dd;
  --primary-hover: #6050cb;
  --primary-soft: #f0edfe;
  --success: #269375;
  --danger: #d65c70;
  --shadow: 0 6px 28px -12px rgb(48 47 79 / 12%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .52; cursor: not-allowed; }
button, a { transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:focus-visible, a:focus-visible { outline: 3px solid #c6bcfb; outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: #a395eb; box-shadow: 0 0 0 3px #f0edfc; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; }
.icon { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 1.65; }
.muted, .caption { color: var(--muted); }
.caption { font-size: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.btn { border: 1px solid #e3e5ef; background: #fff; border-radius: 9px; min-height: 39px; padding: 8px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 550; color: #596079; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #f8f8fc; border-color: #d4d4e8; }
.btn.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 3px 9px #7261dd24; }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); }
.btn.soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn.danger { color: var(--danger); border-color: #f0d9df; }
.btn.danger:hover { background: #fff4f6; }
.btn.sm { min-height: 31px; padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.icon-btn { width: 33px; height: 33px; display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 7px; background: transparent; color: #9095a9; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn.danger:hover { background: #fff0f3; color: var(--danger); }
.is-loading .icon { animation: spin 1.2s linear infinite; }
.text-btn { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 550; display: inline-flex; align-items: center; gap: 5px; }
.text-btn:hover { color: var(--primary-hover); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 39px; height: 39px; }
.brand strong { font-size: 17px; letter-spacing: -.5px; font-weight: 720; }
.brand small { display: block; color: #9695b1; font-size: 10px; letter-spacing: 1.5px; margin-top: -2px; }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; }
.boot-screen span { font-size: 22px; font-weight: 650; }
.boot-screen p { color: var(--muted); font-size: 12px; }
.loading-line { height: 3px; width: 120px; border-radius: 4px; background: linear-gradient(90deg,#e5e0fc,#8877e9,#e5e0fc); background-size: 200%; animation: shimmer 1.2s infinite; }
.shell { min-height: 100vh; }
.sidebar { width: 234px; position: fixed; inset: 0 auto 0 0; z-index: 25; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 20px 20px; }
.sidebar .brand { margin-left: 5px; margin-bottom: 37px; }
.nav-group { margin: 13px 0 9px 13px; color: #b0b2c2; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 11px 14px; margin-bottom: 5px; border-radius: 9px; color: #7a8094; font-size: 13px; font-weight: 550; position: relative; }
.nav-item .icon { color: #8d91a6; width: 19px; }
.nav-item:hover { background: #f8f8fc; color: #56506d; }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-item.active .icon { color: var(--primary); }
.nav-item.active::after { content: ""; width: 5px; height: 5px; background: var(--primary); border-radius: 50%; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-note { background: linear-gradient(120deg,#f6f3ff,#f3f6fe); border: 1px solid #eee9fc; border-radius: 13px; padding: 16px; font-size: 11px; color: #9890b2; }
.sidebar-note strong { display: block; color: #73658f; font-size: 12px; margin-bottom: 5px; }
.sidebar-note .icon { color: #a493dc; margin-bottom: 7px; }
.sidebar-footer { display: flex; justify-content: space-between; color: #b4b6c5; font-size: 10px; padding: 18px 5px 0; }
.workspace { margin-left: 234px; }
.topbar { height: 78px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #ffffffd9; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #999eaf; font-size: 12px; }
.breadcrumb span:last-child { color: #6c7089; }
.breadcrumb .icon { width: 14px; height: 14px; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.mode-pill { font-size: 11px; padding: 4px 10px; border: 1px solid #e9e5fa; border-radius: 6px; color: #8b7eba; background: #faf8ff; }
.user-chip { display: flex; align-items: center; gap: 9px; color: #5a6079; font-size: 12px; border: 0; background: none; padding: 0; }
.user-chip .icon { width: 13px; }
.avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: linear-gradient(140deg,#ede6ff,#e4ecff); color: #8470c5; font-weight: 700; flex-shrink: 0; }
.menu-toggle { display: none; }
.content { padding: 32px 38px 24px; max-width: 1630px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { font-size: 25px; line-height: 1.4; }
.page-heading p { color: #9398aa; margin-top: 5px; font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: #a4a4ba; font-weight: 650; margin-bottom: 6px; }
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.welcome-card { min-height: 185px; border-radius: 16px; border: 1px solid #e5dff9; background: linear-gradient(108deg,#f0eaff 0%,#f4f0ff 43%,#eef3ff 100%); padding: 28px 31px; position: relative; overflow: hidden; display: flex; align-items: center; margin-bottom: 25px; }
.welcome-card h2 { font-size: 26px; line-height: 1.45; color: #4d426f; }
.welcome-card p { font-size: 12px; color: #9186ab; margin: 9px 0 18px; max-width: 410px; }
.welcome-card .eyebrow { color: #9986c2; }
.welcome-copy { position: relative; z-index: 2; max-width: 68%; }
.welcome-art { position: absolute; width: 300px; height: 225px; right: 20px; top: -10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; margin-bottom: 25px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 21px; box-shadow: var(--shadow); }
.stat-head { display: flex; justify-content: space-between; align-items: center; }
.stat-label { color: #8c92a5; font-size: 12px; }
.stat-icon { width: 37px; height: 37px; background: #f2eefe; color: #9c85d6; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon.green { background: #eaf7f1; color: #6fac94; }
.stat-icon.blue { background: #edf4ff; color: #7b9ed8; }
.stat-icon.orange { background: #fff5eb; color: #d7a371; }
.stat-value { font-size: 29px; letter-spacing: -1px; font-weight: 650; margin: 9px 0 2px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.stat-value small { font-size: 12px; margin-left: 5px; color: #999fb0; font-weight: 400; }
.stat-foot { color: #a3a8b7; font-size: 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.card-header { min-height: 69px; padding: 20px 23px; display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid #f0f1f7; }
.card-header h2 { font-size: 14px; }
.card-header p { margin-top: 4px; color: #a0a4b5; font-size: 11px; }
.card-body { padding: 24px; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,1fr); gap: 21px; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; padding: 28px 24px; }
.step-number { width: 31px; height: 31px; background: var(--primary-soft); color: #9b89d4; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-bottom: 14px; }
.step h3 { font-size: 12px; margin-bottom: 7px; }
.step p { font-size: 11px; color: #9b9fb1; max-width: 165px; line-height: 1.9; }
.info-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 12px; border-bottom: 1px solid #f3f3f8; }
.info-line:first-child { padding-top: 0; }
.info-line:last-child { border-bottom: none; padding-bottom: 0; }
.info-line > span { color: #9499ac; }
.info-line > span:first-child { flex-shrink: 0; white-space: nowrap; }
.info-line > strong { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.hint { display: flex; align-items: flex-start; gap: 10px; background: #f7f6fd; border: 1px solid #ebe7fa; color: #8a80a5; border-radius: 9px; padding: 13px 16px; font-size: 11px; line-height: 1.9; }
.hint .icon { width: 16px; height: 16px; margin-top: 2px; }
.hint.warning { background: #fff8ee; border-color: #f5e9d7; color: #b39769; }
.toolbar { padding: 17px 23px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #f0f1f7; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; max-width: 285px; }
.search-box .icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: #a5a9ba; }
.search-box input { padding-left: 35px; width: 100%; }
input, select, textarea { border: 1px solid #e6e8f0; border-radius: 8px; padding: 9px 12px; background: #fff; color: #535a73; min-height: 39px; transition: border-color .18s, box-shadow .18s; }
input::placeholder, textarea::placeholder { color: #b2b5c4; }
select { font-size: 12px; }
.tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 8px; background: #f6f6fa; }
.tab { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font-size: 11px; color: #9095a8; }
.tab.active { background: #fff; color: #7768ba; box-shadow: 0 2px 5px #34345608; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #fafafd; color: #9b9fb1; font-weight: 500; font-size: 10px; height: 43px; padding: 10px 18px; white-space: nowrap; }
td { padding: 16px 18px; font-size: 12px; border-bottom: 1px solid #f0f1f7; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfcfe; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
.check-cell { width: 34px; padding-right: 0; }
input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; min-height: 0; margin: 0; cursor: pointer; vertical-align: middle; }
.proxy-name { display: flex; align-items: center; gap: 10px; min-width: 145px; }
.proxy-symbol { width: 32px; height: 32px; border-radius: 9px; background: #f4f1fc; color: #b09ad6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proxy-symbol .icon { width: 16px; height: 16px; }
.proxy-title { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; color: #666a84; }
.proxy-sub { color: #afb2c1; font-size: 10px; margin-top: 3px; }
.proxy-sub .icon { width: 10px; height: 10px; vertical-align: -1px; margin-right: 3px; }
.text-btn.caption .icon { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 8px; font-size: 10px; white-space: nowrap; background: #f3f4f8; color: #9a9eaf; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.success { background: #edf8f2; color: #65a88b; }
.badge.error { background: #fff0f3; color: #d98798; }
.badge.pending { background: #fff7eb; color: #c4a06c; }
.badge.purple { background: #f1edfe; color: #9b88ce; }
.badge.blue { background: #edf3fe; color: #85a2d3; }
.endpoint { display: flex; align-items: center; gap: 6px; color: #898ba3; white-space: nowrap; }
.endpoint .icon-btn { width: 26px; height: 26px; }
.endpoint .icon { width: 13px; height: 13px; }
.endpoint-label { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.endpoint-label .badge { padding: 2px 6px; font-size: 9px; }
.endpoint-secondary { margin-top: 7px; color: #aaa1b8; font-size: 11px; }
.endpoint-secondary .icon-btn { color: #aaa1b8; }
.endpoint-conflicted { color: #bc8798; }
.row-actions { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.row-actions .icon { width: 16px; height: 16px; }
.pagination { border-top: 1px solid #f0f1f7; padding: 15px 23px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #a3a7b8; font-size: 11px; }
.selection-bar { display: flex; align-items: center; gap: 12px; background: #f7f4ff; padding: 10px 23px; color: #9080b8; font-size: 11px; border-bottom: 1px solid #eee7fb; flex-wrap: wrap; }
.selection-bar .actions { margin-left: auto; }
.empty { text-align: center; padding: 51px 24px; }
.empty-symbol { width: 66px; height: 66px; border-radius: 21px; background: linear-gradient(130deg,#f2ecff,#edf3fe); color: #ad9bcf; display: flex; align-items: center; justify-content: center; margin: 0 auto 19px; transform: rotate(-4deg); }
.empty-symbol .icon { width: 28px; height: 28px; transform: rotate(4deg); }
.empty h3 { font-size: 14px; color: #7b7793; }
.empty p { font-size: 12px; color: #b0abba; margin: 7px auto 19px; max-width: 360px; line-height: 1.9; }
.section-gap { margin-bottom: 23px; }
.card + .relay-overview { margin-top: 23px; }
.relay-summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px; background: linear-gradient(112deg,#fcfaff,#fff 72%); }
.relay-current { min-width: 0; flex: 1; }
.relay-current .eyebrow { color: #a190c0; font-size: 9px; }
.relay-current h2 { font-size: 19px; color: #6c5a88; overflow-wrap: anywhere; }
.relay-current p { color: #a196b3; font-size: 11px; margin-top: 7px; }
.relay-summary-metrics { display: flex; gap: 29px; flex-shrink: 0; }
.relay-summary-metrics > div { min-width: 75px; }
.relay-summary-metrics span { display: block; color: #a1a1b5; font-size: 10px; margin-bottom: 8px; }
.relay-summary-metrics strong { color: #82729b; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.relay-summary-metrics small { color: #b4a9c3; font-size: 11px; font-weight: 450; }
.relay-summary-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 25px; border-top: 1px solid #f0ecf7; color: #a398b5; font-size: 10px; }
.relay-summary-footer > span { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.relay-summary-footer .icon { width: 14px; height: 14px; }
.spinning { animation: spin 1.2s linear infinite; }
.relay-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 23px 12px; flex-wrap: wrap; }
.relay-mode-control { display: flex; align-items: center; gap: 14px; }
.relay-mode-control label { font-size: 11px; color: #9690a6; }
.relay-mode-control select { min-height: 34px; min-width: 140px; padding: 5px 11px; }
.relay-toolbar-note { padding: 0 23px 17px; color: #a6a2b5; font-size: 10px; line-height: 1.9; }
.candidate-count { color: #a499b4; font-size: 10px; white-space: nowrap; }
.bridge-filters { display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(180px,1fr) minmax(110px,.55fr) 31px; padding: 14px 21px; gap: 11px; }
.bridge-filters .search-box { max-width: none; min-width: 0; }
.bridge-filters select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.bridge-filters input, .bridge-filters select { min-height: 36px; font-size: 11px; background: #fdfcfe; border-color: #eeebf6; }
.bridge-filters .search-box .icon { top: 10px; }
.bridge-selection-tools { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; padding: 11px 21px; color: #9d95b0; font-size: 10px; border-bottom: 1px solid #f0edf7; }
.bridge-selection-tools .text-btn { font-size: 10px; font-weight: 500; }
.page-select { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.bridge-total { margin-left: auto; }
.bridge-batch { padding: 9px 21px; }
.bridge-batch .actions { margin-left: 0; gap: 7px; }
.bridge-batch > span { margin-left: auto; font-size: 10px; color: #a89dbb; }
.bridge-batch .btn { font-size: 10px; min-height: 29px; }
.bridge-batch .icon { width: 13px; height: 13px; }
.bridge-table table { table-layout: fixed; }
.bridge-table th, .bridge-table td { padding: 11px 12px; }
.bridge-table th:first-child, .bridge-table td:first-child { padding-left: 21px; width: 42px; }
.bridge-table th:nth-child(2) { width: 29%; }
.bridge-table th:nth-child(3) { width: 22%; }
.bridge-table th:nth-child(4) { width: 128px; }
.bridge-table th:nth-child(5) { width: 83px; }
.bridge-table th:last-child, .bridge-table td:last-child { padding-right: 21px; width: 116px; }
.node-actions-heading { text-align: right; }
.bridge-table tr.current-node { background: #fbf9ff; }
.bridge-table tr.node-selected { background: #f6f2ff; }
.node-title-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.node-title-line strong { color: #716184; font-weight: 550; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-title-line .badge { padding: 1px 5px; font-size: 8px; flex-shrink: 0; }
.node-address { display: block; color: #afa5bc; font-size: 10px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-address > span { margin-left: 8px; color: #b4a9c2; font-family: inherit; font-size: 9px; }
.source-label { display: block; font-size: 11px; color: #9281a7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-label small { color: #b3a6c4; font-size: 9px; }
.node-source-url { display: block; margin-top: 3px; font-size: 9px; color: #b0a4bf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-health .badge { font-size: 9px; padding: 2px 7px; }
.node-check-detail { display: block; margin-top: 4px; font-size: 9px; color: #b2a8be; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-check-detail.is-error { color: #c494a5; }
.node-candidate label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: #a493b8; font-size: 10px; }
.node-candidate small { display: block; color: #b5a9c4; font-size: 9px; margin-top: 4px; }
.node-candidate input:disabled { cursor: not-allowed; }
.node-candidate label:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.node-actions .row-actions { justify-content: flex-end; gap: 3px; }
.node-actions .node-speed { font-size: 10px; padding: 4px 8px; color: #a08bbd; border-color: #ebe5f5; background: #fdfbff; min-height: 28px; }
.node-speed .icon { width: 13px; height: 13px; }
.node-actions .icon-btn { width: 26px; height: 28px; }
.node-actions .icon-btn .icon { width: 15px; height: 15px; }
.bridge-list .pagination { padding: 12px 21px; font-size: 10px; }
.bridge-list .pagination .btn { font-size: 10px; min-height: 28px; }
.bridge-footnote { color: #ada1bc; font-size: 10px; padding: 12px 2px 0; line-height: 1.9; }
.subscription-toolbar { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.subscription-toolbar .search-box { max-width: none; }
.subscription-toolbar input { background: #fdfbff; border-color: #ece6f5; font-size: 11px; }
.subscription-toolbar > span { font-size: 10px; color: #a69ab8; white-space: nowrap; }
.subscription-list { border: 1px solid #eee9f6; border-radius: 11px; overflow: hidden; }
.subscription-row { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-bottom: 1px solid #f1edf8; }
.subscription-row:last-child { border-bottom: 0; }
.subscription-row:hover { background: #fdfbff; }
.subscription-symbol { flex-shrink: 0; width: 31px; height: 31px; border-radius: 9px; background: #f2edfc; color: #ad96cd; display: flex; align-items: center; justify-content: center; }
.subscription-symbol .icon { width: 16px; height: 16px; }
.subscription-info { flex: 1; min-width: 0; }
.subscription-info strong, .subscription-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subscription-info strong { color: #8b769f; font-size: 12px; font-weight: 550; }
.subscription-info span { margin-top: 4px; color: #b1a2c0; font-size: 10px; }
.subscription-row .badge { flex-shrink: 0; font-size: 9px; }
.subscription-row .row-actions { flex-shrink: 0; }
.subscription-row .icon-btn { width: 29px; height: 29px; }
.subscription-note { display: flex; gap: 8px; margin-top: 16px; color: #afa0be; font-size: 10px; line-height: 1.9; }
.subscription-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.subscription-empty { padding: 34px 15px; color: #b1a2c2; font-size: 11px; text-align: center; }
.subscription-empty > .icon { width: 26px; height: 26px; display: block; margin: 0 auto 12px; }
.subscription-empty strong { color: #9988ac; font-weight: 550; }
.subscription-empty p { margin-top: 6px; font-size: 10px; }
.servers-workspace .server-node-table table { table-layout: fixed; }
.servers-workspace .server-node-table th:nth-child(1) { width: 24%; }
.servers-workspace .server-node-table th:nth-child(2) { width: 23%; }
.servers-workspace .server-node-table th:nth-child(3) { width: 14%; }
.servers-workspace .server-node-table th:nth-child(4) { width: 18%; }
.servers-workspace .server-node-table th:last-child { width: 195px; }
.servers-workspace .server-node-actions-heading { text-align: right; }
.servers-workspace .server-node-actions .row-actions { justify-content: flex-end; gap: 2px; }
.servers-workspace .server-node-actions .btn { font-size: 10px; padding: 5px 8px; }
.servers-workspace .server-node-actions .btn .icon { width: 13px; height: 13px; }
.servers-workspace .server-node-actions .icon-btn { width: 27px; height: 31px; }
.servers-workspace .server-node-table .proxy-name { min-width: 0; }
.servers-workspace .server-node-table .proxy-name > div:last-child { min-width: 0; }
.servers-workspace .server-node-table .proxy-title { max-width: none; }
.servers-workspace .server-node-address > .mono, .servers-workspace .server-node-user > .mono { display: block; color: #9a8baa; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.servers-workspace .server-node-error { margin-top: 4px; color: #ada2bc; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.servers-workspace .server-node-footnote { padding: 13px 2px 0; font-size: 10px; color: #ada1bb; line-height: 1.9; }
.server-node-form .server-detection { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid #eee7f7; border-radius: 9px; background: #fcfaff; margin-bottom: 17px; }
.server-node-form .server-detection > div { flex: 1; min-width: 0; }
.server-node-form .server-detection strong { display: flex; align-items: center; gap: 7px; color: #a08bb7; font-size: 11px; font-weight: 550; }
.server-node-form .server-detection .icon { width: 14px; height: 14px; }
.server-node-form .server-detection span { display: block; font-size: 10px; color: #b2a4c2; margin-top: 4px; line-height: 1.8; }
.server-node-form .server-detection .btn { font-size: 10px; min-height: 30px; padding: 5px 9px; }
.server-node-form .server-node-advanced { margin-bottom: 19px; }
.server-node-form .server-node-advanced summary > span { display: flex; gap: 6px; align-items: center; color: #b6a7c6; font-size: 10px; }
.server-node-form .server-node-advanced > .form-field { padding: 0 15px; }
.server-node-form .server-node-listen-note { background: #faf8fd; border: 1px solid #eee7f6; padding: 11px 13px; border-radius: 8px; color: #ac9cbb; font-size: 10px; margin-bottom: 18px; overflow-wrap: anywhere; }
.server-node-export .server-export-credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 13px 15px; border-radius: 10px; border: 1px solid #eee7f7; background: #fcfaff; margin-bottom: 20px; }
.server-node-export .server-export-credentials > div { min-width: 0; }
.server-node-export .server-export-credentials > div > span { display: block; font-size: 10px; color: #b09dbf; margin-bottom: 6px; }
.server-node-export .server-export-credentials strong { display: block; color: #9480a7; font-size: 11px; overflow-wrap: anywhere; font-weight: 500; }
.server-node-export .server-secret { display: flex; align-items: center; gap: 4px; min-width: 0; }
.server-node-export .server-secret input { flex: 1; min-width: 0; width: 0; padding: 0; min-height: 27px; border: 0; background: transparent; color: #9784ab; font-size: 11px; font-family: "SFMono-Regular",Consolas,monospace; box-shadow: none; }
.server-node-export .server-secret .icon-btn { width: 27px; height: 27px; flex-shrink: 0; }
.server-node-export .server-secret .icon { width: 13px; height: 13px; }
.server-node-export .server-subscription { padding: 8px 10px; border: 1px solid #eee7f7; border-radius: 8px; background: #fcfaff; }
.server-node-export .server-export-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.server-node-export .server-reveal { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 400; color: #ab9cba; cursor: pointer; }
.server-node-export .code-block { min-height: 90px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; resize: vertical; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); gap: 23px; }
.settings-layout > .core-card { align-self: start; }
.settings-divider { display: flex; align-items: center; gap: 13px; margin: 25px 0 22px; color: #b0a5c1; font-size: 10px; }
.settings-divider::after { content: ""; height: 1px; background: #f0edf7; flex: 1; }
.candidate-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.candidate-heading .btn { min-height: 27px; font-size: 10px; padding: 3px 9px; }
.candidate-heading .icon { width: 13px; height: 13px; }
.candidate-list { border: 1px solid #ece7f5; border-radius: 9px; padding: 6px; max-height: 206px; overflow-y: auto; background: #fcfbfe; }
.candidate-option { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.form-field .candidate-option { font-size: 11px; font-weight: 450; color: #a395b7; }
.candidate-option:hover { background: #f4effc; }
.candidate-option:has(input:checked) { background: #f1edfb; }
.candidate-option span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advanced-settings { background: #faf9fd; border: 1px solid #eeebf6; border-radius: 9px; margin: 5px 0 20px; }
.advanced-settings summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; color: #a08eB7; font-size: 11px; cursor: pointer; list-style: none; }
.advanced-settings summary::-webkit-details-marker { display: none; }
.advanced-settings summary:focus-visible { outline: 2px solid #c6bcfb; outline-offset: 2px; border-radius: 8px; }
.advanced-settings summary .icon { width: 14px; height: 14px; transition: transform .18s; }
.advanced-settings[open] summary .icon { transform: rotate(180deg); }
.advanced-settings > .form-row { padding: 0 15px; }
.advanced-settings > .caption { padding: 0 15px 15px; color: #a69bb7; font-size: 10px; line-height: 1.9; }
.advanced-settings input { width: 100%; }
.port-settings { margin-top: 20px; }
.port-settings > .form-field { padding: 0 15px; }
.port-settings > .port-conflict-policy { padding-top: 0; margin-top: -5px; }
.port-pool strong { color: #8d7ba6; font-size: 21px; line-height: 39px; font-weight: 600; }
.port-pool small { color: #aca2bc; font-size: 10px; font-weight: 450; }
.port-stat-grid .stat-foot { white-space: normal; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.form-field label { color: #6f738c; font-size: 12px; font-weight: 550; }
.form-field .help { font-size: 10px; color: #a9adbe; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.8; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 23px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.toggle-row strong { display: block; font-size: 12px; font-weight: 550; }
.toggle-row small { display: block; font-size: 10px; color: #a4a9ba; margin-top: 3px; }
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { width: 35px; height: 20px; appearance: none; border: 0; border-radius: 20px; background: #e4e6ef; position: relative; padding: 0; min-height: 0; transition: background .2s; }
.switch input::after { content: ""; background: #fff; width: 14px; height: 14px; border-radius: 50%; position: absolute; left: 3px; top: 3px; transition: transform .2s; box-shadow: 0 1px 3px #0001; }
.switch input:checked { background: #9482e2; }
.switch input:checked::after { transform: translateX(15px); }
.core-icon { width: 61px; height: 61px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #f1effb; color: #a896cc; margin-bottom: 19px; }
.core-icon .icon { width: 27px; height: 27px; }
.core-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.core-title h3 { font-size: 17px; }
.core-card .hint { margin-top: 21px; }
.footer { display: flex; justify-content: space-between; color: #b0b3c3; font-size: 10px; gap: 10px; padding: 25px 1px 0; }
.skeleton { background: linear-gradient(100deg,#f1f1f7 20%,#fafafd 40%,#f1f1f7 60%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: 6px; }
.loading-card { padding: 23px; }
.loading-card .skeleton { height: 18px; margin-bottom: 20px; }
.loading-card .skeleton:last-child { margin-bottom: 0; width: 65%; }
.error-panel { padding: 28px; border: 1px solid #f1e0e7; border-radius: 14px; background: #fff; }
.error-panel h2 { font-size: 16px; color: #ad6c81; }
.error-panel p { color: #a58a97; margin: 9px 0 18px; font-size: 12px; }
.auth-page { min-height: 100vh; background: radial-gradient(ellipse at 60% 0%,#eeebfc 0%,#f7f8fc 65%); display: flex; flex-direction: column; }
.auth-header { display: flex; justify-content: space-between; align-items: center; padding: 27px 6%; }
.auth-header .brand img { width: 36px; height: 36px; }
.auth-header .brand strong { font-size: 16px; }
.auth-header > span { color: #a59db8; font-size: 11px; }
.auth-main { width: min(980px,88%); margin: auto; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 80px; padding: 45px 0 75px; }
.auth-story .eyebrow { color: #a18bbc; }
.auth-story h1 { font-size: 43px; line-height: 1.4; letter-spacing: -1.5px; color: #55476f; }
.auth-story h1 span { color: #9380d4; }
.auth-story > p { color: #a599b5; font-size: 13px; line-height: 2; max-width: 345px; margin-top: 15px; }
.auth-art { width: 100%; max-width: 365px; height: 260px; margin: 5px 0; }
.auth-features { display: flex; gap: 16px; color: #9d8fac; font-size: 10px; align-items: center; flex-wrap: wrap; }
.auth-features span { display: flex; gap: 5px; align-items: center; }
.auth-features .icon { width: 13px; height: 13px; color: #ac98cc; }
.auth-card { background: #ffffffdc; border: 1px solid #fff; border-radius: 20px; padding: 34px; box-shadow: 0 20px 70px -25px #7867aa33; }
.auth-card .eyebrow { color: #b4a8ca; }
.auth-card h2 { font-size: 25px; color: #615371; }
.auth-card > p { font-size: 12px; color: #b0a5bd; margin-top: 7px; margin-bottom: 25px; }
.auth-card .form-field { margin-bottom: 17px; }
.auth-card label { color: #988aa7; font-size: 11px; }
.auth-card input { min-height: 44px; border-color: #eee8f4; }
.auth-submit { width: 100%; min-height: 45px; margin-top: 5px; }
.auth-switch { margin-top: 22px; text-align: center; color: #b3a6be; font-size: 11px; }
.auth-switch button { margin-left: 4px; font-size: 11px; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 42px; }
.password-wrap .icon-btn { position: absolute; right: 5px; top: 5px; }
.auth-error, .form-error { border: 1px solid #f4dfe5; border-radius: 8px; background: #fff6f8; color: #c17f93; padding: 11px 13px; font-size: 12px; line-height: 1.7; margin: 0 0 17px; }
.auth-footer { text-align: center; padding: 20px; font-size: 10px; color: #bcb4c8; }
.modal-backdrop { position: fixed; inset: 0; background: #32304244; backdrop-filter: blur(5px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 25px; animation: fade-in .15s ease; }
.modal { background: #fff; border: 1px solid #f1edf9; width: min(590px,100%); max-height: 90vh; border-radius: 16px; box-shadow: 0 35px 110px #2c254f33; display: flex; flex-direction: column; animation: slide-up .2s ease; }
.modal.wide { width: min(720px,100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px 25px 19px; border-bottom: 1px solid #f0edf6; gap: 15px; }
.modal-header h2 { font-size: 18px; color: #6f5f8a; }
.modal-header p { color: #b0a6bd; font-size: 11px; margin-top: 4px; }
.modal-body { padding: 23px 25px; overflow-y: auto; }
.modal-footer { padding: 16px 25px; border-top: 1px solid #f0edf6; display: flex; justify-content: flex-end; gap: 10px; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 20px; border: 1px dashed #dcd2ee; border-radius: 10px; background: #fbf9ff; text-align: center; cursor: pointer; margin-bottom: 20px; }
.drop-zone:hover { background: #f4effd; }
.drop-zone .icon { color: #ae9aca; width: 23px; height: 23px; }
.drop-zone strong { display: block; color: #9483ae; font-size: 11px; font-weight: 550; margin: 0; }
.drop-zone small { display: block; color: #b8acc8; font-size: 10px; }
.import-result { background: #f7fbf8; border: 1px solid #dceee3; border-radius: 10px; padding: 17px; color: #7eaa91; font-size: 12px; }
.import-errors { max-height: 150px; overflow-y: auto; color: #bd8694; background: #fff7f9; padding: 12px; border-radius: 8px; font-size: 11px; margin-top: 12px; white-space: pre-wrap; word-break: break-word; }
.format-guide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 13px; }
.format-example { border: 1px solid #ede7f5; border-radius: 9px; padding: 12px 13px; background: #fcfaff; overflow: hidden; }
.format-example > span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #a092b3; margin-bottom: 7px; }
.format-example b { font-weight: 550; color: #b6a9cb; font-size: 9px; }
.format-example code { display: block; font-family: "SFMono-Regular",Consolas,monospace; color: #9382a9; font-size: 10px; white-space: nowrap; overflow-x: auto; }
.import-hint { margin-bottom: 18px; }
.import-hint strong { font-family: "SFMono-Regular",Consolas,monospace; font-size: 10px; font-weight: 550; }
.code-block { border: 1px solid #eae5f2; border-radius: 10px; padding: 15px; background: #faf8fe; font-size: 11px; overflow-x: auto; white-space: pre; max-height: 280px; width: 100%; color: #8c7ca5; }
.export-mode-hint { padding: 0 2px; margin-bottom: 12px; color: #a194b4; font-size: 11px; line-height: 1.9; }
.port-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 21px; }
.port-summary-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: #f4f0fc; color: #a08bbc; border: 1px solid #eae3f7; border-radius: 15px; flex-shrink: 0; }
.port-summary-icon .icon { width: 25px; height: 25px; }
.port-summary > div { min-width: 0; }
.port-summary h3 { margin: 9px 0 5px; color: #80728f; font-size: 15px; overflow-wrap: anywhere; }
.port-summary p { color: #b0a6bc; font-size: 10px; line-height: 1.8; }
.port-detail { padding: 0 2px; }
.port-detail .info-line { gap: 16px; }
.port-detail .info-line strong { text-align: right; overflow-wrap: anywhere; }
.port-note { margin: 15px 2px 0; line-height: 1.9; }
.port-pin-choice { display: flex; align-items: flex-start; gap: 11px; padding: 17px; background: #fbf9fe; border: 1px solid #eee8f7; border-radius: 10px; cursor: pointer; }
.port-pin-choice input { margin-top: 3px; }
.port-pin-choice strong { display: block; color: #9380ab; font-size: 12px; font-weight: 550; }
.port-pin-choice small { display: block; margin-top: 5px; color: #afa3bf; font-size: 10px; line-height: 1.8; }
.proxy-option-list { display: grid; gap: 9px; }
.proxy-option { width: 100%; display: flex; align-items: center; gap: 13px; background: #fcfbfe; border: 1px solid #eeeaf7; border-radius: 10px; padding: 15px; color: #9b8aae; text-align: left; transition: background .15s, border-color .15s; }
.proxy-option:hover { background: #f6f2fe; border-color: #dfd6f0; }
.proxy-option:focus-visible { outline: 2px solid #c6bcfb; outline-offset: 2px; }
.proxy-option-icon { width: 33px; height: 33px; background: #f0ebfa; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proxy-option-icon .icon { width: 17px; height: 17px; }
.proxy-option > span:nth-child(2) { flex: 1; min-width: 0; }
.proxy-option strong { display: block; font-size: 12px; font-weight: 550; }
.proxy-option small { display: block; color: #b0a4c0; font-size: 10px; margin-top: 5px; line-height: 1.7; }
.proxy-option > .icon { width: 15px; height: 15px; color: #c0b6cf; }
.proxy-option.danger { color: #bc8798; border-color: #f3e5eb; background: #fffbfc; }
.proxy-option.danger:hover { border-color: #edcfda; background: #fff4f7; }
.proxy-option.danger .proxy-option-icon { background: #fbeef3; }
.proxy-option.danger small { color: #c0a3ad; }
.toast-region { position: fixed; right: 27px; top: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(400px,calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 14px 17px; background: #fff; color: #8d829f; border: 1px solid #eae5f4; border-radius: 10px; box-shadow: 0 10px 35px #55427522; font-size: 12px; animation: slide-up .2s ease; }
.toast .icon { width: 16px; height: 16px; color: #88b7a0; margin-top: 2px; }
.toast.error .icon { color: #cd8d9c; }
.sidebar-overlay { display: none; }
.mobile-only { display: none; }
.no-script { padding: 20px; text-align: center; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .content { padding-top: 40px; } .welcome-card { min-height: 200px; } }
@media (max-width: 1200px) {
  .sidebar { width: 208px; padding-left: 15px; padding-right: 15px; }
  .workspace { margin-left: 208px; }
  .content { padding: 26px; }
  .topbar { padding: 0 26px; }
  .overview-grid { grid-template-columns: minmax(0,1.35fr) minmax(250px,1fr); }
  .stat { padding: 17px; }
  .auth-main { gap: 45px; }
}
@media (max-width: 960px) {
  .sidebar { width: 200px; }
  .workspace { margin-left: 200px; }
  .content { padding: 24px 20px; }
  .topbar { padding: 0 20px; }
  .overview-grid, .settings-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .welcome-art { width: 230px; right: -15px; }
  .welcome-copy { max-width: 73%; }
  .welcome-card h2 { font-size: 23px; }
  .auth-main { width: 88%; gap: 35px; }
  .auth-story h1 { font-size: 34px; }
  .auth-card { padding: 27px; }
  .auth-art { height: 210px; }
  .relay-summary { gap: 22px; }
  .relay-summary-metrics { gap: 18px; }
  .bridge-filters { grid-template-columns: minmax(160px,1fr) minmax(155px,1fr) 110px 28px; gap: 8px; }
  .bridge-table th:nth-child(3) { width: 17%; }
  .bridge-table th:nth-child(4) { width: 113px; }
  .bridge-table th:nth-child(5) { width: 75px; }
  .bridge-table th, .bridge-table td { padding-left: 8px; padding-right: 8px; }
  .bridge-table th:first-child, .bridge-table td:first-child { width: 34px; padding-left: 16px; }
  .bridge-table th:last-child, .bridge-table td:last-child { padding-right: 16px; width: 110px; }
}
@media (max-width: 720px) {
  .table-wrap.mobile-cards.proxy-table tr { padding: 12px 16px; gap: 6px 0; }
  .table-wrap.mobile-cards.proxy-table .endpoint { height: 22px; font-size: 10px; }
  .table-wrap.mobile-cards.proxy-table .endpoint-secondary { margin-top: 2px; }
  .table-wrap.mobile-cards.proxy-table .endpoint .icon-btn { width: 27px; height: 22px; margin: 0; }
  .table-wrap.mobile-cards.proxy-table .proxy-actions .icon-btn { width: 30px; height: 29px; margin: 2px; }
  .sidebar { width: 230px; transform: translateX(-100%); transition: transform .23s ease; padding-top: 23px; }
  .shell.menu-open .sidebar { transform: translateX(0); }
  .shell.menu-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: #32304244; z-index: 24; backdrop-filter: blur(2px); }
  .workspace { margin-left: 0; }
  .topbar { height: 65px; padding: 0 18px; }
  .menu-toggle { display: inline-flex; }
  .breadcrumb { gap: 6px; }
  .breadcrumb > span:first-of-type { display: none; }
  .breadcrumb > .icon { display: none; }
  .mode-pill { display: none; }
  .user-chip > span:not(.avatar) { display: none; }
  .content { padding: 23px 18px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .actions { gap: 6px; }
  .page-heading .btn { min-height: 35px; padding: 7px 10px; font-size: 11px; }
  .page-heading .btn .icon { width: 15px; }
  .welcome-card { padding: 24px; min-height: 190px; }
  .welcome-card h2 { font-size: 23px; }
  .welcome-copy { max-width: 80%; }
  .welcome-card p { max-width: 240px; }
  .welcome-art { right: -45px; top: 8px; width: 210px; opacity: .7; }
  .stat-grid { gap: 11px; margin-bottom: 20px; }
  .stat { padding: 15px; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-icon .icon { width: 16px; height: 16px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 25px; }
  .stat-foot { font-size: 9px; }
  .overview-grid { gap: 18px; }
  .card-header { padding: 17px 18px; }
  .toolbar { padding: 14px 18px; gap: 10px; }
  .search-box { max-width: none; width: 100%; min-width: 180px; }
  .toolbar > .actions { width: 100%; justify-content: space-between; }
  .table-wrap.mobile-cards table, .table-wrap.mobile-cards tbody { display: block; }
  .table-wrap.mobile-cards thead { display: none; }
  .table-wrap.mobile-cards tr { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; padding: 17px 18px; gap: 10px 0; border-bottom: 1px solid var(--line); }
  .table-wrap.mobile-cards tr:last-child { border-bottom: 0; }
  .table-wrap.mobile-cards td { display: block; padding: 0; border: 0; }
  .table-wrap.mobile-cards td.check-cell { padding-top: 8px; grid-column: 1; grid-row: 1; }
  .table-wrap.mobile-cards td.proxy-main { grid-column: 2; grid-row: 1; }
  .table-wrap.mobile-cards td.proxy-upstream { display: none; }
  .table-wrap.mobile-cards td.proxy-status { grid-column: 3; grid-row: 1; padding-top: 4px; text-align: right; }
  .table-wrap.mobile-cards td.proxy-endpoint { grid-column: 2 / 4; grid-row: 2; }
  .table-wrap.mobile-cards td.proxy-actions { grid-column: 2 / 4; grid-row: 3; }
  .table-wrap.mobile-cards td.proxy-owner { grid-column: 2 / 4; grid-row: 4; }
  .proxy-name { min-width: 0; }
  .proxy-title { max-width: 160px; }
  .proxy-status .caption { display: none; }
  .row-actions { justify-content: flex-end; }
  .row-actions .icon-btn { width: 37px; height: 32px; border: 1px solid #efedf5; margin-left: 5px; }
  .relay-summary { flex-direction: column; align-items: stretch; padding: 21px 18px; gap: 19px; }
  .relay-current h2 { font-size: 17px; }
  .relay-summary-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .relay-summary-metrics > div { min-width: 0; }
  .relay-summary-metrics strong { font-size: 17px; }
  .relay-summary-footer { padding: 13px 18px; flex-wrap: wrap; }
  .relay-toolbar { padding: 16px 18px 12px; gap: 12px; }
  .relay-toolbar-note { padding: 0 18px 16px; }
  .relay-mode-control { flex: 1; justify-content: space-between; }
  .relay-toolbar > .actions { width: 100%; }
  .content:has(.bridge-workspace) .page-heading { flex-wrap: wrap; gap: 14px; }
  .content:has(.bridge-workspace) .page-heading .actions { width: 100%; }
  .bridge-filters { padding: 12px 16px; grid-template-columns: minmax(0,1fr) 104px 27px; gap: 8px; }
  .bridge-filters .search-box { width: auto; min-width: 0; grid-column: 1 / 3; grid-row: 1; }
  .bridge-filters > .icon-btn { grid-column: 3; grid-row: 1; width: 27px; }
  #bridge-subscription-filter { grid-column: 1; grid-row: 2; }
  #bridge-status-filter { grid-column: 2 / 4; grid-row: 2; }
  .bridge-selection-tools { gap: 10px; padding: 10px 16px; }
  .bridge-selection-tools .bridge-total { width: 100%; margin: 0; order: 3; }
  .bridge-batch { padding: 9px 16px; }
  .bridge-batch > span { display: none; }
  .bridge-batch .actions { gap: 6px; }
  .bridge-batch .btn { min-height: 31px; padding: 5px 8px; }
  .bridge-table { overflow-x: visible; }
  .bridge-table table, .bridge-table tbody { display: block; }
  .bridge-table thead { display: none; }
  .bridge-table tr { display: grid; grid-template-columns: 24px minmax(0,1fr) 80px; gap: 8px 0; padding: 13px 16px; border-bottom: 1px solid #f0edf7; }
  .bridge-table tr:last-child { border-bottom: 0; }
  .bridge-table td, .bridge-table td:first-child, .bridge-table td:last-child { display: block; border: 0; padding: 0; width: auto; min-width: 0; }
  .bridge-table .node-select { grid-column: 1; grid-row: 1; padding-top: 4px; }
  .bridge-table .node-main { grid-column: 2; grid-row: 1; padding-right: 8px; }
  .node-title-line strong { font-size: 11px; }
  .node-title-line { flex-wrap: wrap; gap: 4px; }
  .node-address { font-size: 9px; }
  .node-address > span { display: none; }
  .bridge-table .node-health { grid-column: 3; grid-row: 1; text-align: right; }
  .node-health .badge { font-size: 8px; }
  .node-check-detail { font-size: 8px; }
  .bridge-table .node-source { grid-column: 2 / 4; grid-row: 2; display: flex; align-items: center; gap: 6px; }
  .node-source::before { content: "来源"; color: #b6a9c4; font-size: 9px; }
  .node-source .source-label { font-size: 9px; }
  .node-source-url { display: none; }
  .bridge-table .node-candidate { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 9px; }
  .node-candidate label { font-size: 9px; gap: 5px; }
  .node-candidate small { margin: 0; font-size: 8px; }
  .bridge-table .node-actions { grid-column: 3; grid-row: 3; }
  .node-actions .row-actions { gap: 2px; }
  .node-actions .icon-btn { width: 26px; height: 29px; border: 0; margin: 0; }
  .node-actions .node-speed { padding: 4px 6px; min-height: 29px; font-size: 9px; gap: 4px; }
  .node-actions .node-speed .icon { width: 11px; }
  .bridge-list .pagination { padding: 12px 16px; gap: 6px; }
  .bridge-list .pagination .actions { gap: 7px; }
  .bridge-list .pagination > span { font-size: 9px; }
  .bridge-list .pagination .btn { padding: 4px 6px; font-size: 9px; }
  .bridge-footnote { font-size: 9px; }
  .subscription-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 7px 10px; padding: 12px 10px; }
  .subscription-symbol { width: 28px; height: 28px; grid-column: 1; grid-row: 1; }
  .subscription-info { grid-column: 2 / 4; grid-row: 1; }
  .subscription-row > .badge { grid-column: 2; grid-row: 2; justify-self: start; font-size: 8px; }
  .subscription-row > .row-actions { grid-column: 3; grid-row: 2; }
  .subscription-row .icon-btn { width: 31px; height: 31px; margin: 0; border-color: #eee7f6; }
  .servers-workspace .page-heading { flex-wrap: wrap; gap: 14px; }
  .servers-workspace .page-heading > .actions { width: 100%; }
  .servers-workspace .server-node-table { overflow-x: visible; }
  .servers-workspace .server-node-table table, .servers-workspace .server-node-table tbody { display: block; }
  .servers-workspace .server-node-table thead { display: none; }
  .servers-workspace .server-node-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
  .servers-workspace .server-node-table tr:last-child { border-bottom: 0; }
  .servers-workspace .server-node-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .servers-workspace .server-node-name { grid-column: 1; grid-row: 1; }
  .servers-workspace .server-node-status { grid-column: 2; grid-row: 1; text-align: right; max-width: 90px; }
  .servers-workspace .server-node-address { grid-column: 1 / 3; grid-row: 2; padding-left: 42px; }
  .servers-workspace .server-node-user { display: none !important; }
  .servers-workspace .server-node-actions { grid-column: 1 / 3; grid-row: 3; }
  .servers-workspace .server-node-actions .row-actions { gap: 5px; }
  .servers-workspace .server-node-actions .icon-btn { margin: 0; width: 32px; }
  .servers-workspace .server-node-actions .btn { font-size: 11px; }
  .server-node-export .server-export-credentials { grid-template-columns: 1fr; gap: 13px; }
  .server-node-form .server-detection { align-items: flex-start; padding: 12px; }
  .server-node-form .server-detection .btn { margin-top: 1px; }
  .modal-footer:has([data-action="copy-server-all"]) { flex-wrap: wrap; gap: 7px; }
  .modal-footer:has([data-action="copy-server-all"]) .btn { font-size: 11px; padding-left: 10px; padding-right: 10px; }
  .steps { padding: 23px 18px; gap: 12px; }
  .step p { font-size: 10px; }
  .step h3 { font-size: 11px; }
  .footer { font-size: 9px; }
  .auth-header { padding: 21px 6%; }
  .auth-header > span { display: none; }
  .auth-main { display: block; width: min(430px,88%); padding: 25px 0 40px; }
  .auth-story { text-align: center; margin-bottom: 28px; }
  .auth-story h1 { font-size: 29px; line-height: 1.5; }
  .auth-story h1 br { display: none; }
  .auth-story > p { margin: 10px auto; font-size: 11px; }
  .auth-art, .auth-features { display: none; }
  .auth-card { border-radius: 16px; padding: 28px; }
  .auth-card h2 { font-size: 23px; }
  .modal-backdrop { padding: 14px; }
  .modal { max-height: calc(100dvh - 28px); }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 14px 20px; }
  .modal-footer:has([data-action="release-proxy-port"]) { flex-wrap: wrap; }
  .modal-footer:has([data-action="release-proxy-port"]) .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
  .toast-region { right: 18px; top: 16px; }
}
@media (max-width: 420px) {
  .format-guide { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .welcome-art { right: -95px; opacity: .5; }
  .welcome-copy { max-width: 100%; }
  .pagination { padding: 13px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.workspace-selection .workspace-page-controls { margin-left: 4px; gap: 9px; color: #a197b0; font-size: 10px; }
.workspace-selection .workspace-page-controls .btn { min-height: 28px; padding: 4px 8px; font-size: 10px; }
.workspace-batch { justify-content: space-between; }
.proxy-table .endpoint .badge { padding: 2px 5px; font-size: 9px; }
.proxy-table .endpoint .mono { overflow: hidden; text-overflow: ellipsis; }
.servers-workspace .server-node-table th:first-child { width: 38px; }
.servers-workspace .server-node-table th:nth-child(2) { width: 23%; }
.servers-workspace .server-node-table th:nth-child(3) { width: 22%; }
.servers-workspace .server-node-table th:nth-child(4) { width: 12%; }
.servers-workspace .server-node-table th:nth-child(5) { width: 16%; }
@media (min-width: 721px) {
  .proxy-table td { padding-top: 8px; padding-bottom: 8px; }
  .proxy-table .endpoint { height: 22px; font-size: 11px; }
  .proxy-table .endpoint-secondary { margin-top: 2px; }
  .proxy-table .endpoint .icon-btn { width: 22px; height: 22px; }
  .proxy-table .row-actions .icon-btn { width: 29px; height: 29px; }
  .proxy-table .proxy-title { max-width: 160px; font-size: 11px; }
  .proxy-table .proxy-status .caption { font-size: 9px; }
  .proxy-table .proxy-owner { max-width: 135px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px) {
  .workspace-selection .workspace-page-controls { width: 100%; margin: 2px 0 0; justify-content: flex-end; order: 4; }
  .workspace-batch { flex-wrap: wrap; gap: 8px; }
  .workspace-batch > span { font-size: 10px; }
  .workspace-batch .actions { flex-wrap: wrap; gap: 6px; }
  .workspace-batch .btn { font-size: 10px; min-height: 30px; padding: 5px 9px; }
  .servers-workspace .server-node-table .server-node-select { grid-column: 1; grid-row: 1; width: 19px; padding-top: 5px; z-index: 1; }
  .servers-workspace .server-node-table .server-node-name { padding-left: 23px; }
  .users-workspace .user-table table { min-width: 630px; }
}
