:root {
  color-scheme: light;
  --tm-ink: #14263a;
  --tm-muted: #68778a;
  --tm-navy: #122338;
  --tm-navy-soft: #1c3149;
  --tm-paper: #f2f0e9;
  --tm-white: #fbfaf6;
  --tm-line: #d7d8d3;
  --tm-coral: #f15b3a;
  --tm-coral-dark: #d8482b;
  --tm-blue: #4668a8;
  --tm-lime: #d3e477;
  --n-primary-color: #f15b3a !important;
  --n-primary-color-hover: #ff6c49 !important;
  --n-primary-color-pressed: #d8482b !important;
  --n-primary-color-suppl: #f8e2da !important;
  --n-success-color: #4d866f !important;
  --n-border-radius: 6px !important;
  --n-border-radius-small: 4px !important;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--tm-ink);
  background: var(--tm-paper);
  font-family: Inter, "SF Pro Display", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(241, 91, 58, .14);
}
::selection { color: #fff; background: var(--tm-coral); }
#tm-login-panel { display: none; }
#app { min-height: 100vh; color: var(--tm-ink); }
#app .n-config-provider { min-height: 100vh; color: var(--tm-ink); }
#app .n-layout,
#app .n-layout-scroll-container,
#app .n-layout-content { background: transparent !important; }
#app .n-layout-content {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 44px) clamp(18px, 3.2vw, 52px) !important;
  overflow: visible !important;
}

/* Signal Atlas: a route drawing, not a pair of decorative cards. */
body[data-tm-auth="true"] {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, .82fr);
  min-height: 100svh;
  padding: 0 24px;
  overflow-x: hidden;
  background: var(--tm-paper);
}
body[data-tm-auth="true"] #tm-login-panel {
  position: relative;
  isolation: isolate;
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(26px, 3.1vw, 48px) clamp(24px, 4vw, 62px);
  overflow: hidden;
  color: var(--tm-ink);
  background:
    linear-gradient(rgba(20, 38, 58, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 38, 58, .025) 1px, transparent 1px),
    var(--tm-paper);
  background-size: 48px 48px;
  border: 0 !important;
  border-right: 1px solid #cfd2cf !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.tm-login-panel__top,
