: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; }
}
