html,
body,
#root {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow: hidden;
}

.tsp-app-skeleton {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  color: #b9d9e5;
  background: #071525;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-app-skeleton-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  height: 82px;
  padding: 0 22px;
  box-sizing: border-box;
  border-bottom: 1px solid #17445a;
  background: #101c31;
}

.tsp-app-skeleton-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tsp-app-skeleton-header strong {
  color: #64d7f2;
  text-align: center;
  font-size: clamp(22px, 3vw, 36px);
}

.tsp-app-skeleton-header span {
  padding: 9px 14px;
  border: 1px solid #476679;
  border-radius: 999px;
  color: #e8f6fa;
}

.tsp-app-skeleton-body {
  display: grid;
  grid-template-columns: minmax(260px, 28vw) 1fr;
  height: calc(100dvh - 82px);
}

.tsp-app-skeleton-body aside {
  padding: 24px;
  border-right: 1px solid #17445a;
  background: #0c1426;
}

.tsp-app-skeleton-body main {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #102235;
}

.tsp-app-skeleton-body main p {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  border: 1px solid #2b6479;
  border-radius: 10px;
  color: #dff8ff;
  background: rgba(6, 24, 37, 0.9);
}

.tsp-app-skeleton-body main p[data-error="true"] {
  border-color: #d86868;
  color: #ffe4e4;
}

.tsp-skeleton-map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(74, 180, 207, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 180, 207, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, #286176, transparent 46%);
  background-size: 80px 80px, 80px 80px, auto;
}

.tsp-skeleton-line,
.tsp-skeleton-tabs,
.tsp-skeleton-card {
  border-radius: 9px;
  background: linear-gradient(90deg, #17253c 20%, #243a52 45%, #17253c 70%);
  background-size: 240% 100%;
  animation: tsp-skeleton-pulse 1.6s ease-in-out infinite;
}

.tsp-skeleton-line-title { width: 42%; height: 24px; }
.tsp-skeleton-tabs { width: 100%; height: 58px; margin-top: 30px; }
.tsp-skeleton-card { width: 100%; height: 230px; margin-top: 18px; }

@keyframes tsp-skeleton-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .tsp-app-skeleton-header {
    grid-template-columns: 42px minmax(0, 1fr);
    height: 70px;
    padding: 0 14px;
  }
  .tsp-app-skeleton-header img { width: 40px; height: 40px; }
  .tsp-app-skeleton-header strong { font-size: 20px; text-align: left; }
  .tsp-app-skeleton-header span { display: none; }
  .tsp-app-skeleton-body { grid-template-columns: minmax(150px, 42vw) 1fr; height: calc(100dvh - 70px); }
  .tsp-app-skeleton-body aside { padding: 14px; }
  .tsp-app-skeleton-body main p { max-width: 70%; font-size: 12px; text-align: center; }
}

.tsp-user-launcher {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 2147483000;
  min-width: 92px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 34, 55, 0.9);
  box-shadow: 0 8px 24px rgba(3, 18, 30, 0.24);
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.tsp-header-utility {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 10px;
  background: rgba(8, 47, 73, 0.38);
  color: #67e8f9;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.tsp-header-utility:hover,
.tsp-header-utility:focus-visible {
  border-color: rgba(103, 232, 249, 0.75);
  background: rgba(8, 47, 73, 0.68);
  color: #cffafe;
}

.tsp-header-utility[data-unread]:not([data-unread="0"])::after {
  content: attr(data-unread);
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.tsp-user-launcher[data-in-header="true"] {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsp-user-launcher:hover,
.tsp-user-launcher:focus-visible {
  background: #0b5f73;
  outline: 3px solid rgba(37, 192, 212, 0.28);
  outline-offset: 2px;
}

.tsp-user-launcher[data-alert="true"]::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f59e0b;
}

.tsp-user-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 64px 18px 18px;
  background: rgba(2, 12, 21, 0.52);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-user-overlay[data-open="true"] {
  display: flex;
}

.tsp-user-panel {
  width: min(540px, calc(100vw - 36px));
  max-height: calc(100vh - 82px);
  overflow: auto;
  border: 1px solid #d7e2e8;
  border-radius: 18px;
  color: #18313f;
  background: #f8fbfc;
  box-shadow: 0 24px 70px rgba(1, 14, 25, 0.36);
}

.tsp-user-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #dce6eb;
  border-radius: 18px 18px 0 0;
  background: rgba(248, 251, 252, 0.96);
  backdrop-filter: blur(12px);
}

.tsp-user-title {
  margin: 0;
  color: #0e3d4c;
  font-size: 20px;
  line-height: 1.3;
}

.tsp-user-subtitle {
  margin: 4px 0 0;
  color: #65808e;
  font-size: 12px;
}

.tsp-user-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: #335765;
  background: #e8f0f3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tsp-user-close:hover,
.tsp-user-close:focus-visible {
  background: #d8e8ed;
  outline: 2px solid #58a9ba;
}

.tsp-user-content {
  padding: 20px;
}

.tsp-user-card {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #d8e4e9;
  border-radius: 14px;
  background: #fff;
}

.tsp-user-card h3,
.tsp-user-card h4 {
  margin: 0 0 10px;
  color: #123e4c;
}

.tsp-user-card h3 {
  font-size: 17px;
}

.tsp-user-card h4 {
  font-size: 15px;
}

.tsp-user-identity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 2px;
}