.tm-login-panel__foot,
.tm-wordmark { display: flex; align-items: center; }
.tm-login-panel__top { position: relative; z-index: 3; gap: 12px; }
.tm-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  background: var(--tm-navy);
  border: 1px solid var(--tm-navy);
  border-radius: 50%;
}
.tm-mark img { display: block; width: 100%; height: 100%; }
.tm-wordmark {
  gap: 1px;
  color: var(--tm-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.tm-wordmark span { color: var(--tm-coral); }
.tm-wordmark__note {
  margin-left: auto;
  color: var(--tm-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.tm-wordmark__note i { padding-inline: 6px; color: var(--tm-coral); font-style: normal; }

.tm-atlas-map {
  position: absolute;
  z-index: 0;
  top: 15%;
  right: -4%;
  left: -5%;
  height: 56%;
  opacity: .96;
  pointer-events: none;
}
.tm-atlas-map svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-atlas-contours path {
  fill: none;
  stroke: #9caab8;
  stroke-width: .8;
  stroke-dasharray: 2 7;
  opacity: .43;
}
.tm-route-secondary {
  fill: none;
  stroke: var(--tm-blue);
  stroke-width: 1.7;
  stroke-dasharray: 5 7;
  opacity: .62;
}
.tm-route-main {
  fill: none;
  stroke: var(--tm-coral);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tm-atlas-nodes circle {
  fill: var(--tm-paper);
  stroke: var(--tm-blue);
  stroke-width: 2.6;
}
.tm-atlas-nodes circle:nth-child(3n + 1) {
  fill: var(--tm-lime);
  stroke: var(--tm-navy);
  stroke-width: 1.6;
}
.tm-atlas-nodes circle:nth-child(3n + 2) {
  fill: var(--tm-coral);
  stroke: var(--tm-paper);
  stroke-width: 2;
}
.tm-atlas-crosses path {
  fill: none;
  stroke: var(--tm-navy);
  stroke-width: 1;
  opacity: .5;
}
.tm-map-index {
  position: absolute;
  color: var(--tm-muted);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .17em;
}
.tm-map-index--one { top: 17%; left: 12%; }
.tm-map-index--two { right: 11%; bottom: 16%; }
.tm-map-scale {
  position: absolute;
  top: 51%;
  right: 15%;
  color: var(--tm-navy);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .58;
}
.tm-map-scale i { padding-inline: 5px; color: var(--tm-coral); font-style: normal; }

.tm-login-panel__copy {
  position: absolute;
  z-index: 2;
  bottom: 24%;
  left: clamp(24px, 4vw, 62px);
  max-width: 530px;
}
.tm-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--tm-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .14em;
}
.tm-eyebrow span { width: 7px; height: 7px; background: var(--tm-coral); border-radius: 50%; }
.tm-eyebrow i { color: var(--tm-blue); font-style: normal; }
.tm-login-panel__copy h1 {
  margin: 0;
  color: var(--tm-navy);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.tm-login-panel__copy h1 em { color: var(--tm-coral); font-style: normal; }
.tm-login-panel__intro {
  max-width: 380px;
  margin: 15px 0 0;
  color: #56677a;
  font-size: 14px;
  line-height: 1.8;
}
.tm-region-grid {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 62px);
  bottom: 9.4%;
  left: clamp(24px, 4vw, 62px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #aeb7bd;
}
.tm-region-grid span {
  min-width: 0;
  padding: 11px 6px 8px 0;
  color: var(--tm-muted);
  font-size: 11px;
  border-bottom: 1px solid #d4d6d2;
}
.tm-region-grid b {
  display: inline-block;
  min-width: 24px;
  margin-right: 3px;
  color: var(--tm-navy);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
}
.tm-region-grid span:nth-child(3n + 1) b { color: var(--tm-coral); }
.tm-login-panel__foot {
  position: absolute;
  right: clamp(24px, 4vw, 62px);
  bottom: 3%;
  left: clamp(24px, 4vw, 62px);
  justify-content: space-between;
  gap: 16px;
  color: #83909c;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .1em;
}
.tm-login-panel__foot i { padding-inline: 4px; color: var(--tm-coral); font-style: normal; }

body[data-tm-auth="true"] #app {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(28px, 5vw, 78px) clamp(20px, 4.4vw, 68px);
  background: var(--tm-paper);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body[data-tm-auth="true"] #app > * { width: 100%; }
body[data-tm-auth="true"] #app .n-config-provider {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}
body[data-tm-auth="true"] #app .n-config-provider > .wh-full {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}
body[data-tm-auth="true"] #app .n-card {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body[data-tm-auth="true"] #app .n-card__content,
body[data-tm-auth="true"] #app .p-6 {
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
}
body[data-tm-auth="true"] #app .n-card h1 {
  margin: 0;
  color: var(--tm-navy);
  font-size: clamp(30px, 2.8vw, 38px) !important;
  font-weight: 720 !important;
  letter-spacing: -.055em;
  line-height: 1.2;
  text-align: left !important;
  text-wrap: balance;
}
body[data-tm-auth="true"] #app .n-card h5 {
  margin: 11px 0 30px;
  color: var(--tm-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.7;
  text-align: left !important;
}
body[data-tm-auth="true"] #app .mt-5.w-full { margin-top: 16px !important; }
body[data-tm-auth="true"] #app .n-input-group,
body[data-tm-auth="true"] #app .n-input {
  height: 50px !important;
  min-height: 50px !important;
  --n-height: 50px !important;
  --n-border-radius: 5px !important;
}
body[data-tm-auth="true"] #app .n-input .n-input-wrapper { height: 50px !important; min-height: 50px !important; padding-inline: 15px; }
body[data-tm-auth="true"] #app .n-input .n-input__input { height: 100%; }
body[data-tm-auth="true"] #app .n-input .n-input__input-el { height: 100%; }
body[data-tm-auth="true"] #app .n-input .n-input__input-el { color: var(--tm-ink); }
body[data-tm-auth="true"] #app .n-input .n-input__placeholder { color: #8b97a4; }
body[data-tm-auth="true"] #app .n-input .n-input__border,
body[data-tm-auth="true"] #app .n-input .n-input__state-border { border-radius: 5px !important; }
body[data-tm-auth="true"] #app .n-input { --n-border: 1px solid #c6cbd0; --n-border-hover: 1px solid var(--tm-blue); --n-border-focus: 1px solid var(--tm-blue); --n-box-shadow-focus: 0 0 0 2px rgba(70, 104, 168, .14); }
body[data-tm-auth="true"] #app .n-input {
  --n-caret-color: var(--tm-blue) !important;
  --n-border-hover: 1px solid var(--tm-blue) !important;
  --n-border-focus: 1px solid var(--tm-blue) !important;
  --n-box-shadow-focus: 0 0 0 2px rgba(70, 104, 168, .14) !important;
}
body[data-tm-auth="true"] #app .n-button { min-height: 52px; border-radius: 5px !important; font-weight: 700; }
body[data-tm-auth="true"] #app .n-button--primary-type {
  color: #fff !important;
  background: var(--tm-coral) !important;
  border-color: var(--tm-coral) !important;
  box-shadow: none !important;
}
body[data-tm-auth="true"] #app .n-button--primary-type:hover {
  background: var(--tm-coral-dark) !important;
  border-color: var(--tm-coral-dark) !important;
  transform: translateY(-1px);
}
body[data-tm-auth="true"] #app .text-center { text-align: left !important; }
body[data-tm-auth="true"] #app .n-card a,
body[data-tm-auth="true"] #app a { color: var(--tm-blue); text-underline-offset: 3px; }
body[data-tm-auth="true"] #app .n-card a:hover,
body[data-tm-auth="true"] #app a:hover { color: var(--tm-coral-dark); }
body[data-tm-auth="true"] #app .n-dropdown-trigger,
body[data-tm-auth="true"] #app .n-button:not(.n-button--primary-type) { border-radius: 5px !important; }
body[data-tm-auth="true"] #app button:focus-visible,
body[data-tm-auth="true"] #app a:focus-visible,
body[data-tm-auth="true"] #app [role="button"]:focus-visible {
  outline: 2px solid var(--tm-blue);
  outline-offset: 3px;
}
body[data-tm-auth="true"] #app .n-input__eye[role="button"] { cursor: pointer; }
body[data-tm-auth="true"] #app a,
body[data-tm-auth="true"] #app button { touch-action: manipulation; }
body[data-tm-auth="true"] #app input:-webkit-autofill,
body[data-tm-auth="true"] #app input:-webkit-autofill:hover,
body[data-tm-auth="true"] #app input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tm-ink) !important;
  box-shadow: 0 0 0 1000px #fbfaf6 inset !important;
}

/* Customer portal: ink navigation, paper workspace, atlas-red actions. */
#app .n-layout-header {
  color: var(--tm-ink);
  background: rgba(251, 250, 246, .96) !important;
  border-bottom: 1px solid var(--tm-line);
  border-top: 3px solid var(--tm-coral) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}
