
:root {
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  color: #202936;
  background: #f5f6f8;
  letter-spacing: 0;
  --blue: #356cff;
  --blue-dark: #2457df;
  --text: #202936;
  --muted: #687380;
  --line: #e1e5eb;
  --soft: #f3f4f7;
  --red: #b42318;
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; background: #f5f6f8; }
body { margin: 0; }
.topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  color: var(--text);
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
}
.brand { min-width: 180px; display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { color: #121923; font-size: 16px; font-weight: 600; }
.brand small { margin-top: 1px; color: #88929e; font-size: 10px; }
.topbar nav { min-height: 50px; display: flex; align-self: stretch; gap: 0; flex: 1; overflow-x: auto; }
.topbar nav a { display: flex; align-items: center; padding: 0 15px; color: #53606d; border-top: 2px solid transparent; text-decoration: none; font-size: 12px; white-space: nowrap; }
.topbar nav a:hover { color: var(--blue); background: #fafbff; }
.topbar nav a.active { color: var(--blue); background: #fff; border-top-color: var(--blue); font-weight: 600; }
.button { min-height: 33px; padding: 0 14px; border: 1px solid transparent; border-radius: 2px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { color: #4b5664; background: #fff; border-color: #d7dce3; }
.button.secondary:hover { color: var(--blue); border-color: #aebde8; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.table-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#account-button { flex: 0 0 auto; }
.icon-button { width: 33px; height: 33px; flex: 0 0 33px; padding: 0; color: #566170; background: #fff; border: 1px solid #d7dce3; border-radius: 2px; font-size: 18px; cursor: pointer; }
.icon-button:hover { color: var(--blue); border-color: #aebde8; }
main { max-width: 1500px; margin: 0 auto; padding: 10px 22px 42px; }
.view { min-height: calc(100vh - 62px); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 15px; padding: 8px 2px 0; }
.page-heading h1 { margin: 3px 0 0; color: #222b36; font-size: 22px; font-weight: 600; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 650; }
.seo-overview { display: flex; align-items: baseline; gap: 18px; margin: -2px 2px 15px; padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.seo-overview h2 { flex: 0 0 auto; margin: 0; color: #354250; font-size: 13px; font-weight: 650; }
.seo-overview p { max-width: 980px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.node-contract-terms { margin: 0 2px 18px; padding: 16px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafc; }
.node-contract-terms header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.node-contract-terms h2 { margin: 0; color: #354250; font-size: 16px; }
.node-contract-terms .eyebrow { margin: 0; }
.node-contract-terms ol { margin: 9px 0 0; padding-left: 21px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.contract-warning { margin: 0; color: #9a3412; font-size: 13px; font-weight: 700; line-height: 1.7; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.filters { display: flex; align-items: center; gap: 8px; }
select, input { min-height: 33px; padding: 6px 10px; color: #27313d; background: #fff; border: 1px solid #b8c2cc; border-radius: 2px; font: inherit; font-size: 12px; outline: none; }
select:focus, input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(53,108,255,.12); }
.filters select { min-width: 108px; }
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.node-card { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.node-card:hover { border-color: #b9c8f4; box-shadow: 0 4px 12px rgba(40,62,100,.06); }
.node-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.node-card h2 { margin: 0; color: #25303b; font-size: 15px; font-weight: 600; }
.node-card .route { margin-top: 4px; color: #8a949f; font-size: 11px; }
.node-id-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #607087; font-size: 11px; }
.node-id-line code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-link { padding: 0; color: var(--blue-dark); background: transparent; border: 0; font: inherit; font-size: 11px; cursor: pointer; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.tag, .status { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 7px; color: #53606d; background: #f1f3f6; border-radius: 2px; font-size: 11px; }
.tag.udp, .status.good { color: #18794e; background: #e9f7ef; }
.status.pending { color: #9a6500; background: #fff6dd; }
.status.bad { color: #a9362b; background: #feeceb; }
.node-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.node-stats span, .metric-row span { display: block; color: var(--muted); font-size: 11px; }
.node-stats strong { display: block; margin-top: 4px; color: #263342; font-size: 14px; font-weight: 600; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.price { color: #263342; }
.price strong { font-size: 19px; font-weight: 650; }
.price small { color: var(--muted); font-size: 11px; }
.license-store-shell { min-width: 0; color: #293542; background: #fff; border: 1px solid var(--line); }
.license-store-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 22px; border-bottom: 1px solid #e1e6ec; }
.license-store-heading > div { display: flex; align-items: baseline; gap: 10px; }
.license-store-heading span { color: #697684; font-size: 12px; }
.license-store-heading strong { color: var(--blue-dark); font-size: 24px; font-weight: 700; }
.license-store-heading .button { min-width: 92px; height: 36px; }
.license-store-section { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 18px; padding: 22px 28px; border-bottom: 1px solid #e5e9ee; }
.license-store-section > h2 { margin: 0; padding-top: 8px; color: #354250; font-size: 13px; font-weight: 650; }
.license-store-products { display: flex; flex-wrap: wrap; gap: 10px; }
.license-plan-tab { min-width: 96px; min-height: 38px; padding: 0 16px; border: 1px solid #cbd3dc; border-radius: 3px; color: #43515f; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.license-plan-tab:hover { color: var(--blue-dark); border-color: #8fa8ee; }
.license-plan-tab.active { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.license-spec-list, .license-definition-list { margin: 0; }
.license-spec-list { display: grid; grid-template-columns: repeat(4,minmax(110px,1fr)); border: 1px solid #dce2e8; }
.license-spec-list > div { min-width: 0; padding: 13px 14px; border-right: 1px solid #e3e8ed; border-bottom: 1px solid #e3e8ed; }
.license-spec-list > div:nth-child(4n) { border-right: 0; }
.license-spec-list > div:nth-last-child(-n+4) { border-bottom: 0; }
.license-spec-list dt { color: #7a8793; font-size: 11px; }
.license-spec-list dd { margin: 7px 0 0; color: var(--blue-dark); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.license-definition-list { display: grid; gap: 8px; padding: 2px 0; }
.license-definition-list > div { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 10px; }
.license-definition-list dt { color: #536271; font-size: 12px; font-weight: 650; }
.license-definition-list dd { margin: 0; color: #84909b; font-size: 12px; line-height: 1.55; }
.license-store-terms { display: flex; flex-wrap: wrap; }
.license-term-button { min-width: 94px; min-height: 38px; padding: 0 15px; border: 1px solid var(--blue); color: #fff; background: var(--blue); font: inherit; font-size: 13px; opacity: 1 !important; }
.license-checkout-bar { display: flex; align-items: center; justify-content: flex-start; gap: 26px; padding: 22px 28px 26px 154px; }
.license-total { min-width: 230px; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 16px; }
.license-total > span { color: #354250; font-size: 13px; }
.license-total > strong { color: var(--blue-dark); font-size: 26px; font-weight: 500; }
.license-total > small { grid-column: 2; min-height: 18px; margin-top: 3px; color: #71808e; font-size: 11px; }
.license-total > small.insufficient { color: #b42318; }
.license-checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.license-checkout-actions .button { min-width: 120px; min-height: 42px; padding: 0 22px; }
.authorization-toolbar { display: grid; grid-template-columns: 130px minmax(260px, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.authorization-toolbar input, .authorization-toolbar select { width: 100%; }
.authorization-table { min-width: 1190px; }
.authorization-table td, .authorization-table th { white-space: nowrap; }
.authorization-table td:nth-child(2), .authorization-table td:nth-child(4) { white-space: normal; }
.quota { color: #344250; font-weight: 600; }
.quota small { color: var(--muted); font-weight: 400; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; margin-bottom: 15px; color: #42506a; background: #eef3ff; border: 1px solid #b9c8f4; font-size: 12px; line-height: 1.6; }
.notice strong { color: #2d4f9c; white-space: nowrap; }
.notice span { color: #57657a; }
.table-section { margin-top: 22px; }
.table-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.table-section h2 { margin: 0; color: #29333f; font-size: 15px; font-weight: 600; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid #e5eaee; font-size: 12px; }
th { color: #556270; background: var(--soft); font-size: 11px; font-weight: 600; }
tbody tr:hover { background: #f9fbff; }
.fund-filters { display: flex; align-items: center; gap: 8px; }
.fund-filters select { min-width: 128px; }
.fund-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 15px; border: 1px solid var(--line); background: #fff; }
.fund-summary article { min-height: 78px; padding: 16px 18px; border-right: 1px solid var(--line); }
.fund-summary article:last-child { border-right: 0; }
.fund-summary span { display: block; color: var(--muted); font-size: 11px; }
.fund-summary strong { display: block; margin-top: 7px; color: #202c3b; font-size: 20px; font-weight: 600; }
.fund-table { min-width: 980px; }
.fund-table code { color: #5b6878; font-family: Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.fund-table .amount-column { text-align: right; }
.fund-amount { display: block; text-align: right; white-space: nowrap; font-size: 13px; font-weight: 700; }
.fund-amount.income { color: #18794e; }
.fund-amount.expense { color: #b33a2f; }
.fund-note { max-width: 300px; color: #43515f; line-height: 1.55; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.metric-row article { min-height: 84px; padding: 17px 18px; border-right: 1px solid var(--line); }
.metric-row article:last-child { border-right: 0; }
.metric-row strong { display: block; margin-top: 7px; color: #202c3b; font-size: 21px; font-weight: 600; }
.earnings-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(360px,.8fr); gap: 18px; align-items: start; }
.contract-section { min-width: 0; margin-top: 22px; }
.contract-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.contract-section h2 { margin: 0; color: #29333f; font-size: 15px; font-weight: 600; }
.contract-section header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.section-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.contract-list { display: grid; gap: 8px; }
.contract-item { display: grid; grid-template-columns: minmax(150px,1.25fr) minmax(90px,.65fr) minmax(110px,.75fr) minmax(110px,.75fr) minmax(120px,.8fr) auto; gap: 14px; align-items: center; min-height: 78px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid #9aa8b8; border-radius: 3px; }
.contract-item.active { border-left-color: var(--blue); }
.contract-item dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.contract-item dd { margin: 0; color: #273444; font-size: 12px; overflow-wrap: anywhere; }
.contract-item .contract-node dd { font-weight: 650; }
.contract-item .contract-amount dd { color: var(--blue-dark); font-size: 16px; font-weight: 650; }
.upload-notice-text { max-height: 42vh; overflow-y: auto; padding: 15px; color: #3d4b5d; background: #f5f7fa; border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.8; }
.upload-notice-check { margin-top: 16px; }
.identity-panel { padding: 20px; background: #fff; border: 1px solid var(--line); }
.profile-section-title { margin: 0 0 11px; color: #29333f; font-size: 15px; font-weight: 600; }
.identity-section-title { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.password-change-form .identity-form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.identity-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); }
.identity-summary div { min-width: 0; padding: 15px; border-right: 1px solid var(--line); }
.identity-summary div:last-child { border-right: 0; }
.identity-summary dt { color: #71808b; font-size: 11px; }
.identity-summary dd { margin: 6px 0 0; color: #263342; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.identity-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.identity-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.identity-form-grid label { margin: 0; }
.identity-form-grid input:not([type="checkbox"]) { width: 100%; }
.identity-form-grid .wide { grid-column: 1 / -1; }
.identity-latest { margin: 14px 0 0; padding: 10px 0; color: #5d6b76; border-bottom: 1px solid var(--line); font-size: 12px; }
.identity-resume-button { margin-top: 14px; }
.identity-qr-dialog { width: min(420px, calc(100vw - 32px)); }
.identity-qr-content { display: grid; justify-items: center; gap: 14px; padding: 0 23px 23px; text-align: center; }
.identity-qr-content img { width: 256px; height: 256px; max-width: 100%; aspect-ratio: 1; border: 1px solid var(--line); }
.identity-qr-content p { min-height: 18px; margin: 0; color: #5d6974; font-size: 12px; }
.identity-qr-content .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.empty { padding: 46px 20px; margin: 0; color: #7a8794; text-align: center; background: #fff; border: 1px solid var(--line); }
dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; background: #fff; border: 1px solid #d5dbe3; border-radius: 3px; box-shadow: 0 24px 70px rgba(23,32,42,.32); }
dialog::backdrop { background: rgba(23,32,42,.68); }
dialog form, dialog > header, dialog > p, dialog > .secret-row { margin: 0; padding-right: 23px; padding-left: 23px; }
dialog form { padding-bottom: 22px; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 17px; padding-bottom: 14px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
dialog h2 { margin: 0; color: #27313d; font-size: 17px; font-weight: 600; }
.close { width: 30px; height: 30px; padding: 0; color: #7a8490; background: transparent; border: 0; font-size: 24px; line-height: 1; cursor: pointer; }
.close:hover { color: var(--blue); }
label { display: grid; gap: 6px; margin: 11px 0; color: #4c5865; font-size: 12px; font-weight: 600; }
.inline { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { min-height: auto; width: 16px; height: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.form-error { min-height: 18px; margin: 8px 0 0; color: var(--red); font-size: 12px; }
.form-status { min-height: 18px; margin: 8px 0 0; color: #2d4f9c; font-size: 12px; }
.auth-dialog { width: min(440px, calc(100vw - 28px)); overflow: auto; border-top: 3px solid var(--blue); }
.auth-dialog .auth-panel { position: relative; width: 100%; padding: 28px 30px 25px; background: #fff; }
.auth-dialog .auth-close { position: absolute; top: 13px; right: 16px; }
.auth-dialog .auth-section-label { margin: 0 0 8px; padding: 0; color: var(--blue-dark); font-size: 12px; font-weight: 500; }
.auth-dialog h2 { color: #17202a; font-size: 25px; font-weight: 700; line-height: 1.35; }
.auth-dialog .auth-caption { margin: 8px 0 23px; padding: 0; color: #7a8794; font-size: 12px; line-height: 1.6; }
.auth-fields { min-width: 0; }
.auth-dialog .auth-fields label { display: block; margin: 14px 0 6px; color: #43515f; font-size: 12px; font-weight: 400; }
.auth-dialog .auth-fields label:first-child { margin-top: 0; }
.auth-dialog .auth-fields input { width: 100%; height: 46px; min-width: 0; padding: 0 12px; color: #25313e; background: #fff; border: 1px solid #cbd4df; border-radius: 3px; font-size: 13px; }
.auth-dialog .auth-fields input::placeholder { color: #a0aab5; }
.auth-dialog .auth-fields input:focus { border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(36,87,223,.12); }
.code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.auth-dialog .code-row .secondary { height: 46px; min-height: 46px; color: var(--blue-dark); background: #f5f8ff; border-color: #aebeea; border-radius: 3px; white-space: nowrap; }
.auth-dialog .code-row .secondary:hover { color: #1744bb; background: #e9efff; }
.auth-dialog .form-error { min-height: 0; margin: 12px 0 0; padding: 9px 11px; color: #a4342a; background: #fff4f2; border-left: 3px solid #d65245; font-size: 12px; }
.auth-dialog .form-error:empty { display: none; }
.auth-dialog .auth-submit { width: 100%; height: 46px; min-height: 46px; margin-top: 18px; border-radius: 3px; font-size: 13px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.auth-links button { padding: 0; color: var(--blue-dark); background: transparent; border: 0; font: inherit; font-size: 12px; cursor: pointer; }
.auth-links button:hover { color: #1744bb; text-decoration: underline; }
.auth-links-single { justify-content: flex-start; }
.selection, .fee-preview { padding: 11px !important; color: #43536a; background: #f3f6fb; border: 1px solid #d9e2f5; border-radius: 2px; }
.secret-row { display: flex; gap: 9px; padding-bottom: 22px !important; }
.secret-row code { flex: 1; min-width: 0; padding: 10px; color: #27313d; background: #f3f4f7; overflow-wrap: anywhere; font-family: Consolas, monospace; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; padding: 11px 15px; color: #fff; background: #27313d; border-radius: 2px; box-shadow: 0 8px 28px rgba(0,0,0,.18); font-size: 12px; }
.toast.error { background: #a9362b; }
.list-pager { display:flex; justify-content:center; align-items:center; gap:6px; margin:20px 0 4px; }
.list-pager button { min-width:34px; height:34px; border:1px solid #d7dce3; background:#fff; color:var(--text); border-radius:5px; cursor:pointer; }
.list-pager button.active { border-color:var(--blue); background:var(--blue); color:#fff; }
.list-pager button:disabled { opacity:.45; cursor:not-allowed; }
.upgrade-pricing { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; }
.upgrade-pricing div { padding:12px; background:#f5f7fa; border:1px solid #e1e5eb; border-radius:6px; }
.upgrade-pricing dt { color:var(--muted); font-size:12px; }
.upgrade-pricing dd { margin:5px 0 0; font-weight:700; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 9px 14px; }
  .brand { min-width: 0; flex: 1; }
  .topbar nav { order: 3; width: 100%; min-height: 38px; }
  .topbar nav a { min-height: 38px; padding: 0 12px; }
  main { padding: 10px 14px 36px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .seo-overview { display: block; }
  .seo-overview h2 { margin-bottom: 5px; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .filters { width: 100%; flex-wrap: wrap; }
  .filters select { flex: 1; }
  .fund-filters { width: 100%; }
  .fund-filters select { flex: 1; min-width: 0; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric-row article:nth-child(2n) { border-right: 0; }
  .metric-row article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .earnings-layout { grid-template-columns: 1fr; }
  .contract-item { grid-template-columns: 1fr 1fr; }
  .authorization-toolbar { grid-template-columns: 130px 1fr auto; }
  .identity-summary { grid-template-columns: 1fr 1fr; }
  .password-change-form .identity-form-grid { grid-template-columns: 1fr 1fr; }
  .identity-summary div:nth-child(2) { border-right: 0; }
  .identity-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .notice { display: block; }
  .notice span { display: block; margin-top: 5px; }
  .license-spec-list { grid-template-columns: repeat(2,minmax(110px,1fr)); }
  .license-spec-list > div { border-bottom: 1px solid #e3e8ed; }
  .license-spec-list > div:nth-child(4n) { border-right: 1px solid #e3e8ed; }
  .license-spec-list > div:nth-child(2n) { border-right: 0; }
  .license-spec-list > div:nth-last-child(-n+4) { border-bottom: 1px solid #e3e8ed; }
  .license-spec-list > div:nth-last-child(-n+2) { border-bottom: 0; }
  .license-checkout-bar { padding-left: 28px; }
}
@media (max-width: 520px) {
  .brand small { display: none; }
  .node-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .fund-summary { grid-template-columns: 1fr; }
  .fund-summary article { border-right: 0; border-bottom: 1px solid var(--line); }
  .fund-summary article:last-child { border-bottom: 0; }
  .metric-row article, .metric-row article:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-row article:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .card-footer { align-items: flex-start; flex-direction: column; }
  .card-footer .button { width: 100%; }
  .page-actions .button { flex: 1 1 auto; }
  .authorization-toolbar { grid-template-columns: 1fr; }
  .identity-panel { padding: 14px; }
  .identity-summary { grid-template-columns: 1fr; }
  .identity-summary div, .identity-summary div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-summary div:last-child { border-bottom: 0; }
  .identity-form-grid { grid-template-columns: 1fr; }
  .password-change-form .identity-form-grid { grid-template-columns: 1fr; }
  .identity-form-grid .wide { grid-column: auto; }
  .identity-qr-content img { width: min(256px, 72vw); height: auto; }
  .auth-dialog .auth-panel { padding: 25px 22px 22px; }
  .auth-dialog h2 { font-size: 23px; }
  .code-row { grid-template-columns: 1fr; }
  .auth-dialog .code-row .secondary { width: 100%; }
  .license-store-heading { align-items: flex-start; flex-direction: column; }
  .license-store-heading .button { width: 100%; }
  .license-store-section { grid-template-columns: 1fr; gap: 10px; padding: 18px 14px; }
  .license-store-section > h2 { padding-top: 0; }
  .license-plan-tab { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .license-definition-list > div { grid-template-columns: 68px minmax(0,1fr); }
  .license-checkout-bar { align-items: stretch; flex-direction: column; padding: 18px 14px; }
  .license-total { min-width: 0; }
  .license-checkout-actions { display: grid; grid-template-columns: 1fr; }
  .license-checkout-actions .button { width: 100%; }
  .contract-item { grid-template-columns: 1fr; gap: 9px; }
}