.tsp-user-identity-row h3 {
  min-width: 0;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.tsp-user-identity-row .tsp-user-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  margin: 0;
}

.tsp-user-meta {
  margin: 4px 0;
  color: #55717e;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tsp-admin-private-note {
  padding: 8px 10px;
  border-left: 3px solid #d89b2b;
  border-radius: 7px;
  color: #68410d;
  background: #fff7e5;
}

.tsp-temporary-credential .tsp-user-meta:nth-of-type(2) {
  color: #0a5362;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 700;
}

.tsp-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 4px 6px 4px 0;
  padding: 0 9px;
  border-radius: 999px;
  color: #0a5362;
  background: #e2f4f6;
  font-size: 12px;
  font-weight: 700;
}

.tsp-user-badge[data-kind="warning"] {
  color: #82410d;
  background: #fff1d6;
}

.tsp-user-badge[data-kind="inactive"] {
  color: #7c2d2d;
  background: #fee8e8;
}

.tsp-user-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: #294d5b;
  font-size: 13px;
  font-weight: 700;
}

.tsp-user-field[hidden],
.tsp-user-sms-actions[hidden],
.tsp-user-button[hidden] {
  display: none !important;
}

.tsp-user-field input,
.tsp-user-field select,
.tsp-user-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b7cbd3;
  border-radius: 9px;
  color: #18313f;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.tsp-user-field input:focus,
.tsp-user-field select:focus,
.tsp-user-field textarea:focus {
  border-color: #138399;
  outline: 3px solid rgba(19, 131, 153, 0.14);
}

.tsp-user-help {
  margin: -7px 0 14px;
  color: #6d838e;
  font-size: 12px;
  line-height: 1.5;
}

.tsp-user-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 15px;
}

.tsp-user-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #dbe6ea;
  border-radius: 9px;
  color: #345764;
  background: #f8fbfc;
  font-size: 12px;
  cursor: pointer;
}

.tsp-user-check input {
  width: 16px;
  height: 16px;
  accent-color: #08778c;
}

.tsp-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  padding-bottom: 2px;
  overflow: visible;
}

.tsp-user-account-actions-title {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid #d8e4e9;
}

.tsp-user-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.tsp-user-account-actions .tsp-user-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 10px;
  white-space: normal;
  text-align: center;
}

.tsp-user-consistent-actions .tsp-user-button:not([data-danger="true"]) {
  border-color: #b7ccd4;
  color: #224b59;
  background: #eef5f7;
}

.tsp-user-consistent-actions .tsp-user-button:not([data-danger="true"]):hover,
.tsp-user-consistent-actions .tsp-user-button:not([data-danger="true"]):focus-visible {
  border-color: #168297;
  background: #e0f1f4;
}