#app .n-layout-sider {
  color: #f2f0e9;
  background: var(--tm-navy) !important;
  border-right: 0;
}
#app .n-layout-sider .n-layout-sider-scroll-container { background: var(--tm-navy) !important; }
#app .n-layout-sider .n-menu { background: transparent !important; }
#app .n-layout-sider .n-menu-item-content { border-radius: 3px !important; }
#app .n-layout-sider .n-menu-item-content-header,
#app .n-layout-sider .n-menu-item-content .n-icon { color: #d0d7df !important; }
#app .n-layout-sider .n-menu-item-content--selected::before {
  inset: 3px 7px 3px 0 !important;
  background: rgba(241, 91, 58, .15) !important;
  border-left: 3px solid var(--tm-coral);
  border-radius: 0 4px 4px 0 !important;
}
#app .n-layout-sider .n-menu-item-content--selected .n-menu-item-content-header,
#app .n-layout-sider .n-menu-item-content--selected .n-icon {
  color: #fff !important;
  font-weight: 700;
}
#app .n-layout-sider .n-menu-item-content:hover::before { background: rgba(255, 255, 255, .07) !important; }
#app .n-layout-sider .n-menu-item-content--selected:hover::before { background: rgba(241, 91, 58, .2) !important; }
#app .n-layout-sider .n-menu-item-content-header { font-size: 13px; }
#app .n-card {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  color: var(--tm-ink);
  background: var(--tm-white) !important;
  border: 1px solid var(--tm-line) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}
#app .n-card__content { height: auto !important; max-height: none !important; overflow: visible !important; }
#app .n-card-header {
  color: var(--tm-navy);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -.025em;
}
#app .n-card-header__main { min-height: 24px; }
#app .n-button {
  min-height: 40px;
  border-radius: 5px !important;
  font-weight: 650;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
#app .n-button--primary-type {
  color: #fff !important;
  background: var(--tm-coral) !important;
  border-color: var(--tm-coral) !important;
  box-shadow: none !important;
}
#app .n-button--primary-type:hover {
  background: var(--tm-coral-dark) !important;
  border-color: var(--tm-coral-dark) !important;
  transform: translateY(-1px);
}
#app .n-button:not(.n-button--primary-type) { border-radius: 5px !important; }
#app .n-input { --n-border-radius: 5px !important; }
#app .n-input .n-input-wrapper { border-radius: 5px !important; }
#app .n-tag { border-radius: 3px !important; font-weight: 650; }
#app .n-alert { border-radius: 5px !important; }
#app .n-data-table { border-radius: 0; overflow: visible !important; }
#app .n-data-table-wrapper { max-width: 100%; overflow-x: auto; }
#app .n-data-table-th {
  color: #506176 !important;
  background: #e9e8e1 !important;
  border-bottom: 1px solid #c7ccd0 !important;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .035em;
}
#app .n-data-table-td { border-bottom-color: #e1e0d9 !important; }
#app .n-tabs-nav { border-bottom-color: #cfd2cf !important; }
#app .n-tabs-tab--active { color: var(--tm-coral-dark) !important; font-weight: 750; }
#app .n-tabs-bar { background-color: var(--tm-coral) !important; }
#app .n-progress-graph-line-fill { stroke: var(--tm-coral) !important; }
#app .n-empty { padding: 28px 18px; }
#app .n-empty__icon { color: #8292a1 !important; }
#app .n-empty__description { color: var(--tm-muted) !important; }
#app a { color: var(--tm-blue); text-underline-offset: 3px; }
#app a:hover { color: var(--tm-coral-dark); }
#app button:focus-visible,
#app a:focus-visible,
#app [role="button"]:focus-visible {
  outline: 2px solid var(--tm-blue);
  outline-offset: 3px;
}
#app button,
#app a { touch-action: manipulation; }
#app .n-scrollbar-rail__scrollbar { background: rgba(20, 38, 58, .3) !important; }

/* Make Xboard's built-in screens read as one designed product, not stock admin panels. */
#app .n-layout-content { color: var(--tm-ink); }
#app .n-card {
  background: var(--tm-white) !important;
  border-color: #d8d8d0 !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 24px rgba(20, 38, 58, .035) !important;
}
#app .n-card-header {
  padding-block: 18px 14px;
  font-size: 17px;
}
#app .n-form-item-label__text,
#app .n-form-item-label { color: #43536a !important; font-weight: 620; }
#app .n-input,
#app .n-base-selection,
#app .n-input-number { --n-border-radius: 6px !important; }
#app .n-input .n-input-wrapper,
#app .n-base-selection .n-base-selection-label { border-radius: 6px !important; }
#app .n-input:focus-within,
#app .n-base-selection:focus-within { box-shadow: 0 0 0 3px rgba(70, 104, 168, .1); }
#app .n-tabs-nav { margin-bottom: 8px; }
#app .n-tabs-tab { padding-inline: 14px; font-weight: 600; }
#app .n-list { background: transparent !important; }
#app .n-list-item { border-bottom-color: #e7e5df !important; }
#app .n-list-item:last-child { border-bottom: 0 !important; }
#app .n-alert { border: 1px solid #e2dfd6; }
#app .n-tag { padding-inline: 8px; }
#app .n-pagination .n-pagination-item { border-radius: 5px; }
#app .n-data-table-th { height: 42px; }
#app .n-data-table-td { min-height: 46px; }
#app .n-empty { color: var(--tm-muted); }
#app .n-button:not(.n-button--primary-type):hover {
  color: var(--tm-navy) !important;
  background: #eeece5 !important;
  border-color: #c9c9bf !important;
}
#app .n-layout-header .n-button,
#app .n-layout-header .n-dropdown-trigger .n-button { min-height: 36px; }
#app .n-layout-sider .n-menu-item-content { min-height: 42px; }