.tsp-user-item-actions .tsp-user-button {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.tsp-user-compact-setting {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.tsp-user-compact-setting .tsp-user-field {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  align-items: center;
  gap: 9px;
}

.tsp-user-compact-setting .tsp-user-field > span {
  flex: 0 0 auto;
  margin: 0;
}

.tsp-user-compact-setting .tsp-user-field input {
  flex: 1 1 120px;
  min-width: 90px;
}

.tsp-user-compact-setting .tsp-user-button {
  flex: 0 0 auto;
  margin: 0;
}

.tsp-user-compact-setting .tsp-user-message {
  flex: 1 0 100%;
  margin: 0;
}

@media (min-width: 700px) {
  .tsp-user-nowrap-desktop {
    flex-wrap: nowrap;
  }

  .tsp-user-nowrap-desktop > .tsp-user-button {
    flex: 1 1 0;
  }
}

.tsp-user-sms-actions {
  display: flex;
  justify-content: flex-end;
  margin: -5px 0 14px;
}

.tsp-user-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 70px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #b7ccd4;
  border-radius: 9px;
  color: #224b59;
  background: #eef5f7;
  font: 700 13px/1.2 inherit;
  cursor: pointer;
  text-decoration: none;
}

.tsp-user-button:hover,
.tsp-user-button:focus-visible {
  border-color: #168297;
  background: #e0f1f4;
  outline: 2px solid rgba(22, 130, 151, 0.18);
}

.tsp-user-button[data-primary="true"] {
  border-color: #086b7e;
  color: #fff;
  background: #086b7e;
}

.tsp-user-button[data-danger="true"] {
  border-color: #e1b4b4;
  color: #8a2929;
  background: #fff2f2;
}

.tsp-user-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.tsp-user-message {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #7f2929;
  background: #ffeded;
  font-size: 13px;
  line-height: 1.5;
}

.tsp-user-message[data-visible="true"] {
  display: block;
}

.tsp-user-message[data-kind="success"] {
  color: #14633d;
  background: #e8f7ef;
}

.tsp-user-empty {
  padding: 24px 12px;
  color: #6b818c;
  text-align: center;
}

.tsp-user-divider {
  height: 1px;
  margin: 18px 0;
  background: #dde7eb;
}

.tsp-user-audit {
  display: grid;
  gap: 8px;
}

.tsp-user-audit-item {
  padding: 9px 10px;
  border-left: 3px solid #68aaba;
  color: #44636f;
  background: #f3f8f9;
  font-size: 12px;
  line-height: 1.5;
}

.tsp-user-startup {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  color: #eaf8fb;
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 151, 172, 0.32), transparent 42%),
    linear-gradient(145deg, #071a27, #0b3443 58%, #0c5360);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-user-startup-card {
  width: min(480px, 100%);
  padding: 34px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  text-align: center;
  background: rgba(5, 26, 39, 0.7);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.tsp-user-startup-card h1 {
  margin: 12px 0;
  font-size: clamp(28px, 6vw, 42px);
}

.tsp-user-startup-card p {
  margin: 0 0 22px;
  color: #bed9e1;
  line-height: 1.7;
}

.tsp-user-startup-logo {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 20px;
  color: #06323f;
  background: linear-gradient(135deg, #7ce3ec, #f2c96d);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
}

#root.tsp-map-ready {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 100dvh;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.tsp-user-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tsp-user-metric {
  margin: 0;
}

.tsp-user-metric-value {
  display: block;
  margin: 7px 0 4px;
  color: #086b7e;
  font-size: 27px;
  line-height: 1;
}

.tsp-private-data-toast {
  position: fixed;
  z-index: 2600;
  right: 18px;
  bottom: 42px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 10px;
  color: #e8fbff;
  background: rgba(6, 45, 58, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  font: 13px/1.5 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-private-data-toast[data-kind="error"] {
  border-color: rgba(248, 113, 113, 0.65);
  color: #fff0f0;
  background: rgba(91, 27, 36, 0.97);
}

.tsp-private-photo-marker {
  border: 0;
  background: transparent;
}

.tsp-private-photo-frame {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #67e8f9;
  border-radius: 10px 10px 10px 2px;
  background: #083344;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(6, 182, 212, 0.28);
  transform: rotate(-2deg);
}

.tsp-private-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsp-private-photo-fallback {
  font-size: 25px;
}

.tsp-private-link-marker {
  border: 0;
  background: transparent;
}

.tsp-private-link-pin {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 6px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 16px rgba(76, 29, 149, 0.64), 0 0 0 3px rgba(139, 92, 246, 0.2);
  font-size: 17px;
  font-weight: 800;
  transform: rotate(-45deg);
}

.tsp-private-link-pin::first-letter {
  transform: rotate(45deg);
}

.tsp-private-group {
  scroll-margin-top: 18px;
}

.tsp-private-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tsp-private-group-header h3,
.tsp-private-item h4 {
  margin-top: 0;
}

.tsp-private-group-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tsp-private-item {
  padding: 13px;
  border: 1px solid #d7e5e9;
  border-radius: 10px;
  background: #f7fbfc;
  overflow-wrap: anywhere;
}

.tsp-private-thumbnail {
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #c9dce2;
  border-radius: 9px;
  background: #dce9ed;
}

.tsp-private-thumbnail-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #edf4f6;
}

.tsp-link-viewer-overlay {
  position: fixed;
  z-index: 3100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 17, 27, 0.78);
}

.tsp-link-viewer-card {
  display: flex;
  width: min(1180px, calc(100vw - 36px));
  height: min(760px, calc(100dvh - 36px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #6da6b5;
  border-radius: 14px;
  color: #dff7fb;
  background: #0f172a;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.tsp-link-viewer-card[data-original-size="true"] {
  width: min(920px, calc(100vw - 36px));
  height: min(620px, calc(100dvh - 36px));
}

.tsp-link-viewer-card:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
}

.tsp-link-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #29475a;
}

.tsp-link-viewer-header h3 {
  margin: 0;
}

.tsp-link-viewer-header p {
  max-width: min(620px, 52vw);
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsp-link-viewer-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.tsp-link-viewer-notice {
  margin: 0;
  padding: 7px 14px;
  color: #a8c4cc;
  background: #132338;
  font-size: 12px;
}

.tsp-link-viewer-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #fff;
}

.tsp-link-composer-overlay {
  position: fixed;
  z-index: 2800;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 17, 27, 0.72);
  backdrop-filter: blur(5px);
}