/* The dashboard grid is attached to the real Xboard content nodes at runtime. */
#app .n-layout-content .tm-subscription-panel .n-card__content,
#app .n-layout-content .tm-shortcuts-panel .n-card__content { border-radius: 8px; }
#app .n-layout-content .tm-subscription-panel .n-card-header,
#app .n-layout-content .tm-shortcuts-panel .n-card-header {
  color: var(--tm-navy);
  letter-spacing: -.02em;
}
#app .n-layout-content .tm-subscription-panel .n-card__content {
  background: linear-gradient(135deg, #fbfaf6 0%, #f3f1e9 100%);
}
#app .n-layout-content .tm-shortcuts-panel .n-card__content {
  background: #fbfaf6;
  border: 1px solid #e2e0d8;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer {
  border-radius: 8px !important;
}
html[dir="rtl"] #app .n-layout-sider { border-right: 0; border-left: 1px solid rgba(255,255,255,.08); }
html[dir="rtl"] #app .n-layout-sider .n-menu-item-content--selected::before {
  inset-inline: 7px 0 !important;
  border-left: 0;
  border-right: 3px solid var(--tm-coral);
  border-radius: 4px 0 0 4px !important;
}

@media (max-width: 1080px) {
  body[data-tm-auth="true"] { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); padding-inline: 12px; }
  body[data-tm-auth="true"] #tm-login-panel { padding-inline: 26px; }
  .tm-login-panel__copy { left: 26px; }
  .tm-region-grid { right: 26px; left: 26px; }
  .tm-login-panel__foot { right: 26px; left: 26px; }
  .tm-map-index--one { left: 9%; }
}
@media (max-width: 760px) {
  body[data-tm-auth="true"] {
    display: block;
    min-height: 100svh;
    padding: 0;
    background: var(--tm-paper);
  }
  body[data-tm-auth="true"] #tm-login-panel {
    display: block;
    flex: 0 0 auto;
    min-height: calc(98px + env(safe-area-inset-top));
    padding: calc(18px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 18px calc(20px + env(safe-area-inset-left));
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #cfd2cf;
  }
  body[data-tm-auth="true"] .tm-login-panel__top { gap: 10px; }
  body[data-tm-auth="true"] .tm-mark { width: 34px; height: 34px; flex-basis: 34px; }
  body[data-tm-auth="true"] .tm-wordmark { font-size: 11px; }
  body[data-tm-auth="true"] .tm-wordmark__note { display: none; }
  body[data-tm-auth="true"] .tm-atlas-map {
    top: 8px;
    right: -50px;
    left: auto;
    width: 44%;
    height: 82px;
    opacity: .5;
  }
  body[data-tm-auth="true"] .tm-map-index,
  body[data-tm-auth="true"] .tm-map-scale,
  body[data-tm-auth="true"] .tm-login-panel__copy,
  body[data-tm-auth="true"] .tm-region-grid,
  body[data-tm-auth="true"] .tm-login-panel__foot { display: none; }
  body[data-tm-auth="true"] #app {
    display: flex;
    flex: none;
    align-items: flex-start;
    height: auto !important;
    min-height: calc(100svh - 98px - env(safe-area-inset-top));
    max-height: none !important;
    padding: 28px calc(22px + env(safe-area-inset-right)) 36px calc(22px + env(safe-area-inset-left));
  }
  body[data-tm-auth="true"] #app .n-config-provider {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body[data-tm-auth="true"] #app .n-config-provider > .wh-full {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: initial !important;
  }
  body[data-tm-auth="true"] #app .n-card { max-width: 460px; }
  body[data-tm-auth="true"] #app .n-card h1 { font-size: 32px !important; }
  body[data-tm-auth="true"] #app .n-card h5 { margin-bottom: 25px; }
  #app .n-layout-content { padding: 18px 14px !important; }
  #app .n-card { border-radius: 6px !important; }
  #app .n-data-table-wrapper { overflow-x: auto; }
}
@media (max-width: 380px) {
  body[data-tm-auth="true"] .tm-wordmark__note { max-width: 120px; line-height: 1.4; text-align: right; }
  body[data-tm-auth="true"] #app { padding-inline: 18px; }
}

/* Auth actions: separate the footer controls from the form instead of a grey slab. */
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 22px 0 0 !important;
  padding: 14px 0 0 !important;
  color: var(--tm-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--tm-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
  width: auto;
  height: auto !important;
  min-height: 0 !important;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] a {
  color: var(--tm-muted) !important;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] a:first-child {
  color: var(--tm-coral-dark) !important;
  font-weight: 720;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] a:hover {
  color: var(--tm-coral-dark) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] > div:last-child {
  display: flex;
  align-items: center;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] .n-button:not(.n-button--primary-type) {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  color: var(--tm-muted) !important;
  background: transparent !important;
  border: 1px solid var(--tm-line) !important;
  border-radius: 4px !important;
  font-size: 12px;
}
body[data-tm-auth="true"] #app .n-card__content > div[class*="n-color-embedded"] .n-button:not(.n-button--primary-type):hover {
  color: var(--tm-ink) !important;
  background: #ebe9e2 !important;
}

/* Dashboard: give the subscription and the four real shortcuts distinct jobs. */
#app .n-layout-content .tm-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 20px);
  margin-bottom: 0 !important;
}
#app .n-layout-content .tm-dashboard-grid > .tm-dashboard-alert,
#app .n-layout-content .tm-dashboard-grid > .tm-dashboard-announcement {
  grid-column: 1 / -1;
}
#app .n-layout-content .tm-subscription-panel {
  grid-column: 1;
  align-self: stretch;
  min-width: 0;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#app .n-layout-content .tm-shortcuts-panel {
  grid-column: 2;
  align-self: stretch;
  min-width: 0;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#app .n-layout-content .tm-subscription-panel .n-card-header,
#app .n-layout-content .tm-shortcuts-panel .n-card-header {
  min-height: 44px;
  margin: 0 0 10px !important;
  padding: 0 0 11px !important;
  border-bottom: 1px solid var(--tm-line);
}
#app .n-layout-content .tm-subscription-panel .n-card__content {
  display: flex;
  align-items: stretch;
  min-height: 220px;
  padding: 12px 18px 18px !important;
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer.pt-5.text-center {
  position: relative;
  isolation: isolate;
  display: flex !important;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 156px;
  margin: 0 !important;
  padding: 22px !important;
  color: var(--tm-ink);
  text-align: left !important;
  background: transparent;
  border: 1px dashed #c7cdd0;
  border-radius: 6px;
  transition: border-color .16s ease, background-color .16s ease;
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer.pt-5.text-center .tm-route-decoration {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: .4;
  pointer-events: none;
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer.pt-5.text-center > *:not(.tm-route-decoration) {
  position: relative;
  z-index: 1;
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer.pt-5.text-center:hover {
  background: #efede6;
  border-color: var(--tm-coral);
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer.pt-5.text-center .n-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--tm-coral) !important;
  background: #f8e2da;
  border-radius: 8px;
  font-size: 23px !important;
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer.pt-5.text-center > div:last-child {
  color: var(--tm-navy);
  font-size: 15px;
  font-weight: 720;
  text-align: left;
}
#app .n-layout-content .tm-shortcuts-panel .n-card__content {
  padding: 4px !important;
}
#app .n-layout-content .tm-shortcuts-panel .n-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 10px !important;
  background: transparent !important;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 112px;
  height: 100%;
  padding: 15px !important;
  color: var(--tm-ink);
  background: #f8f7f2;
  border: 1px solid #e0ded6;
  border-radius: 5px;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer:hover {
  background: var(--tm-white) !important;
  border-color: #e2aa9b !important;
  transform: translateY(-1px);
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer > div:first-child {
  flex: 1;
  min-width: 0;
  width: 100%;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer .text-base {
  color: var(--tm-navy);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.4;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer .text-sm {
  margin-top: 5px;
  color: var(--tm-muted) !important;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer .n-icon {
  color: var(--tm-blue) !important;
  font-size: 21px !important;
}
#app .n-layout-content .tm-shortcuts-panel .n-list-item:nth-child(2) .n-icon,
#app .n-layout-content .tm-shortcuts-panel .n-list-item:nth-child(3) .n-icon {
  color: var(--tm-coral) !important;
}
#app .n-layout-content .tm-subscription-panel .cursor-pointer[role="button"]:focus-visible,
#app .n-layout-content .tm-shortcuts-panel .cursor-pointer[role="button"]:focus-visible {
  outline: 2px solid var(--tm-blue);
  outline-offset: 3px;
}
@media (max-width: 1040px) {
  #app .n-layout-content .tm-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #app .n-layout-content .tm-subscription-panel,
  #app .n-layout-content .tm-shortcuts-panel {
    grid-column: 1;
  }
}
@media (max-width: 390px) {
  #app .n-layout-content .tm-shortcuts-panel .n-card__content { padding: 0 !important; }
  #app .n-layout-content .tm-shortcuts-panel .n-list { gap: 7px; padding: 7px !important; }
  #app .n-layout-content .tm-shortcuts-panel .n-list-item .cursor-pointer { padding: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Keep the payment return path visible when the gateway QR expires. */
.tm-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 12px 8px 0;
}
.tm-pay-open,
.tm-pay-check,
.tm-pay-return {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--tm-blue);
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.tm-pay-open { color: #fff; background: var(--tm-blue); }
.tm-pay-check,
.tm-pay-return { color: var(--tm-blue); background: #fff; }
.tm-pay-open:hover,
.tm-pay-check:hover,
.tm-pay-return:hover { opacity: .85; }
.tm-pay-open:focus-visible,
.tm-pay-check:focus-visible,
.tm-pay-return:focus-visible { outline: 2px solid var(--tm-coral); outline-offset: 3px; }
.tm-pay-note {
  max-width: 280px;
  margin: 10px auto 0;
  color: var(--tm-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.tm-pay-card { width: min(94vw, 760px) !important; }
.tm-pay-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8f7f2;
  border: 1px solid #e0ded6;
  border-radius: 6px;
}
.tm-pay-summary > div { min-width: 0; }
.tm-pay-summary span,
.tm-pay-summary strong { display: block; }
.tm-pay-summary span { color: var(--tm-muted); font-size: 11px; }
.tm-pay-summary strong { margin-top: 3px; color: var(--tm-navy); font-size: 14px; }
.tm-pay-order { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-pay-frame-wrap {
  height: min(62vh, 610px);
  min-height: 420px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7dce4;
  border-radius: 6px;
}
.tm-pay-frame { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 640px) {
  .tm-pay-card { width: 96vw !important; }
  .tm-pay-summary { grid-template-columns: 1fr 1fr; }
  .tm-pay-summary > div:last-child { grid-column: 1 / -1; }
  .tm-pay-frame-wrap { height: 58vh; min-height: 360px; }
  .tm-pay-actions > * { flex: 1 1 140px; }
}

/* A complete authenticated dark palette; Naive's child variables otherwise
   produce light cards with light text across every built-in page. */
html.dark {
  color-scheme: dark;
  --tm-ink: #f4f1e8;
  --tm-muted: #bac4d0;
  --tm-white: #181a1f;
  --tm-line: #343a43;
}
body[data-tm-theme="dark"] { color-scheme: dark; }
html.dark body,
html.dark #app,
html.dark #app .n-config-provider,
html.dark #app .n-layout-content { color: #f4f1e8; }
html.dark #app .n-card {
  color: #f4f1e8 !important;
  background: #181a1f !important;
  border-color: #343a43 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2) !important;
}
html.dark #app .n-card-header,
html.dark #app .n-card-header__main,
html.dark #app .n-card__content,
html.dark #app .n-card__footer { color: #f4f1e8 !important; }
html.dark #app .n-card__action {
  color: #f4f1e8 !important;
  background: #15171b !important;
  border-top-color: #343a43 !important;
}
html.dark #app .n-form-item-label,
html.dark #app .n-form-item-label__text { color: #dce5ed !important; }
html.dark #app .n-input,
html.dark #app .n-base-selection,
html.dark #app .n-input-number {
  --n-color: #121419 !important;
  --n-color-focus: #15181d !important;
  --n-text-color: #f4f1e8 !important;
  --n-placeholder-color: #8f9ba8 !important;
  --n-border: 1px solid #414955 !important;
  --n-border-hover: 1px solid #6683bd !important;
  --n-border-focus: 1px solid #7795cf !important;
}
html.dark #app .n-input__input-el,
html.dark #app .n-input__textarea-el,
html.dark #app .n-base-selection-label,
html.dark #app .n-base-selection-input { color: #f4f1e8 !important; }
html.dark #app .n-input__placeholder,
html.dark #app .n-base-selection-placeholder { color: #8f9ba8 !important; }
html.dark #app .n-data-table,
html.dark #app .n-data-table-wrapper,
html.dark #app .n-data-table-base-table { background: #17191e !important; }
html.dark #app .n-data-table-th {
  color: #dce5ed !important;
  background: #24272e !important;
  border-bottom-color: #414955 !important;
}
html.dark #app .n-data-table-td {
  color: #e8edf2 !important;
  background: #17191e !important;
  border-bottom-color: #343a43 !important;
}
html.dark #app .n-data-table-tr:hover .n-data-table-td { background: #20232a !important; }
html.dark #app .n-alert {
  --n-color: #20383d !important;
  --n-border: 1px solid #36585f !important;
  --n-title-text-color: #e6f5f6 !important;
  --n-content-text-color: #d6edf0 !important;
  color: #d6edf0 !important;
  background: #20383d !important;
  border-color: #36585f !important;
}
html.dark #app .n-alert-body,
html.dark #app .n-alert__content,
html.dark #app .n-alert__title { color: inherit !important; }
html.dark #app .n-list { color: #e8edf2; background: transparent !important; }
html.dark #app .n-list-item { color: #e8edf2; border-bottom-color: #343a43 !important; }
html.dark #app .markdown-body,
html.dark #app .markdown-body p,
html.dark #app .markdown-body li { color: #bac4d0 !important; }
html.dark #app .markdown-body h1,
html.dark #app .markdown-body h2,
html.dark #app .markdown-body h3,
html.dark #app .markdown-body h4,
html.dark #app .markdown-body strong { color: #f4f1e8 !important; }
html.dark #app .n-empty,
html.dark #app .n-empty__description { color: #9eabb8 !important; }
html.dark #app .n-empty__icon { color: #8ba0b1 !important; }
html.dark #app .n-tabs-tab { color: #bac4d0 !important; }
html.dark #app .n-tabs-tab--active { color: #ff876c !important; }
html.dark #app .n-tabs-nav { border-bottom-color: #343a43 !important; }
html.dark #app .n-tag {
  --n-color: #24272e !important;
  --n-text-color: #dce5ed !important;
  --n-border: 1px solid #414955 !important;
}
html.dark #app .n-statistic-label { color: #bac4d0 !important; }
html.dark #app .n-statistic-value { color: #f4f1e8 !important; }
html.dark #app .text-gray-400,
html.dark #app .text-gray-500 { color: #aeb9c5 !important; }
html.dark #app .n-divider { --n-color: #343a43 !important; }