.tsp-link-composer-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid #b9d8df;
  border-radius: 16px;
  color: #163944;
  background: #f8fcfd;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-link-composer-card h3 {
  margin: 0 0 8px;
  color: #073c4b;
}

.tsp-private-data-popup,
.tsp-private-map-menu {
  display: grid;
  gap: 8px;
  min-width: 210px;
  color: #163944;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.tsp-private-data-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tsp-private-map-popup .leaflet-popup-content {
  margin: 14px;
}

.tsp-vector-fields-popup .leaflet-popup-content-wrapper,
.tsp-vector-fields-popup .leaflet-popup-tip {
  background: #0f172a;
  color: #f8fafc;
}

.tsp-vector-fields-popup .leaflet-popup-content {
  margin: 14px;
}

.tsp-vector-fields-popup .leaflet-popup-close-button {
  color: #cbd5e1 !important;
}

.tsp-vector-fields-popup .leaflet-popup-close-button:hover,
.tsp-vector-fields-popup .leaflet-popup-close-button:focus-visible {
  color: #ffffff !important;
}

.tsp-vector-fields-scroll {
  max-height: 280px;
  overflow: auto;
  font-size: 12px;
}

.tsp-vector-fields-table {
  width: 100%;
  border-collapse: collapse;
}

.tsp-vector-field-name,
.tsp-vector-field-value {
  padding: 4px 7px;
  border-bottom: 1px solid #475569;
  vertical-align: top;
  line-height: 1.45;
}

.tsp-vector-field-name {
  color: #cbd5e1;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.tsp-vector-field-value {
  color: #f8fafc;
  font-weight: 500;
  word-break: break-word;
}

.tsp-vector-field-empty {
  color: #e2e8f0;
  font-size: 12px;
}

@media (max-width: 640px) {
  .tsp-user-launcher {
    top: 10px;
    right: 10px;
  }

  .tsp-user-launcher[data-in-header="true"] {
    min-width: 0;
    width: auto;
    max-width: 128px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .tsp-user-overlay {
    align-items: stretch;
    padding: 8px;
  }

  .tsp-user-panel {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .tsp-user-header {
    border-radius: 14px 14px 0 0;
  }

  .tsp-user-content {
    padding: 14px;
  }

  .tsp-user-checks {
    grid-template-columns: 1fr;
  }

  .tsp-user-account-actions {
    grid-template-columns: 1fr;
  }

  .tsp-user-compact-setting {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .tsp-user-compact-setting .tsp-user-field {
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .tsp-user-metrics {
    grid-template-columns: 1fr;
  }

  .tsp-private-data-toast {
    right: 10px;
    bottom: 34px;
    max-width: calc(100vw - 20px);
  }

  .tsp-private-group-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tsp-link-viewer-overlay {
    padding: 8px;
  }

  .tsp-link-viewer-card,
  .tsp-link-viewer-card[data-original-size="true"] {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }

  .tsp-link-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tsp-link-viewer-header p {
    max-width: calc(100vw - 56px);
  }

  .tsp-link-viewer-controls {
    width: 100%;
    overflow-x: auto;
  }
}