/* Purchase cards receive an additional visual hierarchy in dark mode. */
html.dark #app .card-container .n-card {
  color: #f4f1e8 !important;
  background: #191c21 !important;
  border-color: #353a42 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22) !important;
}
html.dark #app .card-container .n-card:hover {
  border-color: #e56a4f !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3) !important;
}
html.dark #app .card-container .n-card-header,
html.dark #app .card-container .n-card-header__main {
  color: #f4f1e8 !important;
}
html.dark #app .card-container .text-3xl {
  color: #f6d36f !important;
  font-variant-numeric: tabular-nums;
}
html.dark #app .card-container .text-gray-500,
html.dark #app .card-container .markdown-body,
html.dark #app .card-container .markdown-body p {
  color: #bac4d0 !important;
}
html.dark #app .card-container .markdown-body strong,
html.dark #app .card-container .markdown-body b {
  color: #f4f1e8 !important;
}
html.dark #app .card-container .n-card__action {
  background: #15171b !important;
  border-top-color: #353a42 !important;
}
html.dark #app .card-container .n-button--primary-type {
  color: #fff !important;
  background: var(--tm-coral) !important;
  border-color: var(--tm-coral) !important;
}

/* Authentication pages are a separate composed surface, so dark mode must
   switch the atlas, workspace and form together instead of only the card. */
body[data-tm-auth="true"][data-tm-theme="dark"] {
  color: #f4f1e8;
  background: #0d1117;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #tm-login-panel {
  color: #f4f1e8;
  background:
    linear-gradient(rgba(170, 188, 207, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 188, 207, .045) 1px, transparent 1px),
    #111821;
  background-size: 48px 48px;
  border-right-color: #303b48 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app {
  color: #f4f1e8;
  background: #0d1117;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card {
  color: #f4f1e8 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card__content { color: #f4f1e8 !important; }
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card h1 {
  color: #f4f1e8 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card h5 {
  color: #bac4d0 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-input {
  --n-color: #10151c !important;
  --n-color-focus: #131a22 !important;
  --n-text-color: #eef2f5 !important;
  --n-placeholder-color: #82909d !important;
  --n-border: 1px solid #3d4855 !important;
  --n-border-hover: 1px solid #708ec8 !important;
  --n-border-focus: 1px solid #86a3dc !important;
  --n-box-shadow-focus: 0 0 0 2px rgba(112, 142, 200, .2) !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-input .n-input__input-el {
  color: #eef2f5 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-input .n-input__placeholder {
  color: #82909d !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app input:-webkit-autofill,
body[data-tm-auth="true"][data-tm-theme="dark"] #app input:-webkit-autofill:hover,
body[data-tm-auth="true"][data-tm-theme="dark"] #app input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eef2f5 !important;
  box-shadow: 0 0 0 1000px #10151c inset !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card__content > div[class*="n-color-embedded"] {
  color: #bac4d0 !important;
  border-top-color: #303844 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card__content > div[class*="n-color-embedded"] a {
  color: #bac4d0 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card__content > div[class*="n-color-embedded"] a:first-child,
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card__content > div[class*="n-color-embedded"] a:hover {
  color: #ff876c !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] #app .n-card__content > div[class*="n-color-embedded"] .n-button:not(.n-button--primary-type) {
  color: #dce5ed !important;
  background: #11161d !important;
  border-color: #3d4855 !important;
}
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-wordmark,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-login-panel__copy h1,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-region-grid b,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-map-scale {
  color: #f4f1e8;
}
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-wordmark__note,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-map-index,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-eyebrow,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-region-grid span,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-login-panel__foot,
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-login-panel__intro {
  color: #aab6c3;
}
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-region-grid {
  border-top-color: #45515e;
}
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-region-grid span {
  border-bottom-color: #303b48;
}
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-atlas-contours path { stroke: #6f8294; opacity: .35; }
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-route-secondary { stroke: #7694cf; opacity: .75; }
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-atlas-nodes circle { fill: #111821; stroke: #7694cf; }
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-atlas-nodes circle:nth-child(3n + 1) { fill: var(--tm-lime); stroke: #0d1117; }
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-atlas-nodes circle:nth-child(3n + 2) { fill: var(--tm-coral); stroke: #111821; }
body[data-tm-auth="true"][data-tm-theme="dark"] .tm-atlas-crosses path { stroke: #aab6c3; }

/* Online network controls inherit the Signal Atlas paper, ink and route colors. */
#app .tm-subscription-panel .n-card-header { display: flex; align-items: center; gap: 12px; }
.tm-order-activation { margin: 0 0 20px; padding: 20px 22px; border: 1px solid var(--tm-line); border-left: 3px solid var(--tm-coral); border-radius: 7px; background: var(--tm-white); color: var(--tm-ink); }
.tm-order-activation__title { margin: 0 0 10px; color: var(--tm-navy); font-size: 18px; font-weight: 750; line-height: 1.4; }
.tm-order-activation__copy { margin: 0; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.tm-order-activation__detail, .tm-order-activation__retry { margin: 9px 0 0; color: var(--tm-muted); font-size: 12px; line-height: 1.65; }
.tm-order-activation__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tm-order-activation__actions button { min-height: 40px; padding: 9px 13px; border: 1px solid var(--tm-blue); border-radius: 5px; background: transparent; color: var(--tm-blue); cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; }
.tm-order-activation__actions button:hover { background: rgba(70, 104, 168, .08); }
.tm-order-activation__actions button:focus-visible { outline: 3px solid var(--tm-blue); outline-offset: 3px; }
.tm-order-activation__actions button:disabled { opacity: .55; cursor: wait; }
.tm-order-activation__superseded { display: none !important; }
html.dark .tm-order-activation { --tm-white: #181a1f; --tm-ink: #f4f1e8; --tm-navy: #f4f1e8; --tm-blue: #91aded; --tm-line: #39424c; --tm-muted: #bac4d0; }
@media (max-width: 600px) { .tm-order-activation { padding: 18px; } .tm-order-activation__actions button { flex: 1 1 140px; } }

.tm-online-networks__trigger {
  margin-inline-start: auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--tm-blue);
  border-radius: 5px;
  color: var(--tm-blue);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.tm-online-networks__trigger:hover { background: rgba(70, 104, 168, .08); }
body.tm-online-networks-open { overflow: hidden; }
.tm-online-networks {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 27, 43, .66);
}
.tm-online-networks__panel {
  width: min(100%, 760px);
  max-height: min(820px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tm-line);
  border-radius: 8px;
  color: var(--tm-ink);
  background: var(--tm-white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  font-family: Inter, "SF Pro Display", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.tm-online-networks__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--tm-line);
}
.tm-online-networks__header h2 { margin: 0; color: var(--tm-navy); font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.tm-online-networks__header p { margin: 6px 0 0; color: var(--tm-muted); font-size: 13px; }
.tm-online-networks__close,
.tm-online-networks__retry,
.tm-online-networks__secondary,
.tm-online-networks__danger,
.tm-online-networks__row-action {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--tm-line);
  border-radius: 5px;
  color: var(--tm-ink);
  background: var(--tm-white);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.tm-online-networks__close:hover,
.tm-online-networks__secondary:hover { border-color: var(--tm-blue); color: var(--tm-blue); }
.tm-online-networks__summary {
  padding: 15px 30px;
  color: var(--tm-muted);
  background: var(--tm-paper);
  border-bottom: 1px solid var(--tm-line);
  font-size: 12px;
  font-weight: 700;
}
.tm-online-networks__content { min-height: 120px; padding: 0 30px; overflow: auto; overscroll-behavior: contain; }
.tm-online-networks__notice { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--tm-coral); color: var(--tm-ink); background: rgba(241, 91, 58, .08); font-size: 13px; line-height: 1.6; }
.tm-online-networks__empty,
.tm-online-networks__loading { margin: 0; padding: 40px 0; color: var(--tm-muted); text-align: center; font-size: 14px; }
.tm-online-networks__list { margin: 0; padding: 0; list-style: none; }
.tm-online-networks__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--tm-line); }
.tm-online-networks__row:last-child { border-bottom: 0; }
.tm-online-networks__row-main { min-width: 0; }
.tm-online-networks__row-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.tm-online-networks__row-heading strong { color: var(--tm-navy); font-size: 17px; font-weight: 750; letter-spacing: .01em; }
.tm-online-networks__state { padding: 3px 7px; border-radius: 3px; color: #275c4d; background: #e3f1e9; font-size: 11px; font-weight: 700; }
.tm-online-networks__state.is-blocked { color: #a6422e; background: #fbe5df; }
.tm-online-networks__state.is-pending { color: #334f85; background: #e8edfa; }
.tm-online-networks__nodes { margin: 7px 0 0; color: var(--tm-ink); font-size: 13px; font-weight: 650; }
.tm-online-networks__times { margin: 5px 0 0; color: var(--tm-muted); font-size: 12px; line-height: 1.5; }
.tm-online-networks__row-action { border-color: var(--tm-coral); color: #a73b25; }
.tm-online-networks__row-action:hover { background: rgba(241, 91, 58, .08); }
.tm-online-networks__row-action.is-restore { border-color: var(--tm-blue); color: var(--tm-blue); }
.tm-online-networks__row-action.is-restore:hover { background: rgba(70, 104, 168, .08); }
.tm-online-networks__message { min-height: 44px; margin: 0; padding: 11px 30px; color: #275c4d; border-top: 1px solid var(--tm-line); font-size: 12px; line-height: 1.5; }
.tm-online-networks__message:empty { visibility: hidden; }
.tm-online-networks__message[data-error="true"] { color: #a6422e; }
.tm-online-networks__error { padding: 30px 0; text-align: center; }
.tm-online-networks__error p { margin: 0 0 12px; color: #a6422e; font-size: 13px; }
.tm-online-networks__retry { border-color: var(--tm-blue); color: var(--tm-blue); }
.tm-online-networks__confirm-shade { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(13, 27, 43, .64); }
.tm-online-networks__confirm { width: min(100%, 420px); padding: 26px; color: var(--tm-ink); background: var(--tm-white); border: 1px solid var(--tm-line); border-radius: 7px; box-shadow: 0 16px 50px rgba(0, 0, 0, .28); }
.tm-online-networks__confirm h3 { margin: 0; color: var(--tm-navy); font-size: 19px; }
.tm-online-networks__confirm p { margin: 12px 0 24px; color: var(--tm-muted); font-size: 13px; line-height: 1.7; }
.tm-online-networks__confirm-actions { display: flex; justify-content: flex-end; gap: 9px; }
.tm-online-networks__danger { color: #fff; background: var(--tm-coral-dark); border-color: var(--tm-coral-dark); }
.tm-online-networks__danger:hover { background: #ad3720; }
.tm-online-networks button:disabled { opacity: .55; cursor: wait; }
.tm-online-networks button:focus-visible,
.tm-online-networks__trigger:focus-visible { outline: 3px solid var(--tm-blue); outline-offset: 3px; }
html.dark .tm-online-networks__panel,
html.dark .tm-online-networks__confirm { --tm-navy: #f4f1e8; --tm-white: #181a1f; --tm-paper: #20252c; --tm-blue: #91aded; --tm-line: #39424c; --tm-muted: #bac4d0; --tm-ink: #f4f1e8; }
html.dark .tm-online-networks__state { color: #bce8d3; background: #27483b; }
html.dark .tm-online-networks__state.is-blocked { color: #ffad98; background: #50342d; }
html.dark .tm-online-networks__state.is-pending { color: #bfd0f6; background: #293750; }
html.dark .tm-online-networks__row-action { color: #ffad98; }
html.dark .tm-online-networks__row-action.is-restore { color: #b5c8f3; }
html.dark .tm-online-networks__message { color: #bce8d3; }
html.dark .tm-online-networks__message[data-error="true"],
html.dark .tm-online-networks__error p { color: #ffad98; }
html.dark .tm-online-networks__trigger { color: #b5c8f3; border-color: #7898d6; }
@media (max-width: 640px) {
  .tm-online-networks { align-items: flex-end; padding: env(safe-area-inset-top, 0px) 0 0; }
  .tm-online-networks__panel { width: 100%; max-height: calc(92dvh - env(safe-area-inset-top, 0px)); border-radius: 12px 12px 0 0; border-bottom: 0; }
  .tm-online-networks__header { padding: 21px 20px 16px; }
  .tm-online-networks__header h2 { font-size: 21px; }
  .tm-online-networks__summary { padding: 13px 20px; }
  .tm-online-networks__content { padding: 0 20px; }
  .tm-online-networks__row { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px 0; }
  .tm-online-networks__row-action { align-self: stretch; }
  .tm-online-networks__message { padding: 11px 20px max(11px, env(safe-area-inset-bottom, 0px)); }
  .tm-online-networks__confirm-shade { padding: 18px; }
}
