:root {
  --td-brand-950: #24190c;
  --td-brand-900: #4b3216;
  --td-brand-800: #3f5f24;
  --td-brand-700: #527a2d;
  --td-brand-600: #416322;
  --td-brand-300: #9aaa6e;
  --td-brand-100: #edf4df;
  --td-accent: #c9852b;
  --td-accent-600: #a86620;
  --td-accent-100: #f6dfb5;
  --td-success: #527a2d;
  --td-warning: #c9852b;
  --td-danger: #c0362c;
  --td-ink-900: #2a2114;
  --td-ink-700: #4b3a24;
  --td-ink-500: #786850;
  --td-ink-300: #a79679;
  --td-paper: #f6efe2;
  --td-panel: #fffaf1;
  --td-muted: #efe3cf;
  --td-line: #dfcfb2;
  --td-line-strong: #c5ad83;
  --td-radius: 10px;
  --td-radius-sm: 8px;
  --td-shadow: 0 1px 2px rgba(75, 50, 22, 0.07);
  --td-sidebar-width: 252px;
  --td-sidebar-collapsed-width: 56px;
  --td-sidebar-rail-width: 40px;
  --td-sidebar-mobile-width: 252px;
}

html[data-td-theme="light"] {
  color-scheme: light;
}

html[data-td-theme="dark"] {
  color-scheme: dark;
  --td-brand-950: #f4ecdf;
  --td-brand-900: #ebdfca;
  --td-brand-800: #bed39c;
  --td-brand-700: #9ebe73;
  --td-brand-600: #87aa5f;
  --td-brand-300: #617849;
  --td-brand-100: #26301f;
  --td-accent: #d8a45d;
  --td-accent-600: #ebbd7f;
  --td-accent-100: #3a2918;
  --td-success: #9ebe73;
  --td-warning: #d8a45d;
  --td-danger: #ef8f86;
  --td-ink-900: #f7f1e6;
  --td-ink-700: #ddd0ba;
  --td-ink-500: #b09e85;
  --td-ink-300: #7f705d;
  --td-paper: #17120d;
  --td-panel: #211a14;
  --td-muted: #2b2219;
  --td-line: #433525;
  --td-line-strong: #66523d;
  --td-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.td-body {
  margin: 0;
  color: var(--td-ink-700);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--td-paper);
}

.td-page-title,
.td-topbar__title,
.td-market-title {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}

.td-shell {
  display: grid;
  grid-template-columns: var(--td-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  transition: grid-template-columns 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.td-main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  z-index: 1;
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}

.td-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 8;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 14px 12px;
  border-right: 1px solid var(--td-line);
  background: #fffaf1;
  transform: translateX(0);
  transition:
    width 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.26s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.td-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 14px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid var(--td-line);
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.td-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.td-brand-link__logo {
  width: 34px;
  height: 34px;
  border-radius: var(--td-radius);
  box-shadow: none;
}

.td-brand-link__logo--full {
  width: 176px;
  height: auto;
  border-radius: 0;
}

.td-brand-link__text {
  color: var(--td-ink-900);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.td-sidebar__nav {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 0;
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.td-sidebar__footer {
  position: relative;
  z-index: 12;
  margin-top: 10px;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--td-line);
  overflow: visible;
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.td-sidebar__rail {
  position: absolute;
  top: 12px;
  right: 8px;
  bottom: 12px;
  width: var(--td-sidebar-rail-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.td-sidebar__rail .td-sidebar-rail__btn,
.td-sidebar__rail .td-sidebar-rail__account summary {
  pointer-events: auto;
}

.td-sidebar-rail__btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--td-line);
  border-radius: 11px;
  background: #fffdf8;
  color: var(--td-ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.td-sidebar-rail__btn:hover {
  border-color: var(--td-line-strong);
  background: #fff6e8;
}

.td-sidebar-rail__glyph {
  width: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.td-sidebar-rail__glyph::before {
  content: "◂";
  font-size: 0.76rem;
  line-height: 1;
}

.td-sidebar-rail__account {
  position: relative;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.2s ease;
  transition-delay: 0s;
}

.td-sidebar-rail__account summary {
  list-style: none;
}

.td-sidebar-rail__account summary::-webkit-details-marker {
  display: none;
}

.td-sidebar-rail__account .td-popover__menu {
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 8px);
  margin-top: 0;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  z-index: 3300;
}

.td-sidebar-rail__initials,
.td-sidebar-rail__account-glyph {
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.td-sidebar__guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

.td-sidebar__guest-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
  justify-content: center;
}

.td-sidebar-account {
  display: block;
  width: 100%;
}

.td-sidebar-account summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
}

.td-sidebar-account__identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.td-sidebar-account__avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--td-brand-100);
  color: var(--td-brand-900);
  font-size: 0.74rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.td-sidebar-account__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.td-sidebar-account__text strong {
  color: var(--td-ink-900);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-sidebar-account__text small {
  color: var(--td-ink-500);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-sidebar-account .td-popover__menu {
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 8px);
  margin-top: 0;
  width: 100%;
  min-width: 100%;
}

.td-sidebar-account__chevron {
  width: 18px;
  height: 18px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--td-ink-500);
  background: #fffdf8;
  flex: 0 0 auto;
}

.td-sidebar-account__chevron::before {
  content: "▾";
  font-size: 0.62rem;
  line-height: 1;
}

.td-sidebar-account[open] .td-sidebar-account__chevron {
  background: var(--td-brand-100);
  border-color: var(--td-brand-300);
  color: var(--td-brand-900);
}

.td-sidebar-account[open] .td-sidebar-account__chevron::before {
  content: "▴";
}

.td-nav-section__title {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--td-ink-500);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 800;
}

.td-nav-section--quick-actions {
  margin: 2px 2px 0;
  padding: 10px 8px 8px;
  border: 1px solid rgba(201, 133, 43, 0.16);
  border-radius: calc(var(--td-radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96) 0%, rgba(246, 239, 226, 0.92) 100%);
  box-shadow: 0 10px 20px rgba(75, 50, 22, 0.05);
}

.td-nav-section--quick-actions.active {
  border-color: rgba(82, 122, 45, 0.26);
  box-shadow: 0 12px 24px rgba(75, 50, 22, 0.08);
}

.td-nav-section--quick-actions .td-nav-section__prompt {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 10px 10px;
  padding: 0.65rem 0.7rem;
  border: 1px dashed rgba(201, 133, 43, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--td-ink-500);
  font-size: 0.76rem;
  line-height: 1.35;
}

.td-nav-section--quick-actions .td-nav-section__prompt-icon {
  width: 1.1rem;
  flex: 0 0 auto;
  color: var(--td-accent-600);
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.td-nav-section--quick-actions .td-nav-section__subtitle {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--td-brand-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6rem;
  font-weight: 800;
}

.td-nav-section--quick-actions .td-nav-section__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: var(--td-brand-900);
  padding: 0 10px;
}

.td-nav-section--quick-actions .td-nav-section__title::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--td-accent);
  box-shadow: 0 0 0 4px rgba(201, 133, 43, 0.14);
  flex: 0 0 auto;
}

.td-nav-section--quick-actions .td-nav-list {
  gap: 5px;
}

.td-nav-section--quick-actions .td-nav-list--pinned {
  margin-bottom: 8px;
}

.td-nav-section--quick-actions .td-nav-section__pinned-block + .td-nav-section__pinned-block {
  margin-top: 2px;
}

.td-nav-section--quick-actions .td-quick-action-dropdown__toggle {
  width: calc(100% - 20px);
  margin: 0 10px;
  padding: 0.7rem 0.8rem;
  border: 1px dashed rgba(201, 133, 43, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--td-brand-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.td-nav-section--quick-actions .td-quick-action-dropdown__toggle:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(201, 133, 43, 0.34);
}

.td-nav-section--quick-actions .td-quick-action-dropdown__toggle[aria-expanded="true"] {
  border-color: rgba(82, 122, 45, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.td-nav-section--quick-actions .td-quick-action-dropdown__toggle .td-nav-section__subtitle {
  margin: 0;
  padding: 0;
}

.td-nav-section--quick-actions .td-quick-action-dropdown__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.td-nav-section--quick-actions .td-quick-action-dropdown__count {
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  background: rgba(201, 133, 43, 0.14);
  color: var(--td-brand-900);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.td-nav-section--quick-actions .td-quick-action-dropdown__chevron {
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.td-nav-section--quick-actions .td-quick-action-dropdown__toggle[aria-expanded="true"] .td-quick-action-dropdown__chevron {
  transform: rotate(180deg);
}

.td-nav-section--quick-actions .td-quick-action-dropdown__panel {
  margin-top: 8px;
}

.td-nav-section--quick-actions .td-quick-action-shortcut__more {
  margin: 4px 10px 0;
  padding: 0.55rem 0.7rem;
  border: 1px dashed rgba(201, 133, 43, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--td-brand-900);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.td-nav-section--quick-actions .td-quick-action-shortcut__more:hover {
  border-color: rgba(166, 102, 32, 0.35);
  background: #fff3df;
  transform: translateY(-1px);
}

.td-nav-section--quick-actions.active .td-nav-section__title::before {
  box-shadow: 0 0 0 4px rgba(82, 122, 45, 0.14);
}

.td-nav-section--quick-actions .td-nav-section__count {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(82, 122, 45, 0.18);
  border-radius: 999px;
  background: rgba(82, 122, 45, 0.08);
  color: var(--td-brand-700);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.td-nav-section--quick-actions .td-nav-section__fixed-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 10px 12px;
  margin: 0 10px 10px;
}

.td-nav-section--quick-actions .td-quick-fixed-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  gap: 0;
  justify-self: center;
  aspect-ratio: 1 / 1;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.td-nav-section--quick-actions .td-quick-fixed-action .td-nav-item__icon {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--td-brand-700);
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(75, 50, 22, 0.12));
  transition: color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.td-nav-section--quick-actions .td-quick-fixed-action .td-nav-item__icon svg {
  width: 16px;
  height: 16px;
}

.td-nav-section--quick-actions .td-quick-fixed-action:hover .td-nav-item__icon,
.td-nav-section--quick-actions .td-quick-fixed-action.is-active .td-nav-item__icon {
  color: var(--td-brand-700);
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(75, 50, 22, 0.18));
}

.td-nav-section--quick-actions .td-quick-fixed-action.is-active .td-nav-item__icon {
  color: var(--td-brand-700);
}

.td-nav-section--quick-actions .td-quick-fixed-action:hover,
.td-nav-section--quick-actions .td-quick-fixed-action.is-active {
  background: transparent;
  box-shadow: none;
  border: 0;
  transform: none;
  padding: 0;
  min-height: 0;
}

.td-inline-tooltip {
  position: relative;
}

.td-inline-tooltip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: normal;
  min-width: 140px;
  max-width: min(280px, 70vw);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(42, 33, 20, 0.94);
  color: #fffdf8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 8px 18px rgba(42, 33, 20, 0.18);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 20;
}

.td-inline-tooltip[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  width: 8px;
  height: 8px;
  transform: translateX(-50%) translateY(4px) rotate(45deg);
  background: rgba(42, 33, 20, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 19;
}

.td-inline-tooltip[data-tooltip]:hover::after,
.td-inline-tooltip[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.td-inline-tooltip[data-tooltip]:hover::before,
.td-inline-tooltip[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.td-sidebar-tooltip {
  position: fixed;
  display: inline-flex;
  align-items: center;
  min-width: 140px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(42, 33, 20, 0.96);
  color: #fffdf8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 20px rgba(42, 33, 20, 0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 3200;
}

.td-sidebar-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.td-sidebar-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(42, 33, 20, 0.96);
}

.td-sidebar-tooltip[data-placement="right"]::after {
  left: -4px;
}

.td-sidebar-tooltip[data-placement="left"]::after {
  right: -4px;
}

.td-topbar-tooltip {
  position: fixed;
  display: inline-flex;
  align-items: center;
  min-width: 140px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 0.42rem 0.58rem;
  border-radius: 8px;
  background: rgba(42, 33, 20, 0.96);
  color: #fffdf8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 20px rgba(42, 33, 20, 0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 3400;
}

.td-topbar-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.td-topbar-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(42, 33, 20, 0.96);
}

.td-topbar-tooltip[data-placement="bottom"]::after {
  top: -4px;
}

.td-topbar-tooltip[data-placement="top"]::after {
  bottom: -4px;
}

.td-description-assistant__text {
  white-space: pre-line;
}

.td-nav-section--quick-actions .td-nav-item {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 133, 43, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.td-nav-section--quick-actions .td-nav-item:hover {
  background: #fff4df;
}

.td-nav-section--quick-actions .td-nav-item.is-active {
  background: #fff0cc;
  box-shadow: inset 3px 0 0 var(--td-accent);
}

.td-nav-section--quick-actions .td-nav-item__icon {
  border-color: rgba(201, 133, 43, 0.18);
  background: rgba(255, 250, 241, 0.96);
  color: var(--td-accent-600);
}

.td-nav-section--quick-actions .td-nav-item:hover .td-nav-item__icon {
  border-color: rgba(166, 102, 32, 0.4);
  background: #fff6e6;
  color: var(--td-accent-600);
}

.td-nav-section--quick-actions .td-nav-item.is-active .td-nav-item__icon {
  border-color: rgba(166, 102, 32, 0.5);
  background: #ffe7b8;
  color: var(--td-accent-600);
}

.td-nav-section--quick-actions.active .td-nav-section__prompt {
  border-color: rgba(82, 122, 45, 0.18);
  color: var(--td-brand-900);
}

.td-quick-action-shortcut {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.td-quick-action-shortcut__link {
  flex: 1 1 auto;
  min-width: 0;
}

.td-quick-action-shortcut__metric {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(201, 133, 43, 0.1);
  color: var(--td-accent-600);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.td-quick-action-shortcut__remove {
  width: 32px;
  min-width: 32px;
  border: 1px solid rgba(201, 133, 43, 0.16);
  border-radius: var(--td-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--td-ink-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.td-quick-action-shortcut__remove:hover {
  border-color: rgba(166, 102, 32, 0.35);
  background: #fff3df;
  color: var(--td-accent-600);
  transform: translateY(-1px);
}

.td-shortcut-pin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.td-shortcut-pin-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.td-shortcut-pin-toggle.is-active {
  background: var(--td-brand-100);
  border-color: rgba(82, 122, 45, 0.22);
  color: var(--td-brand-900);
}

.td-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.td-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--td-radius);
  color: var(--td-ink-700);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.td-nav-item__icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddccb0;
  background: #fffaf1;
  color: var(--td-ink-500);
  flex: 0 0 auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.td-nav-item__icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-nav-item:hover {
  background: var(--td-muted);
  color: var(--td-brand-900);
}

.td-nav-item.is-active {
  background: var(--td-brand-100);
  color: var(--td-brand-900);
  box-shadow: inset 3px 0 0 var(--td-brand-700);
}

.td-nav-item:hover .td-nav-item__icon {
  border-color: #aac183;
  background: #f1f6e7;
  color: var(--td-brand-700);
}

.td-nav-item.is-active .td-nav-item__icon {
  border-color: var(--td-brand-700);
  background: #e5eed5;
  color: var(--td-brand-700);
}

.td-nav-item__label {
  font-size: 0.84rem;
  font-weight: 700;
}

.td-nav-item__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--td-brand-700);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.td-topbar {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fffaf1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.td-topbar__left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

@media (min-width: 992px) {
  body.td-sidebar-collapsed .td-shell {
    grid-template-columns: var(--td-sidebar-collapsed-width) minmax(0, 1fr);
  }

  body.td-sidebar-collapsed .td-sidebar {
    width: var(--td-sidebar-collapsed-width);
    min-width: var(--td-sidebar-collapsed-width);
    transform: translateX(0);
    padding: 12px 4px;
  }

  body:not(.td-sidebar-collapsed) .td-sidebar__brand,
  body:not(.td-sidebar-collapsed) .td-sidebar__nav,
  body:not(.td-sidebar-collapsed) .td-sidebar__footer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity 0.2s ease, transform 0.24s ease;
    transition-delay: 0.04s;
  }

  body.td-sidebar-collapsed .td-sidebar__brand,
  body.td-sidebar-collapsed .td-sidebar__footer {
    display: none;
  }

  body.td-sidebar-collapsed .td-sidebar__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    gap: 12px;
    padding-top: 56px;
    transition: opacity 0.2s ease, transform 0.24s ease;
    transition-delay: 0.04s;
  }

  body.td-sidebar-collapsed .td-main {
    transform: translateX(-6px);
    opacity: 0.995;
  }

  body.td-sidebar-collapsed .td-nav-section {
    margin: 0;
  }

  body.td-sidebar-collapsed .td-nav-section__title,
  body.td-sidebar-collapsed .td-nav-section__subtitle,
  body.td-sidebar-collapsed .td-nav-section__prompt,
  body.td-sidebar-collapsed .td-nav-section__count,
  body.td-sidebar-collapsed .td-nav-section__pinned-block,
  body.td-sidebar-collapsed .td-quick-action-dropdown__toggle,
  body.td-sidebar-collapsed .td-quick-action-shortcut__more {
    display: none !important;
  }

  body.td-sidebar-collapsed .td-nav-list {
    gap: 10px;
  }

  body.td-sidebar-collapsed .td-nav-item {
    justify-content: center;
    gap: 0;
    width: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0 auto;
    border-radius: 999px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body.td-sidebar-collapsed .td-nav-item:hover,
  body.td-sidebar-collapsed .td-nav-item:focus-visible {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: none;
  }

  body.td-sidebar-collapsed .td-nav-item.is-active {
    background: rgba(229, 238, 213, 0.45);
    box-shadow: inset 0 0 0 1px rgba(82, 122, 45, 0.18);
  }

  body.td-sidebar-collapsed .td-nav-item__icon {
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 999px;
  }

  body.td-sidebar-collapsed .td-nav-item__label,
  body.td-sidebar-collapsed .td-nav-item__badge {
    display: none;
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-nav-list {
    gap: 10px;
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-nav-section__fixed-actions {
    grid-template-columns: 1fr;
    margin: 0;
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-quick-fixed-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 999px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-quick-fixed-action:hover,
  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-quick-fixed-action:focus-visible {
    background: rgba(255, 255, 255, 0.4);
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-quick-fixed-action.is-active {
    background: rgba(255, 240, 204, 0.45);
    box-shadow: inset 0 0 0 1px rgba(201, 133, 43, 0.16);
  }

  body.td-sidebar-collapsed .td-nav-section--quick-actions .td-quick-fixed-action .td-nav-item__icon {
    width: 24px;
    height: 24px;
  }

  body.td-sidebar-collapsed .td-sidebar-rail__glyph::before {
    content: "▸";
  }

  body.td-sidebar-collapsed .td-sidebar-rail__account {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0.14s;
  }

  body.td-sidebar-collapsed .td-theme-switcher {
    box-shadow: none;
  }

  body.td-sidebar-collapsed .td-theme-switcher--sidebar {
    margin-top: 8px;
    margin-bottom: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.td-sidebar-collapsed .td-theme-switcher__eyebrow {
    display: none;
  }

  body.td-sidebar-collapsed .td-theme-switcher--sidebar .td-theme-switcher__group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.td-sidebar-collapsed .td-theme-switcher--sidebar .td-theme-switcher__option {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0 auto;
    border-radius: 999px;
    background: transparent;
    border-color: rgba(223, 207, 178, 0.9);
  }

  body.td-sidebar-collapsed .td-theme-switcher--sidebar .td-theme-switcher__option:hover,
  body.td-sidebar-collapsed .td-theme-switcher--sidebar .td-theme-switcher__option:focus-visible {
    background: rgba(255, 255, 255, 0.42);
  }

  body.td-sidebar-collapsed .td-theme-switcher--sidebar .td-theme-switcher__icon {
    width: 17px;
    height: 17px;
  }

  body.td-sidebar-collapsed .td-theme-switcher--sidebar .td-theme-switcher__icon svg {
    width: 17px;
    height: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .td-shell,
  .td-sidebar,
  .td-main {
    transition: none !important;
  }
}

.td-topbar__eyebrow {
  color: var(--td-brand-700);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.66rem;
  font-weight: 800;
}

.td-topbar__title {
  margin: 2px 0 0;
  color: var(--td-ink-900);
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.td-topbar__desc {
  margin: 4px 0 0;
  color: var(--td-ink-500);
  font-size: 0.82rem;
  line-height: 1.45;
}

.td-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  padding: 0;
  margin: 7px 0 0;
}

.td-breadcrumb li {
  color: var(--td-ink-500);
  font-size: 0.72rem;
  font-weight: 700;
}

.td-breadcrumb a {
  color: var(--td-brand-700);
  text-decoration: none;
}

.td-breadcrumb a:hover {
  color: var(--td-brand-900);
}

.td-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.td-topbar__signals {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.td-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fbf3e6;
}

.td-metric__label {
  font-size: 0.66rem;
  color: var(--td-ink-500);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.td-metric__value {
  font-size: 0.82rem;
  color: var(--td-ink-900);
  font-weight: 800;
}

.td-popover {
  position: relative;
}

.td-popover summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: var(--td-radius);
  border: 1px solid var(--td-line);
  background: #fff;
  color: var(--td-ink-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.td-popover summary::-webkit-details-marker {
  display: none;
}

.td-popover[open] summary {
  border-color: var(--td-brand-300);
  box-shadow: 0 0 0 3px rgba(82, 122, 45, 0.12);
}

.td-popover__menu {
  position: absolute;
  right: 0;
  margin-top: 6px;
  min-width: 210px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 22px rgba(18, 35, 66, 0.1);
  z-index: 10;
}

.td-popover__meta {
  padding: 7px 8px 8px;
  color: var(--td-ink-500);
  font-size: 0.74rem;
  font-weight: 700;
}

.td-popover__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--td-ink-700);
  border-radius: var(--td-radius-sm);
  padding: 7px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.td-popover__item--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.td-popover__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--td-brand-700);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.td-popover__item:hover {
  background: var(--td-brand-100);
  color: var(--td-brand-900);
}

.td-popover__item--danger {
  color: #b42318;
}

.td-popover__item--with-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.td-popover__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--td-brand-700);
  flex: 0 0 auto;
}

.td-popover__item-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.td-account-menu .td-popover__menu {
  min-width: 260px;
  padding: 8px;
}

.td-account-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.35rem;
}

.td-account-menu__name {
  color: var(--td-ink-900);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.td-account-menu__role {
  color: var(--td-ink-500);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.td-account-menu__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.7rem;
  font-size: 0.82rem;
}

.td-account-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--td-brand-700);
  flex: 0 0 auto;
}

.td-account-menu__icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.td-account-menu__item.td-popover__item--danger .td-account-menu__icon {
  color: #b42318;
}

.td-topbar-notifications {
  position: relative;
  flex: 0 0 auto;
}

.td-topbar-notifications summary {
  list-style: none;
}

.td-topbar-notifications summary::-webkit-details-marker {
  display: none;
}

.td-topbar-notifications__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--td-ink-700);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.td-topbar-notifications__trigger:hover,
.td-topbar-notifications[open] .td-topbar-notifications__trigger {
  border-color: var(--td-brand-300);
  background: var(--td-brand-100);
  color: var(--td-brand-900);
  box-shadow: 0 0 0 3px rgba(82, 122, 45, 0.1);
}

.td-topbar-notifications__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.td-topbar-notifications__icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.td-topbar-notifications__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--td-accent-600);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fffaf1;
}

.td-topbar-notifications__menu {
  min-width: min(390px, calc(100vw - 24px));
  max-width: min(440px, calc(100vw - 32px));
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 122, 45, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.99), rgba(255, 246, 235, 0.99));
}

.td-topbar-notifications__hero {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1rem 0.95rem;
  border-bottom: 1px solid rgba(223, 207, 178, 0.85);
  background:
    radial-gradient(circle at 10% 15%, rgba(82, 122, 45, 0.12), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(201, 133, 43, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(246, 239, 226, 0.98));
}

.td-topbar-notifications__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--td-brand-700);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-topbar-notifications__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--td-success);
  box-shadow: 0 0 0 0.35rem rgba(82, 122, 45, 0.12);
  flex: 0 0 auto;
}

.td-topbar-notifications__live {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(82, 122, 45, 0.1);
  color: var(--td-brand-700);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.td-topbar-notifications__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.td-topbar-notifications__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.td-topbar-notifications__title {
  color: var(--td-ink-900);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.td-topbar-notifications__subtitle {
  color: var(--td-ink-500);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.td-topbar-notifications__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
  max-width: 48%;
}

.td-topbar-notifications__chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(82, 122, 45, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--td-brand-900);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.td-topbar-notifications__chip--muted {
  background: rgba(255, 255, 255, 0.54);
  color: var(--td-ink-500);
}

.td-topbar-notifications__panel {
  padding: 0.85rem 0.85rem 0.75rem;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.td-topbar-notifications__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.05rem 0.1rem 0.55rem;
  color: var(--td-ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.td-topbar-notifications__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.55rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 0 0.1rem 0.2rem 0;
  scrollbar-gutter: stable;
  max-height: min(48vh, 360px);
}

.td-topbar-notifications__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.7rem 0.1rem 0.12rem;
}

.td-topbar-notifications__footer .btn {
  min-width: 0;
}

.td-topbar-notifications__more {
  padding: 0.3rem 0.1rem 0.05rem;
}

.td-topbar-notifications__more-link {
  color: var(--td-brand-700);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.td-topbar-notifications__more-link:hover {
  color: var(--td-brand-900);
}

@keyframes td-spin {
  to {
    transform: rotate(360deg);
  }
}

.td-topbar-peer-rating {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--td-brand-900);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.td-topbar-reputation-score {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--td-brand-900);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.td-topbar-peer-rating:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.td-topbar-reputation-score:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.td-topbar-peer-rating__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
}

.td-topbar-peer-rating__value {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.td-topbar-peer-rating--neutral {
  color: var(--td-ink-600);
}

.td-topbar-peer-rating--positive {
  border-color: rgba(82, 122, 45, 0.18);
  background: rgba(82, 122, 45, 0.08);
  color: var(--td-brand-900);
}

.td-topbar-peer-rating--balanced {
  border-color: rgba(201, 133, 43, 0.18);
  background: rgba(201, 133, 43, 0.1);
  color: #8f5f18;
}

.td-topbar-peer-rating--warning {
  border-color: rgba(201, 133, 43, 0.26);
  background: rgba(255, 244, 214, 0.92);
  color: #7f5310;
}

.td-topbar-peer-rating--danger {
  border-color: rgba(206, 60, 43, 0.22);
  background: rgba(255, 234, 231, 0.95);
  color: #9c2c1f;
}

.td-topbar-reputation-score--neutral {
  color: var(--td-ink-600);
}

.td-topbar-reputation-score--positive {
  border-color: rgba(82, 122, 45, 0.18);
  background: rgba(82, 122, 45, 0.08);
  color: var(--td-brand-900);
}

.td-topbar-reputation-score--balanced {
  border-color: rgba(201, 133, 43, 0.18);
  background: rgba(201, 133, 43, 0.1);
  color: #8f5f18;
}

.td-topbar-reputation-score--warning {
  border-color: rgba(201, 133, 43, 0.26);
  background: rgba(255, 244, 214, 0.92);
  color: #7f5310;
}

.td-topbar-reputation-score--danger {
  border-color: rgba(206, 60, 43, 0.22);
  background: rgba(255, 234, 231, 0.95);
  color: #9c2c1f;
}

.td-peer-ratings-summary {
  position: relative;
  overflow: hidden;
}

.td-peer-ratings-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(82, 122, 45, 0.08), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(201, 133, 43, 0.08), transparent 24%);
}

.td-peer-rating-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(223, 207, 178, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 133, 43, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(251, 247, 239, 0.98));
  box-shadow: 0 8px 18px rgba(18, 35, 66, 0.06);
}

.td-peer-rating-card--contestable {
  border-color: rgba(201, 133, 43, 0.22);
}

.td-peer-rating-card__main {
  flex: 1 1 auto;
  min-width: 0;
}

.td-peer-rating-card__toolbar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.td-peer-rating-card__contest {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(201, 133, 43, 0.24);
  background: rgba(255, 255, 255, 0.74);
}

.td-peer-rating-contest-modal__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.td-peer-rating-contest-modal__summary-chip {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(223, 207, 178, 0.82);
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.9);
}

.td-peer-rating-contest-modal__note {
  padding: 1rem 1.05rem;
  border: 1px dashed rgba(201, 133, 43, 0.22);
  border-radius: 18px;
  background: rgba(255, 248, 235, 0.88);
}

@media (max-width: 767.98px) {
  .td-peer-rating-card {
    flex-direction: column;
  }

  .td-peer-rating-card__toolbar {
    flex-basis: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .td-peer-rating-card__toolbar .btn {
    flex: 1 1 180px;
  }

  .td-peer-rating-contest-modal__summary {
    grid-template-columns: 1fr;
  }
}

.td-live-notification-banner {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 1240;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(396px, calc(100vw - 32px));
  padding: 1rem 1.05rem 1rem 0.95rem;
  border: 1px solid rgba(108, 139, 67, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(183, 217, 126, 0.15), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.985), rgba(247, 243, 231, 0.98));
  color: var(--td-ink-700);
  box-shadow:
    0 24px 54px rgba(18, 35, 66, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.td-live-notification-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.td-live-notification-banner.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.td-live-notification-banner__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--td-brand-500), var(--td-accent-400));
  box-shadow: 0 0 24px rgba(128, 166, 76, 0.32);
}

.td-live-notification-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.32) 34%, rgba(158, 190, 115, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 214, 0.9));
  color: var(--td-brand-800);
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow:
    0 12px 26px rgba(92, 125, 45, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.td-live-notification-banner__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-live-notification-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  min-width: 0;
  flex: 1 1 auto;
}

.td-live-notification-banner__headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.td-live-notification-banner__title {
  color: var(--td-brand-900);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.td-live-notification-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(126, 163, 76, 0.12);
  border: 1px solid rgba(126, 163, 76, 0.18);
  color: var(--td-brand-800);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.td-live-notification-banner__message {
  color: var(--td-ink-600);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.td-live-notification-banner__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--td-ink-500);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 35, 66, 0.08);
  backdrop-filter: blur(8px);
}

.td-live-notification-banner__close:hover {
  background: rgba(82, 122, 45, 0.15);
  color: var(--td-brand-800);
}

.td-admin-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1060;
  margin: 0;
  isolation: isolate;
}

.td-admin-launcher summary {
  list-style: none;
}

.td-admin-launcher summary::-webkit-details-marker {
  display: none;
}

.td-admin-launcher.td-popover summary {
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.32) 0, rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, #5f8b34 0%, #2f4c1b 100%);
  color: #fffaf1;
  font-size: 0;
  font-weight: 700;
  box-shadow:
    0 18px 36px rgba(46, 66, 25, 0.26),
    0 6px 14px rgba(46, 66, 25, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.td-admin-launcher.td-popover[open] summary {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 5px rgba(82, 122, 45, 0.18),
    0 22px 42px rgba(46, 66, 25, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.td-admin-launcher__toggle {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.32) 0, rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, #5f8b34 0%, #2f4c1b 100%);
  color: #fffaf1;
  box-shadow:
    0 18px 36px rgba(46, 66, 25, 0.26),
    0 6px 14px rgba(46, 66, 25, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.td-admin-launcher__toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(46, 66, 25, 0.3),
    0 8px 18px rgba(46, 66, 25, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.td-admin-launcher__toggle:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 5px rgba(82, 122, 45, 0.22),
    0 18px 36px rgba(46, 66, 25, 0.26);
}

.td-admin-launcher__pulse {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f2b84b;
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.2);
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__pulse {
  background: #bfe38d;
  box-shadow: 0 0 0 4px rgba(191, 227, 141, 0.18);
}

.td-admin-launcher__icon {
  width: 1.18rem;
  height: 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(22, 34, 13, 0.18));
  transition: transform 0.2s ease;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__icon {
  transform: rotate(45deg) scale(0.96);
}

.td-admin-launcher__icon svg,
.td-admin-launcher__glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-admin-launcher__menu {
  right: 0;
  left: auto;
  bottom: calc(100% + 12px);
  top: auto;
  margin-top: 0;
  min-width: unset;
  width: auto;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  border: 1px solid rgba(82, 122, 45, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.44) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(255, 246, 232, 0.98));
  box-shadow:
    0 24px 46px rgba(75, 50, 22, 0.16),
    0 8px 18px rgba(75, 50, 22, 0.1);
  overflow: visible;
  backdrop-filter: blur(10px);
}

.td-admin-launcher .td-inline-tooltip[data-tooltip]::after {
  left: auto;
  right: calc(100% + 12px);
  top: 50%;
  bottom: auto;
  min-width: 112px;
  max-width: min(220px, 58vw);
  text-align: center;
  transform: translateX(4px) translateY(-50%);
}

.td-admin-launcher .td-inline-tooltip[data-tooltip]::before {
  left: auto;
  right: calc(100% + 7px);
  top: 50%;
  bottom: auto;
  transform: translateX(4px) translateY(-50%) rotate(45deg);
}

.td-admin-launcher .td-inline-tooltip[data-tooltip]:hover::after,
.td-admin-launcher .td-inline-tooltip[data-tooltip]:focus-visible::after {
  transform: translateX(0) translateY(-50%);
}

.td-admin-launcher .td-inline-tooltip[data-tooltip]:hover::before,
.td-admin-launcher .td-inline-tooltip[data-tooltip]:focus-visible::before {
  transform: translateX(0) translateY(-50%) rotate(45deg);
}

.td-admin-launcher__item {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid rgba(82, 122, 45, 0.16);
  color: var(--td-brand-800);
  box-shadow:
    0 14px 28px rgba(75, 50, 22, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(6px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__item {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__item:nth-child(1) {
  transition-delay: 0.02s;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__item:nth-child(2) {
  transition-delay: 0.05s;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__item:nth-child(3) {
  transition-delay: 0.08s;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__item:nth-child(4) {
  transition-delay: 0.11s;
}

.td-admin-launcher.td-popover[open] .td-admin-launcher__item:nth-child(5) {
  transition-delay: 0.14s;
}

.td-admin-launcher__item:hover,
.td-admin-launcher__item.is-active {
  background: #edf4df;
  border-color: rgba(82, 122, 45, 0.34);
  color: var(--td-brand-700);
  transform: translateY(-2px) scale(1);
  box-shadow:
    0 18px 34px rgba(75, 50, 22, 0.16),
    0 0 0 4px rgba(82, 122, 45, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.td-admin-launcher__item.is-active {
  background: linear-gradient(145deg, #edf4df 0%, #dfeccc 100%);
}

.td-script-launcher-pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #24180f 0%, #1b120c 100%);
  color: #f8f0e4;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.td-script-otp-panel {
  border: 1px solid rgba(191, 160, 98, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 227, 141, 0.08), transparent 38%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf1 100%);
}

.td-script-otp-panel .progress {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(191, 160, 98, 0.18);
  overflow: hidden;
}

.td-script-otp-panel .progress-bar {
  border-radius: inherit;
  transition: width 0.35s ease;
}

.td-script-otp-panel.is-expired {
  border-color: rgba(197, 86, 58, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 86, 58, 0.08), transparent 38%),
    linear-gradient(180deg, #fff8f6 0%, #fff4f1 100%);
}

.td-script-otp-panel.is-expired .progress-bar {
  background: linear-gradient(90deg, #d66a49 0%, #b54d31 100%);
}

.td-script-otp-panel .btn-light-secondary {
  white-space: nowrap;
}

.td-script-launcher__run-button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  color: var(--td-ink-500);
  background: #fffdf8;
  border-color: var(--td-line);
  box-shadow: none;
  transition:
    color 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.td-script-launcher__run-button:hover,
.td-script-launcher__run-button:focus,
.td-script-launcher__run-button:focus-visible {
  color: var(--td-ink-700);
  background: #fff7ea;
  border-color: var(--td-line-strong);
  box-shadow: none;
}

.td-script-launcher__run-button svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.td-admin-launcher__glyph {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.td-code-panel {
  max-height: 420px;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background: #1f160f;
  color: #f8ead4;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.td-confirm-open {
  overflow: hidden;
}

.td-confirm[hidden] {
  display: none;
}

.td-confirm {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.td-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 12, 0.58);
  backdrop-filter: blur(6px);
}

.td-confirm__panel {
  position: relative;
  width: min(100% - 32px, 420px);
  margin: min(14vh, 96px) auto 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98) 0%, rgba(246, 239, 226, 0.98) 100%);
  box-shadow: 0 22px 48px rgba(25, 18, 10, 0.24);
  color: var(--td-ink-700);
}

.td-confirm__kicker {
  margin-bottom: 0.55rem;
  color: var(--td-brand-700);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.td-confirm__title {
  margin: 0;
  color: var(--td-ink-900);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
}

.td-confirm__message {
  margin: 0.85rem 0 0;
  color: var(--td-ink-500);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.td-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.td-confirm__actions .btn {
  min-width: 108px;
}

.td-modal-open {
  overflow: hidden;
}

.td-modal[hidden] {
  display: none;
}

.td-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.td-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 12, 0.58);
  backdrop-filter: blur(6px);
}

.td-modal__panel {
  position: relative;
  width: min(100% - 32px, 760px);
  margin: 0;
  border: 1px solid var(--td-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.98) 0%, rgba(246, 239, 226, 0.98) 100%);
  box-shadow: 0 22px 48px rgba(25, 18, 10, 0.24);
  color: var(--td-ink-700);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.td-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--td-line);
}

.td-modal__kicker {
  margin-bottom: 0.45rem;
  color: var(--td-brand-700);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.td-modal__title {
  margin: 0;
  color: var(--td-ink-900);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}

.td-modal__subtitle {
  margin: 0.45rem 0 0;
  color: var(--td-ink-500);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.td-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--td-ink-700);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.td-modal__close:hover {
  background: rgba(255, 255, 255, 0.96);
}

.td-modal__body {
  padding: 1.25rem;
  overflow: auto;
}

.td-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--td-line);
}

.td-modal__footer .btn {
  min-width: 120px;
}

.td-invite-picker {
  position: relative;
}

.td-invite-picker__control {
  min-height: 54px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--td-line-strong);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.td-invite-picker__control:focus-within {
  border-color: var(--td-brand-500);
  box-shadow: 0 0 0 0.2rem rgba(96, 135, 56, 0.16);
}

.td-invite-picker__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.td-invite-picker__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.34rem 0.45rem 0.34rem 0.65rem;
  border: 1px solid rgba(96, 135, 56, 0.28);
  border-radius: 999px;
  background: rgba(235, 246, 222, 0.92);
  color: var(--td-brand-800);
  font-size: 0.78rem;
  font-weight: 800;
}

.td-invite-picker__tag.is-email {
  border-color: rgba(198, 134, 28, 0.3);
  background: rgba(255, 240, 205, 0.92);
  color: #8a5b12;
}

.td-invite-picker__remove {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 26, 18, 0.1);
  color: inherit;
  font-weight: 900;
  line-height: 1;
}

.td-invite-picker__remove:hover {
  background: rgba(31, 26, 18, 0.18);
}

.td-invite-picker__input {
  min-width: 220px;
  flex: 1 1 220px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--td-ink-900);
  font: inherit;
  font-weight: 700;
}

.td-invite-picker__input::placeholder {
  color: var(--td-ink-400);
}

.td-invite-picker__suggestions {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 36px rgba(28, 21, 12, 0.16);
}

.td-invite-picker__suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(204, 182, 145, 0.3);
  background: transparent;
  color: var(--td-ink-900);
  text-align: left;
  font-weight: 800;
}

.td-invite-picker__suggestion:last-child {
  border-bottom: 0;
}

.td-invite-picker__suggestion small {
  color: var(--td-ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.td-invite-picker__suggestion:hover,
.td-invite-picker__suggestion:focus-visible {
  background: rgba(235, 246, 222, 0.75);
}

.td-invite-picker__suggestion.is-external {
  color: #8a5b12;
}

@media (max-width: 576px) {
  .td-modal__panel {
    width: calc(100% - 16px);
    margin: 8px auto 0;
    border-radius: 16px;
    max-height: calc(100vh - 16px);
  }

  .td-modal__header {
    padding: 1rem 1rem 0.85rem;
    gap: 0.75rem;
  }

  .td-modal__body {
    padding: 1rem;
  }

  .td-modal__footer {
    padding: 0.85rem 1rem 1rem;
    gap: 0.5rem;
  }

  .td-modal__footer .btn {
    min-width: 0;
    width: 100%;
  }

  .td-modal__title {
    font-size: 1rem;
  }

  .td-modal__subtitle {
    font-size: 0.8rem;
  }

  .td-agreement-deal-context .card-header {
    padding-top: 0.85rem !important;
    padding-bottom: 0.45rem !important;
  }

  .td-agreement-deal-context .card-body {
    padding-top: 0.6rem !important;
    padding-bottom: 0.7rem !important;
  }

  .td-agreement-deal-context .badge {
    font-size: 0.64rem;
    padding: 0.24rem 0.45rem;
  }

  .td-agreement-deal-context .td-agreement-deal-context__loading {
    padding: 0;
  }

  .timeline .timeline-item {
    margin-bottom: 0.5rem;
  }

  .timeline .timeline-content {
    margin-top: -0.25rem;
  }
}

.td-notification-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
}

.td-notification-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 0.85rem 0.82rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(223, 207, 178, 0.92);
  border-left: 4px solid rgba(201, 133, 43, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 122, 45, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 247, 0.94));
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(75, 50, 22, 0.05);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.td-notification-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(82, 122, 45, 0.12), transparent 30%);
  opacity: 0.28;
  pointer-events: none;
}

.td-notification-preview--unread {
  border-left-color: var(--td-brand-700);
  border-color: rgba(154, 170, 110, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 122, 45, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(237, 244, 223, 0.88));
  box-shadow: 0 10px 18px rgba(82, 122, 45, 0.08);
}

.td-notification-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 133, 43, 0.38);
  box-shadow: 0 12px 22px rgba(75, 50, 22, 0.09);
}

.td-notification-preview__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.td-notification-preview__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.td-notification-preview__type {
  flex: 0 0 auto;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.td-notification-preview__time {
  flex: 0 0 auto;
  color: var(--td-ink-500);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.td-notification-preview__title {
  color: var(--td-ink-900);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.28;
}

.td-notification-preview__title:hover {
  color: var(--td-brand-700);
}

.td-notification-preview__message {
  color: var(--td-ink-700);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.42;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.td-notification-preview__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.05rem;
}

.td-notification-preview__status {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: rgba(82, 122, 45, 0.1);
  color: var(--td-brand-900);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.td-notification-preview__status.is-read {
  background: rgba(103, 120, 153, 0.1);
  color: var(--td-ink-500);
}

.td-notification-preview__open-hint {
  color: var(--td-brand-700);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.td-content {
  padding: 16px 24px 24px;
  width: 100%;
  max-width: 1720px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: clip;
}

.td-content>.row {
  margin-right: 0;
  margin-left: 0;
}

.td-notification-card {
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background: var(--td-panel);
  padding: 1rem 1.1rem;
  box-shadow: var(--td-shadow);
}

.td-action-card {
  --td-action-card-toolbar-space: 4.75rem;
  position: relative;
}

.td-notification-card.td-action-card {
  --td-action-card-toolbar-space: 20rem;
}

.td-group-card.td-action-card {
  --td-action-card-toolbar-space: 15.5rem;
}

.td-action-card__body {
  min-width: 0;
  padding-right: var(--td-action-card-toolbar-space);
}

.td-action-card__toolbar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: calc(100% - 2rem);
}

.td-action-card__toolbar form,
.td-action-card__toolbar .btn-icon {
  flex: 0 0 auto;
}

.td-action-card__toolbar .td-follow-button {
  flex: 0 0 auto;
}

.td-action-card__toolbar .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.td-follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-radius: 999px;
}

.td-follow-button--unfollow {
  background: rgba(233, 176, 73, 0.12);
  border-color: rgba(233, 176, 73, 0.45);
  color: #8a5a16;
}

.td-follow-button--unfollow:hover,
.td-follow-button--unfollow:focus-visible {
  background: rgba(233, 176, 73, 0.18);
  border-color: rgba(233, 176, 73, 0.62);
  color: #6f4711;
}

.td-follow-button--follow {
  background: rgba(82, 122, 45, 0.12);
  border-color: rgba(82, 122, 45, 0.42);
  color: var(--td-brand-700);
}

.td-follow-button--follow:hover,
.td-follow-button--follow:focus-visible {
  background: rgba(82, 122, 45, 0.18);
  border-color: rgba(82, 122, 45, 0.62);
  color: var(--td-brand-600);
}

.td-group-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.td-group-button--join {
  background: rgba(82, 122, 45, 0.12);
  border-color: rgba(82, 122, 45, 0.42);
  color: var(--td-brand-700);
}

.td-group-button--join:hover,
.td-group-button--join:focus-visible {
  background: rgba(82, 122, 45, 0.18);
  border-color: rgba(82, 122, 45, 0.62);
  color: var(--td-brand-600);
}

.td-group-button--leave {
  background: rgba(233, 176, 73, 0.12);
  border-color: rgba(233, 176, 73, 0.45);
  color: #8a5a16;
}

.td-group-button--leave:hover,
.td-group-button--leave:focus-visible {
  background: rgba(233, 176, 73, 0.18);
  border-color: rgba(233, 176, 73, 0.62);
  color: #6f4711;
}

.td-group-button--decline {
  background: rgba(201, 47, 47, 0.1);
  border-color: rgba(201, 47, 47, 0.35);
  color: #a32626;
}

.td-group-button--decline:hover,
.td-group-button--decline:focus-visible {
  background: rgba(201, 47, 47, 0.16);
  border-color: rgba(201, 47, 47, 0.55);
  color: #7c1f1f;
}

.td-follow-button .svg-icon {
  flex: 0 0 auto;
}

.td-follow-button__label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.td-action-card__date {
  white-space: nowrap;
}

.td-action-card__details {
  margin-top: 1rem;
}

.badge.td-trust-badge-compact {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  line-height: 1.1;
  background: var(--td-muted);
  color: var(--td-ink-500);
  border: 1px solid var(--td-line);
}

@media (max-width: 991.98px) {
  .td-action-card__body {
    padding-right: 0;
  }

  .td-action-card__toolbar {
    position: static;
    margin-top: 1rem;
  }

  .td-follow-button {
    width: auto;
  }

  .td-action-card__date {
    margin-right: auto;
  }
}

.td-notification-card--unread {
  border-color: var(--td-brand-300);
  box-shadow: 0 0 0 1px rgba(82, 122, 45, 0.16), var(--td-shadow);
}

.td-main-footer {
  margin: 0 24px 16px;
  padding: 12px;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 95% 10%, rgba(82, 122, 45, 0.09), transparent 35%),
    #fffaf1;
}

.td-main-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  color: var(--td-ink-500);
  font-size: 0.75rem;
  font-weight: 700;
}

.td-main-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.td-main-footer__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.td-main-footer__brand strong {
  display: block;
  color: var(--td-ink-900);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.td-main-footer__brand span {
  display: block;
  margin-top: 2px;
  color: var(--td-ink-500);
  font-size: 0.72rem;
  line-height: 1.3;
}

.td-main-footer__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-main-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  color: var(--td-brand-700);
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 800;
  background: #fffdf8;
}

.td-main-footer__nav a:hover {
  color: var(--td-brand-900);
  border-color: var(--td-line-strong);
  background: #fff6e8;
}

.td-main-footer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--td-ink-500);
  white-space: nowrap;
}

.td-main-footer__dot {
  color: var(--td-ink-300);
}

.td-theme-switcher {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 18px 36px rgba(75, 50, 22, 0.12);
  backdrop-filter: blur(16px);
}

.td-theme-switcher--sidebar {
  position: static;
  z-index: auto;
  min-width: 0;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 8px;
}

.td-theme-switcher--sidebar .td-theme-switcher__group {
  gap: 4px;
}

.td-theme-switcher--sidebar .td-theme-switcher__option {
  gap: 0;
  min-height: 40px;
  padding: 0.55rem 0;
  border-radius: 10px;
  font-size: 0;
  line-height: 0;
}

.td-theme-switcher--sidebar .td-theme-switcher__icon {
  width: 16px;
  height: 16px;
}

.td-theme-switcher--sidebar .td-theme-switcher__icon svg {
  width: 16px;
  height: 16px;
}

.td-theme-switcher__eyebrow {
  color: var(--td-ink-500);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.td-theme-switcher__group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.td-theme-switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--td-ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.td-theme-switcher__option:hover {
  border-color: var(--td-line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--td-ink-900);
  transform: translateY(-1px);
}

.td-theme-switcher__option.is-active {
  border-color: rgba(82, 122, 45, 0.3);
  background: var(--td-brand-100);
  color: var(--td-brand-900);
  box-shadow: inset 0 0 0 1px rgba(82, 122, 45, 0.08);
}

.td-theme-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.td-theme-switcher__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--td-brand-700);
  border-color: var(--td-brand-700);
}

.btn-primary:hover {
  background: var(--td-brand-600);
  border-color: var(--td-brand-600);
}

.td-auth-hero,
.td-auth-hero__panel {
  background-image: none !important;
}

.td-auth-hero {
  background: var(--td-brand-900);
}

.td-auth-hero__logo {
  height: 46px;
}

.td-inline-icon,
.td-search-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--td-radius-sm);
  border: 1px solid rgba(82, 122, 45, 0.26);
  background: rgba(82, 122, 45, 0.1);
  color: var(--td-brand-700);
  font-size: 0.84rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.td-opportunity-search__icon,
.td-admin-users-field__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  line-height: 0;
  color: var(--td-ink-500);
}

.td-opportunity-search__icon svg,
.td-admin-users-field__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.svg-icon,
.svg-icon-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
  color: inherit;
}

.svg-icon svg,
.svg-icon-2 svg {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-opportunity-search__icon {
  pointer-events: none;
}

.td-moderation-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.td-moderation-filter-actions .btn {
  min-width: 132px;
}

.td-workspace-search {
  min-width: 0;
}

.td-workspace-search__field {
  min-width: 0;
  width: min(100%, 560px);
  max-width: 560px;
}

.td-admin-users-filter-form,
.td-moderation-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.td-admin-users-filter-head,
.td-moderation-filter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.td-admin-users-filter-fields,
.td-moderation-filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 1rem;
  align-items: end;
}

.td-admin-users-search,
.td-moderation-filter-field--search {
  grid-column: 1 / -1;
}

.td-admin-users-field,
.td-moderation-filter-field {
  min-width: 0;
}

.td-admin-users-field__control,
.td-admin-users-filter-control,
.td-moderation-filter-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.td-admin-users-field__control .form-select,
.td-admin-users-field__control .form-control,
.td-admin-users-filter-control .form-select,
.td-admin-users-filter-control .form-control,
.td-moderation-filter-control .form-select,
.td-moderation-filter-control .form-control {
  min-width: 0;
  width: 100%;
}

.td-admin-users-filter-actions,
.td-moderation-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.td-admin-users-filter-actions .btn,
.td-moderation-filter-actions .btn {
  min-width: 0;
}

.td-admin-users-listbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
}

.td-admin-users-listbar > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.td-admin-users-filter-control--compact {
  min-width: 0;
}

.td-admin-users-filter-control--compact .form-select {
  width: min(100%, 120px);
  min-width: 0;
}

.td-moderation-filter-control--compact .form-select {
  width: min(100%, 120px);
  min-width: 0;
}

.td-admin-users-select--sort,
.td-moderation-select--sort,
.td-admin-analytics-retention {
  width: min(100%, 240px);
  min-width: 0;
}

.td-admin-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.td-admin-analytics-actions > * {
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .td-workspace-search__field {
    width: 100%;
    max-width: none;
  }

  .td-admin-users-filter-fields,
  .td-moderation-filter-fields {
    grid-template-columns: 1fr;
  }

  .td-admin-users-filter-actions,
  .td-moderation-filter-actions {
    justify-content: stretch;
  }

  .td-admin-users-filter-actions .btn,
  .td-moderation-filter-actions .btn {
    flex: 1 1 180px;
  }

  .td-admin-users-listbar {
    align-items: stretch;
  }

  .td-admin-users-listbar > div {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .td-admin-analytics-actions {
    justify-content: stretch;
  }

  .td-admin-analytics-actions > * {
    flex: 1 1 160px;
  }
}

@media (max-width: 767.98px) {
  .td-page-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .td-page-hero__actions .btn {
    width: 100% !important;
  }

  .td-topbar__signals {
    width: 100%;
    justify-content: flex-start;
  }

  .td-topbar__right {
    align-items: stretch;
  }

  .td-admin-analytics-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .td-admin-analytics-actions > * {
    width: 100%;
  }

  .td-admin-users-filter-control--compact .form-select,
  .td-moderation-filter-control--compact .form-select,
  .td-admin-users-select--sort,
  .td-moderation-select--sort,
  .td-admin-analytics-retention {
    width: 100%;
  }
}

.td-inline-icon--light {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.td-action-menu {
  position: relative;
  z-index: 9999;
  overflow: visible;
}

.td-action-menu summary {
  list-style: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius-sm);
  background: #fff;
  color: var(--td-ink-700);
}

.td-action-menu summary::-webkit-details-marker {
  display: none;
}

.td-action-menu[open] summary {
  border-color: var(--td-brand-300);
}

.td-action-menu__list {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 4000;
  min-width: 180px;
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: #fff;
  padding: 6px;
  box-shadow: 0 10px 22px rgba(18, 35, 66, 0.1);
}

.td-action-menu__list a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: var(--td-radius-sm);
  text-decoration: none;
  color: var(--td-ink-700);
  font-weight: 700;
  font-size: 0.78rem;
}

.td-action-menu__list a:hover {
  background: var(--td-brand-100);
  color: var(--td-brand-900);
}

.td-deal-actions-toggle {
  border-color: var(--td-line);
  background: var(--td-panel);
  color: var(--td-ink-800);
  min-width: 2.4rem;
  min-height: 2.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.td-deal-actions-toggle:hover,
.td-deal-actions-toggle:focus-visible {
  border-color: var(--td-brand-300);
  background: var(--td-brand-100);
  color: var(--td-brand-900);
}

.td-deal-actions-toggle .svg-icon {
  color: currentColor;
}

.td-deal-actions-toggle .svg-icon svg {
  width: 1rem;
  height: 1rem;
}

.td-deal-actions-menu {
  min-width: 230px;
}

.td-market-hero {
  background: var(--td-panel) !important;
}

.td-market-overview-card {
  background: var(--td-brand-900);
}

.td-page-kpi__value {
  color: var(--td-brand-900);
}

@media (max-width: 991.98px) {
  .td-shell {
    grid-template-columns: 1fr;
  }

  .td-sidebar {
    position: fixed;
    left: calc(-1 * (var(--td-sidebar-mobile-width) + 16px));
    width: var(--td-sidebar-mobile-width);
    padding-right: 12px;
    z-index: 1020;
    transition: left 0.2s ease;
  }

  .td-sidebar__rail {
    display: none;
  }

  .td-sidebar-open .td-sidebar {
    left: 0;
  }

  .td-main {
    min-width: 0;
  }

  .td-topbar {
    margin: 10px;
    padding: 10px;
  }

  .td-content {
    padding: 10px;
  }

  .td-main-footer {
    margin: 0 10px 10px;
    padding: 10px;
  }

  .td-main-footer__inner {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .td-main-footer__nav,
  .td-main-footer__meta {
    justify-content: flex-start;
  }

  .td-topbar__right,
  .td-topbar__left {
    width: 100%;
  }

  .td-topbar {
    flex-direction: column;
  }

}

@media (max-width: 767.98px) {
  .td-body {
    font-size: 14px;
  }

  .td-content {
    padding: 10px;
  }

  .td-main-footer {
    margin: 0 10px 10px;
  }

  .td-main-footer__brand {
    align-items: flex-start;
  }

  .td-main-footer__meta {
    flex-wrap: wrap;
    white-space: normal;
  }

  .td-topbar__title {
    font-size: 1.1rem;
  }

  .td-topbar__desc {
    display: none;
  }

  .td-topbar__right {
    justify-content: flex-start;
  }

  .td-metric {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .td-page-hero,
  .td-page-hero--editorial,
  .td-workspace-strip {
    padding: 12px !important;
  }

  .td-page-hero__actions,
  .td-page-hero__actions .btn,
  .card-toolbar,
  .card-toolbar .btn,
  .td-controlbar,
  .td-controlbar__group,
  .td-controlbar__group .btn,
  .td-controlbar-search,
  .td-controlbar-select,
  .td-controlbar-select-lg {
    width: 100% !important;
  }

  .td-page-kpi,
  .td-workspace-chip {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .card .card-header,
  .card .card-body {
    padding: 12px !important;
  }

  .table-responsive {
    border: 0;
    background: transparent;
  }

  .td-workspace-table,
  .td-opportunity-table {
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .td-workspace-table thead,
  .td-opportunity-table thead {
    display: none;
  }

  .td-workspace-table tbody,
  .td-workspace-table tr,
  .td-workspace-table td,
  .td-opportunity-table tbody,
  .td-opportunity-table tr,
  .td-opportunity-table td {
    display: block;
    width: 100%;
  }

  .td-workspace-table tbody tr,
  .td-opportunity-table tbody tr {
    border: 1px solid var(--td-line);
    border-radius: var(--td-radius);
    background: #ffffff;
  }

  .td-workspace-table tbody td,
  .td-opportunity-table tbody td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid var(--td-line) !important;
    text-align: left !important;
  }

  .td-workspace-table tbody td:last-child,
  .td-opportunity-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  .td-workspace-table tbody td::before,
  .td-opportunity-table tbody td::before {
    content: attr(data-label);
    color: var(--td-ink-500);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .td-action-grid,
  .td-admin-users-actions,
  .td-workspace-table td .d-flex.justify-content-end,
  .td-opportunity-table td .d-flex.justify-content-end {
    justify-content: flex-start !important;
    justify-items: start !important;
  }
}

/* Product-wide flat operating UI */
body,
.td-body,
body.app-default,
body.app-blank {
  color: var(--td-ink-700) !important;
  background: var(--td-paper) !important;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif !important;
  letter-spacing: 0;
}

a {
  color: var(--td-brand-700);
}

a:hover {
  color: var(--td-brand-900);
}

.card,
.card.card-flush,
.td-editorial-card,
.td-workspace-card,
.td-market-stat-card,
.td-market-switcher,
.td-stage-column,
.td-market-table-card,
.td-auth-card__inner,
.td-agreement-meta,
.td-agreement-message,
.td-agreement-participant {
  border: 1px solid var(--td-line) !important;
  border-radius: var(--td-radius) !important;
  background: var(--td-panel) !important;
  box-shadow: var(--td-shadow) !important;
  overflow: visible;
}

.card .card-header {
  min-height: auto;
  padding: 16px 18px 10px !important;
  border-bottom: 1px solid var(--td-line) !important;
}

.card .card-body {
  padding: 16px 18px !important;
}

.card-title h1,
.card-title h2,
.card-title h3,
.card-title .card-label,
.td-page-title,
.td-market-title,
.td-workspace-title,
.text-gray-900 {
  color: var(--td-ink-900) !important;
  letter-spacing: 0 !important;
}

.td-page-title,
.td-market-title {
  font-size: 1.38rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.td-page-hero,
.td-page-hero--editorial,
.td-workspace-strip {
  padding: 16px 18px !important;
  border: 1px solid var(--td-line) !important;
  border-radius: var(--td-radius) !important;
  background: var(--td-panel) !important;
  box-shadow: var(--td-shadow) !important;
}

.td-agreement-deal-context .card-header {
  padding-top: 1rem !important;
  padding-bottom: 0.6rem !important;
}

.td-agreement-deal-context .card-body {
  padding-top: 0.75rem !important;
  padding-bottom: 0.9rem !important;
}

.td-agreement-deal-context .badge {
  font-size: 0.68rem;
  line-height: 1.15;
  padding: 0.3rem 0.55rem;
}

.td-agreement-deal-context .td-agreement-deal-context__loading {
  padding: 0.25rem 0;
}

.td-deal-context-metrics,
.td-deal-context-metric {
  width: 100%;
}

.td-deal-context-metric {
  min-width: 0;
}

.td-agreement-commission-block:disabled {
  opacity: 0.76;
}

.td-agreement-commission-block:disabled .form-label,
.td-agreement-commission-block:disabled .text-gray-500 {
  opacity: 0.9;
}

.td-skeleton {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(171, 175, 186, 0.22) 25%, rgba(171, 175, 186, 0.36) 37%, rgba(171, 175, 186, 0.22) 63%);
  background-size: 400% 100%;
  animation: td-skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 999px;
}

.td-skeleton--chip {
  height: 0.95rem;
}

.td-skeleton--line {
  height: 0.7rem;
}

@keyframes td-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.td-page-hero__microcopy,
.td-market-copy,
.text-gray-500,
.text-muted {
  color: var(--td-ink-500) !important;
}

.td-page-chip,
.badge,
.td-workspace-pill {
  border-radius: var(--td-radius-sm) !important;
  letter-spacing: 0 !important;
}

.td-page-chip {
  padding: 5px 8px;
  background: var(--td-brand-100);
  color: var(--td-brand-900);
  font-size: 0.7rem;
}

.td-page-kpis,
.td-workspace-strip .d-flex.flex-wrap.gap-3,
.td-topbar__right {
  gap: 8px !important;
}

.td-page-kpi,
.td-workspace-chip,
.td-opportunity-meta-item,
.td-opportunity-meta,
.td-activity-bulk-bar,
.td-controlbar {
  border: 1px solid var(--td-line) !important;
  border-radius: var(--td-radius) !important;
  background: var(--td-muted) !important;
  box-shadow: none !important;
}

.td-agreements-filterbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-self: stretch;
  padding: 18px !important;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(246, 239, 226, 0.94)),
    var(--td-panel);
  box-shadow: 0 14px 32px rgba(75, 50, 22, 0.05);
}

.td-agreements-filterbar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--td-brand-700), var(--td-accent));
  opacity: 0.75;
  pointer-events: none;
}

.td-agreements-filterbar__summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-agreements-filterbar__kicker {
  color: var(--td-ink-500);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.td-agreements-filterbar__title {
  color: var(--td-ink-900);
  font-size: 1rem;
  font-weight: 900;
}

.td-agreements-filterbar__hint {
  color: var(--td-ink-500);
  font-size: 0.9rem;
  font-weight: 600;
}

.td-agreements-filterbar__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.td-agreements-filterbar__field {
  min-width: 0;
}

.td-agreements-filterbar__field--search {
  grid-column: 1 / -1;
  width: 100%;
}

.td-agreements-filterbar .td-controlbar-search {
  width: 100%;
  max-width: none;
}

.td-agreements-filterbar__controls {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 12px;
  align-items: start;
  grid-column: 1 / -1;
}

.td-agreements-filterbar__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
  align-self: start;
}

.td-agreements-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.td-agreements-pill-option {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.td-agreements-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.td-agreements-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--td-ink-700);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.td-agreements-pill:hover {
  border-color: var(--td-line-strong);
  background: #fff7ea;
  transform: translateY(-1px);
}

.td-agreements-pill-input:focus-visible + .td-agreements-pill {
  outline: 2px solid rgba(82, 122, 45, 0.26);
  outline-offset: 2px;
}

.td-agreements-pill-input:checked + .td-agreements-pill {
  color: var(--td-brand-950);
  border-color: rgba(82, 122, 45, 0.4);
  background: linear-gradient(180deg, rgba(237, 244, 223, 0.95), rgba(255, 250, 241, 0.95));
  box-shadow: 0 8px 18px rgba(75, 50, 22, 0.08);
}

.td-agreements-filterbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  border-top: 1px solid rgba(223, 207, 178, 0.72);
}

.td-agreements-filterbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.td-guest-claim-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 160, 75, 0.18) !important;
  background:
    radial-gradient(circle at top right, rgba(122, 160, 75, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.98)) !important;
}

.td-guest-claim-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--td-brand-700), var(--td-accent-500));
  opacity: 0.85;
}

.td-guest-claim-banner__content {
  min-width: 0;
}

.td-guest-claim-banner__stats {
  margin-top: 2px;
}

.td-guest-claim-banner__actions {
  min-width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.td-guest-claim-banner__cta {
  min-height: 48px;
  padding-left: 18px;
  padding-right: 18px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(82, 112, 42, 0.18);
}

.td-guest-claim-banner__helper {
  max-width: 320px;
}

.td-guest-claim-banner__status {
  padding: 14px 16px;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(65, 48, 24, 0.06);
}

.td-guest-claim-banner__list {
  margin-top: 18px;
}

.td-guest-claim-banner__deal {
  position: relative;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.98)) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.td-guest-claim-banner__deal:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 160, 75, 0.28) !important;
  box-shadow: 0 16px 32px rgba(65, 48, 24, 0.08);
}

.td-guest-claim-banner__empty {
  margin-top: 18px;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .td-agreements-filterbar .td-controlbar-search {
    width: 100%;
  }

  .td-agreements-filterbar__controls {
    grid-template-columns: 1fr 1fr;
  }

  .td-agreements-filterbar__actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .td-agreements-filterbar__actions .btn {
    flex: 1 1 160px;
  }

  .td-agreements-filterbar__meta {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .td-agreements-filterbar {
    padding: 16px !important;
    border-radius: 16px;
  }

  .td-agreements-filterbar__controls {
    grid-template-columns: 1fr;
  }

  .td-agreements-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .td-agreements-filterbar__actions .btn {
    width: 100% !important;
  }
}

.td-page-kpi,
.td-workspace-chip {
  min-width: 118px;
  padding: 9px 10px !important;
}

.td-page-kpi__label,
.td-workspace-chip .text-uppercase,
.td-meta-label,
.td-agreement-meta-label {
  color: var(--td-ink-500) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0 !important;
  font-weight: 800 !important;
}

.td-page-kpi__value,
.td-agreement-meta-value {
  color: var(--td-ink-900) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

.btn {
  min-height: 36px;
  border-radius: var(--td-radius) !important;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none !important;
  transform: none !important;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
}

.btn-light,
.btn-light-primary,
.btn-light-info,
.btn-light-warning,
.btn-light-danger,
.btn-light-success {
  background: #ffffff !important;
  border: 1px solid var(--td-line-strong) !important;
  color: var(--td-ink-700) !important;
}

.btn-light:hover,
.btn-light-primary:hover,
.btn-light-info:hover,
.btn-light-warning:hover,
.btn-light-danger:hover,
.btn-light-success:hover {
  background: var(--td-muted) !important;
  color: var(--td-ink-900) !important;
}

.badge-light,
.badge-light-primary,
.badge-light-info,
.badge-light-success,
.badge-light-warning,
.badge-light-danger,
.badge-light-dark,
.badge-outline-danger {
  border: 1px solid var(--td-line) !important;
  background: #ffffff !important;
  color: var(--td-ink-700) !important;
}

.badge-light-primary {
  border-color: #bdcb9c !important;
  background: var(--td-brand-100) !important;
  color: var(--td-brand-900) !important;
}

.badge-light-success {
  border-color: #b8c99d !important;
  background: #edf4df !important;
  color: var(--td-success) !important;
}

.badge-light-warning {
  border-color: #e3be76 !important;
  background: #fbecd0 !important;
  color: var(--td-warning) !important;
}

.bg-light,
.bg-white {
  background-color: var(--td-panel) !important;
}

.border-gray-200,
.border-gray-300 {
  border-color: var(--td-line) !important;
}

.td-admin-activity,
.td-admin-billing {
  min-width: 0;
}

.td-activity-hero-card {
  overflow: hidden;
  border: 1px solid rgba(148, 111, 61, 0.18) !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(95, 139, 52, 0.16) 0, transparent 30%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(246, 238, 223, 0.94)) !important;
}

.td-activity-stat {
  min-width: 168px;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 16px 30px rgba(58, 41, 21, 0.08) !important;
}

.td-activity-journal-card {
  overflow: hidden;
}

.td-activity-journal-header {
  position: relative;
  padding-bottom: 1rem;
  background:
    linear-gradient(90deg, rgba(82, 122, 45, 0.08), transparent 42%),
    var(--td-panel) !important;
}

.td-activity-journal-body {
  padding-top: 1rem !important;
}

.td-activity-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(82, 122, 45, 0.22);
  border-radius: 999px;
  background: rgba(237, 244, 223, 0.86);
  color: var(--td-brand-800);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-activity-live-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #77a83f;
  box-shadow: 0 0 0 4px rgba(119, 168, 63, 0.14);
}

.td-activity-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  width: 100%;
}

.td-activity-toolbar__main,
.td-activity-toolbar__search,
.td-activity-toolbar__search .td-opportunity-search,
.td-activity-toolbar__search .td-opportunity-search > div,
.td-activity-toolbar__search .td-opportunity-search .flex-grow-1 {
  min-width: 0;
  width: 100%;
}

.td-activity-search-input {
  width: min(100%, 680px) !important;
  max-width: 100%;
}

.td-activity-toolbar__actions {
  display: flex;
  justify-content: flex-end;
}

.td-admin-billing__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.td-admin-billing__panel,
.td-admin-billing__plan,
.td-admin-billing__compare-card,
.td-admin-billing__metric,
.td-admin-billing__quota,
.td-admin-users-mobile-card,
.td-activity-mobile-card {
  border: 1px solid var(--td-line) !important;
  background: var(--td-panel) !important;
  color: var(--td-ink-700);
  box-shadow: var(--td-shadow) !important;
}

.td-admin-billing__plan {
  display: block;
  border-radius: var(--td-radius) !important;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.td-admin-billing__plan.is-selected {
  border-color: var(--td-brand-700) !important;
  background: var(--td-brand-100) !important;
}

.td-admin-billing__quota,
.td-admin-billing__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: var(--td-radius-sm) !important;
  padding: 0.75rem;
}

.td-admin-billing__metric {
  display: block;
  height: 100%;
}

.td-admin-billing__compare-card {
  border-radius: var(--td-radius) !important;
  padding: 1rem;
}

.td-admin-activity .td-activity-mobile-card .rounded-3.bg-white,
.td-admin-users-mobile-card .rounded-3.bg-white,
.td-admin-billing__metric {
  background: var(--td-muted) !important;
}

.td-activity-mobile-list {
  gap: 1rem !important;
}

.td-admin-activity .td-activity-mobile-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.05rem !important;
  border-radius: 20px !important;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.td-admin-activity .td-activity-mobile-card.td-activity-row-active,
.td-admin-activity .td-activity-mobile-card.td-activity-row-expanded,
.td-admin-activity .td-activity-mobile-card.td-activity-row-selected {
  border-color: rgba(82, 122, 45, 0.34) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 122, 45, 0.11), transparent 30%),
    var(--td-panel) !important;
  box-shadow: 0 18px 34px rgba(58, 41, 21, 0.1) !important;
}

.td-admin-activity .td-activity-mobile-head {
  padding: 0.15rem 0.15rem 0.9rem !important;
  margin: 0 0 0.85rem !important;
  border-bottom: 1px solid var(--td-line);
}

.td-admin-activity .td-activity-mobile-sections {
  gap: 0.85rem !important;
}

.td-admin-activity .td-activity-mobile-section {
  display: block;
  min-width: 0;
  padding: 1rem !important;
  margin: 0 !important;
  border-radius: 16px !important;
  background: rgba(255, 252, 246, 0.86) !important;
  border-color: rgba(148, 111, 61, 0.18) !important;
}

.td-admin-activity .td-activity-mobile-section .td-activity-cell-title {
  line-height: 1.28;
}

.td-admin-activity .td-activity-mobile-section .td-activity-summary {
  margin-top: 0.65rem !important;
  line-height: 1.45;
}

.td-admin-activity .td-activity-mobile-actor .symbol {
  margin-left: 0 !important;
}

.td-admin-activity .td-activity-mobile-card .badge {
  max-width: 100%;
}

.td-admin-activity .td-activity-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.td-activity-table-shell {
  overflow: auto;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background: var(--td-panel);
}

.td-activity-table-shell .td-activity-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--td-line) !important;
  background: linear-gradient(180deg, rgba(248, 241, 229, 0.98), rgba(239, 229, 211, 0.98));
  color: var(--td-ink-600) !important;
}

.td-admin-activity .td-activity-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.td-admin-activity .td-activity-table tbody tr > td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: rgba(255, 252, 246, 0.9);
}

.td-admin-activity .td-activity-table tbody tr:hover > td {
  background: rgba(237, 244, 223, 0.48) !important;
}

.td-admin-activity .td-activity-table tbody tr.td-activity-row-active > td,
.td-admin-activity .td-activity-table tbody tr.td-activity-row-expanded > td,
.td-admin-activity .td-activity-table tbody tr.td-activity-row-selected > td {
  background: linear-gradient(90deg, rgba(237, 244, 223, 0.88), rgba(255, 252, 246, 0.94)) !important;
  box-shadow: inset 4px 0 0 var(--td-brand-700);
}

.td-activity-row-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--td-brand-700);
  font-weight: 900;
}

.td-activity-caret {
  display: inline-flex;
  transform: translateY(-1px);
  font-size: 1rem;
}

.td-activity-inline-link,
.td-activity-inspector-link {
  color: var(--td-brand-700);
  font-weight: 900;
}

.td-activity-inspector-shell {
  position: sticky;
  top: 1rem;
}

.td-activity-inspector-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 1px solid rgba(148, 111, 61, 0.18) !important;
  border-radius: 22px !important;
  background: transparent !important;
}

.td-activity-inspector-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.td-activity-inspector-scroll:focus {
  outline: none;
}

.td-activity-inspector-scroll:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(82, 122, 45, 0.18);
}

.td-activity-inspector-frame {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
}

.td-activity-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 3;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 122, 45, 0.12), transparent 32%),
    rgba(255, 252, 246, 0.98);
  box-shadow: 0 8px 24px rgba(86, 61, 22, 0.05);
  backdrop-filter: blur(10px);
}

.td-activity-inspector-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--td-brand-700);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.td-activity-inspector-target-link {
  white-space: nowrap;
}

.td-activity-inspector-hero {
  padding: 0.8rem;
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(246, 238, 223, 0.88));
}

.td-activity-inspector-summary {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.td-activity-inspector-quickgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.td-activity-inspector-quickitem,
.td-activity-inspector-section,
.td-activity-inspector-fact,
.td-activity-inspector-pill,
.td-activity-inspector-empty {
  border-radius: 16px !important;
}

.td-activity-inspector-quickitem {
  padding: 0.75rem;
  min-width: 0;
}

.td-activity-inspector-section {
  padding: 0.75rem;
}

.td-activity-inspector-section--business {
  padding-bottom: 0.65rem;
}

.td-activity-inspector-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.td-activity-inspector-facts {
  display: grid;
  gap: 0.5rem;
}

.td-activity-business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.6rem;
}

.td-activity-business-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.td-activity-business-overview-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(148, 111, 61, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.td-activity-business-overview-label {
  color: var(--td-ink-500);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.td-activity-business-overview-value {
  color: var(--td-ink-900);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.td-activity-business-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 0.65rem;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.94), rgba(246, 238, 223, 0.62));
}

.td-activity-business-card--actor {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.td-activity-business-card--link {
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(82, 122, 45, 0.12), transparent 36%),
    rgba(255, 252, 246, 0.94);
}

.td-activity-business-card--link .td-activity-business-value {
  margin-top: 0.1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.td-activity-business-badge {
  flex-shrink: 0;
}

.td-activity-business-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 14px;
  font-weight: 900;
}

.td-activity-business-label {
  margin-bottom: 0.22rem;
  color: var(--td-ink-500);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.td-activity-business-value,
.td-activity-business-link {
  display: block;
  min-width: 0;
  color: var(--td-ink-900);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.td-activity-business-link {
  color: var(--td-brand-800);
  text-decoration: none;
}

.td-activity-business-link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(82, 122, 45, 0.22);
  border-radius: 999px;
  background: rgba(82, 122, 45, 0.08);
  font-size: 0.88rem;
}

.td-activity-business-link:hover {
  color: var(--td-brand-900);
  text-decoration: underline;
}

.td-activity-business-link--cta:hover {
  background: rgba(82, 122, 45, 0.12);
  text-decoration: none;
}

.td-activity-business-meta {
  margin-top: 0.22rem;
  color: var(--td-ink-500);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.td-activity-inspector-quickvalue,
.td-activity-inspector-quickmeta,
.td-activity-inspector-business-value,
.td-activity-inspector-business-meta {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.td-activity-inspector-quickvalue,
.td-activity-inspector-business-value {
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.td-activity-business-overview-value,
.td-activity-business-value,
.td-activity-business-link,
.td-activity-inspector-quickvalue,
.td-activity-inspector-quickmeta,
.td-activity-inspector-fact-value,
.td-activity-inspector-pill-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.td-activity-inspector-quickmeta,
.td-activity-inspector-business-meta,
.td-activity-inspector-fact-value,
.td-activity-inspector-pill-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.td-activity-business-card--link .td-activity-business-link--cta {
  max-width: 100%;
}

.td-activity-inspector-fact {
  display: grid;
  grid-template-columns: minmax(95px, 0.28fr) minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.6rem;
  min-width: 0;
}

.td-activity-inspector-section--technical .td-activity-inspector-facts {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.45rem;
}

.td-activity-inspector-section--technical .td-activity-inspector-fact {
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.td-activity-inspector-section--technical .td-activity-inspector-fact-value {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.td-activity-inspector-section--technical .td-activity-inspector-fact-label {
  font-size: 0.62rem;
}

.td-activity-inspector-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.45rem;
}

.td-activity-inspector-pill {
  padding: 0.6rem;
  min-width: 0;
}

.td-activity-inspector-section--payload .td-activity-inspector-payload-shell {
  display: grid;
  gap: 0.6rem;
}

.td-activity-inspector-section--payload .td-activity-inspector-payload {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.01em;
}

.td-activity-inspector-copy {
  align-self: flex-start;
  white-space: nowrap;
}

.td-activity-inspector-payload {
  max-height: 180px;
  overflow: auto;
  margin: 0.6rem 0 0;
  padding: 0.7rem;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background: #1f160f;
  color: #f8ead4;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 1399.98px) {
  .td-activity-inspector-shell {
    position: static;
  }

  .td-activity-inspector-card {
    max-height: none;
  }

  .td-activity-inspector-scroll {
    overflow-y: visible;
  }

  .td-activity-inspector-header {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .td-activity-toolbar {
    grid-template-columns: 1fr;
  }

  .td-activity-toolbar__actions {
    justify-content: flex-start;
  }

  .td-activity-inspector-header,
  .td-activity-inspector-section-head {
    flex-direction: column;
  }

  .td-activity-inspector-copy {
    width: 100%;
    justify-content: center;
  }

  .td-activity-inspector-quickgrid,
  .td-activity-business-grid,
  .td-activity-business-overview,
  .td-activity-inspector-pill-grid,
  .td-activity-inspector-fact {
    grid-template-columns: 1fr;
  }

  .td-activity-business-card--actor {
    grid-column: auto;
  }

  .td-activity-stat {
    min-width: 100%;
  }

  .td-admin-activity .td-activity-mobile-card {
    padding: 0.85rem !important;
    border-radius: 18px !important;
  }

  .td-admin-activity .td-activity-mobile-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .td-admin-activity .td-activity-mobile-section {
    padding: 0.85rem !important;
  }
}

.td-admin-activity .td-activity-cell-title,
.td-admin-activity .td-activity-detail-title,
.td-admin-activity .td-activity-inspector-title,
.td-admin-activity .td-activity-inspector-quickvalue,
.td-admin-activity .td-activity-inspector-fact-value,
.td-admin-activity .td-activity-inspector-pill-value {
  color: var(--td-ink-900) !important;
}

.td-admin-activity .td-activity-cell-subtitle,
.td-admin-activity .td-activity-cell-kicker,
.td-admin-activity .td-activity-inspector-kicker,
.td-admin-activity .td-activity-inspector-subtitle,
.td-admin-activity .td-activity-inspector-quicklabel,
.td-admin-activity .td-activity-inspector-quickmeta,
.td-admin-activity .td-activity-inspector-fact-label,
.td-admin-activity .td-activity-inspector-pill-label {
  color: var(--td-ink-500) !important;
}

.td-admin-activity .td-activity-summary,
.td-admin-activity .td-activity-inspector-summary {
  color: var(--td-ink-700) !important;
}

.td-admin-activity .td-activity-inspector-frame,
.td-admin-activity .td-activity-inspector-hero,
.td-admin-activity .td-activity-inspector-section,
.td-admin-activity .td-activity-inspector-quickitem,
.td-admin-activity .td-activity-inspector-fact,
.td-admin-activity .td-activity-inspector-pill,
.td-admin-activity .td-activity-inspector-empty {
  border-color: var(--td-line) !important;
  background: var(--td-panel) !important;
}

.badge-light-danger,
.badge-outline-danger {
  border-color: #efb5ae !important;
  background: #fff1ef !important;
  color: var(--td-danger) !important;
}

.form-control,
.form-select,
.form-control.form-control-solid,
.form-select.form-select-solid {
  min-height: 38px;
  border: 1px solid var(--td-line-strong) !important;
  border-radius: var(--td-radius) !important;
  background: #ffffff !important;
  color: var(--td-ink-900) !important;
  box-shadow: none !important;
  font-weight: 600;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--td-brand-700) !important;
  box-shadow: 0 0 0 3px rgba(82, 122, 45, 0.15) !important;
}

.form-label {
  color: var(--td-ink-700) !important;
  font-size: 0.78rem;
  font-weight: 800 !important;
  margin-bottom: 6px;
}

.td-deposit-form .form-label {
  font-size: 0.94rem;
}

.td-location-autocomplete {
  position: relative;
}

.td-location-autocomplete__field-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.td-location-autocomplete__toggle-map {
  flex-shrink: 0;
  white-space: nowrap;
}

.td-location-autocomplete__suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  z-index: 1100;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(209, 213, 219, 0.92);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}

.td-location-autocomplete__suggestions--open {
  display: block;
}

.td-location-autocomplete__map-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.td-location-autocomplete__map-popup--open {
  display: flex;
}

.td-location-autocomplete__map-popup-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.65));
  backdrop-filter: blur(6px);
}

.td-location-autocomplete__map-popup-content {
  position: relative;
  width: min(95vw, 800px);
  max-height: min(100%, 85vh);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2rem;
  overflow: visible;
  box-shadow: 0 40px 110px rgba(15, 23, 42, 0.18);
  z-index: 1;
  backdrop-filter: blur(18px);
  padding: 0.95rem;
  padding-top: 0.05rem;
}

.td-location-autocomplete__map-stage {
  position: relative;
  width: 100%;
  min-height: calc(65vh - 1.5rem);
  margin-top: 1rem;
}

.td-location-map__target {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(86, 116, 39, 0.75);
}

.td-location-map__target::before {
  content: '';
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: 2px solid rgba(86, 116, 39, 0.45);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), inset 0 1px 4px rgba(255, 255, 255, 0.65);
}

.td-location-map__target::after {
  content: '';
  position: absolute;
  width: 5.25rem;
  height: 5.25rem;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  opacity: 0.72;
}

.td-location-autocomplete__close-map {
  position: absolute;
  top: 0rem;
  right: -3rem;
  z-index: 1200;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 248, 248, 0.92));
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: #0f172a;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28), inset 0 -2px 8px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  transition: transform 0.18s cubic-bezier(.2, .9, .3, 1), box-shadow 0.18s ease, background 0.18s ease;
}

.td-location-autocomplete__close-map:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.26), inset 0 -2px 6px rgba(255, 255, 255, 0.14);
}

.td-location-autocomplete__close-map:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12), 0 18px 44px rgba(15, 23, 42, 0.22);
  border-color: rgba(59, 130, 246, 0.6);
}

.td-location-autocomplete__map-popup-header {
  display: none;
}

.td-location-map {
  width: 100%;
  height: 100%;
  min-height: calc(65vh - 1.5rem);
  max-height: calc(85vh - 1.5rem);
  margin-top: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: none;
}

.td-location-autocomplete__item:hover,
.td-location-autocomplete__item:focus {
  background: linear-gradient(180deg, rgba(232, 240, 211, 0.86), rgba(244, 249, 237, 0.98));
  border-color: rgba(130, 165, 64, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(86, 116, 39, 0.08);
}

.td-location-autocomplete__item {
  width: 100%;
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.td-location-autocomplete__item:focus-visible {
  outline: none;
  border-color: rgba(130, 165, 64, 0.34);
  box-shadow: 0 0 0 4px rgba(130, 165, 64, 0.16);
}

.td-location-autocomplete__item-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #567427;
  background: rgba(130, 165, 64, 0.12);
  flex-shrink: 0;
}

.td-location-autocomplete__item-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.td-location-autocomplete__item-title {
  color: var(--td-ink-700);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.td-location-autocomplete__item-title mark {
  padding: 0;
  color: #567427;
  background: rgba(130, 165, 64, 0.18);
  border-radius: 0.22rem;
}

.td-location-autocomplete__item-subtitle {
  color: var(--td-ink-500);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.td-location-autocomplete__item-region {
  color: rgba(112, 124, 139, 0.9);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  word-break: break-word;
}

.td-location-autocomplete__item-arrow {
  color: rgba(86, 116, 39, 0.55);
  flex-shrink: 0;
}

.td-location-autocomplete__item-arrow svg {
  display: block;
}

.td-location-autocomplete__hint {
  margin-top: 0.55rem;
  color: var(--td-ink-500);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.td-rich-editor-shell,
.td-agreement-message-form {
  display: flex;
  flex-direction: column;
}

.td-rich-editor-shell > .d-flex:first-child,
.td-agreement-message-form > .d-flex:first-child {
  margin-bottom: 0.75rem;
}

trix-toolbar {
  margin: 0 !important;
  border: 1px solid var(--td-line);
  border-bottom: 0;
  border-radius: var(--td-radius) var(--td-radius) 0 0;
  background: rgba(239, 227, 207, 0.72);
  box-shadow: 0 14px 26px rgba(75, 50, 22, 0.06);
  overflow: hidden;
}

trix-toolbar .trix-button-group {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

trix-toolbar .trix-button-group:not(:first-child) {
  margin-left: 0.15rem;
}

trix-toolbar .trix-button {
  color: var(--td-ink-700);
  border: 0;
  background: transparent;
  box-shadow: none;
}

trix-toolbar .trix-button:hover,
trix-toolbar .trix-button.trix-active {
  background: rgba(158, 190, 115, 0.14);
  color: var(--td-ink-900);
}

trix-editor.td-rich-editor__editor,
trix-editor[data-td-rich-editor="true"] {
  min-height: 180px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--td-line);
  border-radius: 0 0 var(--td-radius) var(--td-radius);
  background: var(--td-panel);
  color: var(--td-ink-700);
  line-height: 1.6;
}

trix-editor.td-rich-editor__editor:focus,
trix-editor[data-td-rich-editor="true"]:focus {
  outline: none;
  border-color: var(--td-brand-300);
  box-shadow: 0 0 0 0.2rem rgba(158, 190, 115, 0.12);
}

trix-editor.td-rich-editor__editor:empty::before,
trix-editor[data-td-rich-editor="true"]:empty::before {
  color: var(--td-ink-500);
  font-weight: 600;
}

trix-editor.td-rich-editor__editor.trix-content,
trix-editor[data-td-rich-editor="true"].trix-content {
  white-space: normal;
}

html[data-td-theme="dark"] trix-toolbar {
  border-color: rgba(216, 164, 93, 0.22);
  background: rgba(33, 26, 20, 0.94);
}

html[data-td-theme="dark"] trix-toolbar .trix-button {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] trix-toolbar .trix-button:hover,
html[data-td-theme="dark"] trix-toolbar .trix-button.trix-active {
  background: rgba(158, 190, 115, 0.16);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] trix-editor.td-rich-editor__editor,
html[data-td-theme="dark"] trix-editor[data-td-rich-editor="true"] {
  border-color: rgba(216, 164, 93, 0.24);
  background: rgba(33, 26, 20, 0.96);
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] trix-editor.td-rich-editor__editor:focus,
html[data-td-theme="dark"] trix-editor[data-td-rich-editor="true"]:focus {
  border-color: rgba(158, 190, 115, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(158, 190, 115, 0.14);
}

trix-editor.td-rich-editor__editor .attachment__caption,
trix-editor[data-td-rich-editor="true"] .attachment__caption {
  color: var(--td-ink-500);
}

trix-editor.td-rich-editor__editor .trix-content,
trix-editor[data-td-rich-editor="true"] .trix-content {
  min-height: 180px;
  background: transparent !important;
}

.table-responsive {
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  background: var(--td-panel);
}

.table {
  margin-bottom: 0 !important;
}

.table thead th {
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--td-line) !important;
  background: var(--td-muted);
  color: var(--td-ink-500) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.table tbody td {
  padding: 12px !important;
  border-bottom: 1px solid var(--td-line) !important;
  color: var(--td-ink-700) !important;
  font-size: 0.86rem;
}

.table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.table tbody tr:hover>td {
  background: #fbf3e6;
}

.symbol-label {
  border-radius: var(--td-radius-sm) !important;
}

.symbol.symbol-circle>img,
.symbol.symbol-circle .symbol-label {
  border-radius: var(--td-radius-sm) !important;
}

.menu.menu-sub,
.menu-sub-dropdown {
  border: 1px solid var(--td-line) !important;
  border-radius: var(--td-radius) !important;
  background: var(--td-panel) !important;
  box-shadow: 0 10px 22px rgba(75, 50, 22, 0.1) !important;
  padding: 6px !important;
}

.menu-sub-dropdown:not(.td-menu-open),
.menu-sub:not(.td-menu-open) {
  display: none !important;
}

.menu-sub-dropdown.td-menu-open,
.menu-sub.td-menu-open {
  display: block !important;
  position: absolute !important;
  right: 0;
  z-index: 1080;
}

.menu-link {
  border-radius: var(--td-radius-sm) !important;
  color: var(--td-ink-700) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

.menu-link:hover {
  background: var(--td-muted) !important;
  color: var(--td-ink-900) !important;
}

.td-table-action-trigger {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--td-line) !important;
  border-radius: 12px !important;
  background: var(--td-panel) !important;
  color: var(--td-ink-700) !important;
  box-shadow: none !important;
}

.td-table-action-trigger:hover,
.td-table-action-trigger:focus-visible {
  border-color: var(--td-brand-300) !important;
  background: var(--td-muted) !important;
  color: var(--td-ink-900) !important;
}

.td-table-action-trigger__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: translateY(-1px);
}

.td-table-actions-menu {
  min-width: 228px !important;
  padding: 0 !important;
  overflow: hidden;
}

.td-table-actions-menu .menu-item {
  padding: 0 !important;
}

.td-table-actions-menu .menu-link {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.95rem !important;
  border-radius: 0 !important;
}

.td-table-actions-menu .menu-link:first-child {
  border-top-left-radius: var(--td-radius) !important;
  border-top-right-radius: var(--td-radius) !important;
}

.td-table-actions-menu .menu-link:last-child {
  border-bottom-left-radius: var(--td-radius) !important;
  border-bottom-right-radius: var(--td-radius) !important;
}

.td-table-actions-menu__header {
  padding: 0.85rem 0.95rem 0.7rem;
  border-bottom: 1px solid var(--td-line);
  background: rgba(255, 255, 255, 0.28);
}

.td-table-actions-menu__title {
  color: var(--td-ink-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-table-actions-menu__icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--td-ink-500);
}

.td-table-actions-menu__icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.td-market-overview-card,
.td-market-overview-card .card-header,
.td-market-overview-card .card-body {
  background: var(--td-brand-900) !important;
  border-color: var(--td-brand-900) !important;
  color: #ffffff !important;
}

.td-market-overview-card .text-white,
.td-market-overview-card .card-label {
  color: #ffffff !important;
}

.td-market-overview-card .text-success {
  color: #9ee6c5 !important;
}

.td-monitoring-hero,
.td-monitoring-hero .card-body {
  background:
    radial-gradient(circle at top right, rgba(201, 133, 43, 0.18), transparent 30%),
    linear-gradient(135deg, #24190c 0%, #382711 58%, #1d160e 100%) !important;
  border-color: rgba(223, 207, 178, 0.24) !important;
  color: #fffaf1 !important;
}

.td-monitoring-hero .text-white,
.td-monitoring-hero .text-white-75,
.td-monitoring-hero .td-monitoring-status,
.td-monitoring-hero .td-monitoring-status__label,
.td-monitoring-hero h2,
.td-monitoring-hero p {
  color: inherit !important;
}

.td-monitoring-hero .badge {
  border-color: rgba(255, 250, 241, 0.18);
}

.td-opportunity-card:hover {
  transform: none !important;
  box-shadow: var(--td-shadow) !important;
  border-color: var(--td-line-strong) !important;
}

.td-auth-shell::before,
.td-auth-shell::after,
.td-auth-hero::before {
  display: none !important;
}

.td-auth-shell__main {
  background: var(--td-paper) !important;
}

.td-auth-hero,
.td-auth-hero__panel {
  color: #ffffff !important;
  background: var(--td-brand-900) !important;
}

.td-auth-hero__panel {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--td-radius) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.td-auth-hero-title,
.td-auth-hero-copy,
.td-auth-point-label,
.td-auth-point-value {
  color: #ffffff !important;
}

.td-auth-hero-copy,
.td-auth-point-label {
  opacity: 0.78;
}

.td-auth-point,
.td-auth-hero-badge {
  border-radius: var(--td-radius) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.td-auth-product-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--td-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 14px;
}

.td-auth-product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.td-auth-product-card__header span,
.td-auth-product-card__grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.td-auth-product-card__header strong,
.td-auth-product-card__grid strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 850;
}

.td-auth-product-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.td-auth-product-card__grid div {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--td-radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

/* Terrain d'Entente brand layer */
.td-page-title,
.td-topbar__title,
.td-market-title,
.td-auth-hero-title,
.td-deal-card__title,
.td-brand-link__text,
.td-auth-brand-lockup span {
  font-family: "Montserrat", "Manrope", system-ui, sans-serif !important;
}

.td-body--auth {
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 133, 43, 0.14), transparent 30%),
    linear-gradient(135deg, #fff8ec 0%, var(--td-paper) 48%, #ecdfc9 100%) !important;
}

.td-auth-layout {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(82, 122, 45, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(82, 122, 45, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.td-auth-shell--brand {
  min-height: 100vh;
  padding: clamp(12px, 2vw, 28px);
  gap: clamp(12px, 2vw, 24px);
}

html[data-td-theme="dark"] .td-sidebar {
  background: var(--td-panel);
  border-right-color: var(--td-line);
}

html[data-td-theme="dark"] .td-sidebar__brand,
html[data-td-theme="dark"] .td-sidebar__footer {
  border-color: var(--td-line);
}

html[data-td-theme="dark"] .td-sidebar-rail__btn,
html[data-td-theme="dark"] .td-popover summary,
html[data-td-theme="dark"] .td-confirm__panel,
html[data-td-theme="dark"] .td-main-footer__nav a,
html[data-td-theme="dark"] .td-metric,
html[data-td-theme="dark"] .td-topbar,
html[data-td-theme="dark"] .td-main-footer,
html[data-td-theme="dark"] .td-theme-switcher {
  background: rgba(33, 26, 20, 0.94);
  border-color: var(--td-line);
}

html[data-td-theme="dark"] .td-main-footer {
  background:
    radial-gradient(circle at 95% 10%, rgba(158, 190, 115, 0.12), transparent 35%),
    rgba(33, 26, 20, 0.94);
}

html[data-td-theme="dark"] .td-sidebar-rail__btn:hover,
html[data-td-theme="dark"] .td-main-footer__nav a:hover,
html[data-td-theme="dark"] .td-theme-switcher__option:hover {
  background: rgba(43, 34, 25, 0.92);
}

html[data-td-theme="dark"] .td-popover__menu {
  border-color: rgba(216, 164, 93, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(23, 18, 13, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

html[data-td-theme="dark"] .td-sidebar-account .td-popover__menu,
html[data-td-theme="dark"] .td-sidebar-rail__account .td-popover__menu {
  border-color: rgba(216, 164, 93, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.99), rgba(18, 13, 9, 0.99));
}

html[data-td-theme="dark"] .td-popover__item {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-popover__item:hover {
  background: rgba(158, 190, 115, 0.12);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-popover__meta {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-popover__item--danger {
  background: rgba(158, 190, 115, 0.14);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-popover__item--danger:hover {
  background: rgba(239, 143, 134, 0.16);
  color: #ffd4cf;
}

html[data-td-theme="dark"] .td-popover__item-icon {
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-account-menu__icon {
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-account-menu__item.td-popover__item--danger .td-account-menu__icon {
  color: #ffb7b0;
}

html[data-td-theme="dark"] .td-account-menu .td-popover__menu,
html[data-td-theme="dark"] .td-topbar-notifications__menu {
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.99), rgba(18, 13, 9, 0.99));
}

html[data-td-theme="dark"] .td-topbar-notifications__hero {
  border-bottom-color: rgba(102, 82, 61, 0.55);
  background:
    radial-gradient(circle at 10% 15%, rgba(158, 190, 115, 0.12), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(216, 164, 93, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.99), rgba(23, 18, 13, 0.99));
}

html[data-td-theme="dark"] .td-topbar-notifications__title {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-notifications__subtitle,
html[data-td-theme="dark"] .td-topbar-notifications__meta,
html[data-td-theme="dark"] .td-topbar-notifications__time {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-topbar-notifications__chip {
  border-color: rgba(216, 164, 93, 0.2);
  background: rgba(33, 26, 20, 0.92);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-notifications__chip--muted {
  background: rgba(23, 18, 13, 0.8);
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-topbar-notifications__panel {
  background: rgba(23, 18, 13, 0.32);
}

html[data-td-theme="dark"] .td-notification-preview {
  border-color: rgba(216, 164, 93, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.96), rgba(18, 13, 9, 0.98));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

html[data-td-theme="dark"] .td-notification-preview::before {
  opacity: 0.12;
}

html[data-td-theme="dark"] .td-notification-preview--unread {
  border-color: rgba(158, 190, 115, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(28, 22, 16, 0.98));
}

html[data-td-theme="dark"] .td-notification-preview:hover {
  border-color: rgba(216, 164, 93, 0.34);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
}

html[data-td-theme="dark"] .td-notification-preview__title {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-notification-preview__title:hover {
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-notification-preview__message {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-notification-preview__status {
  background: rgba(158, 190, 115, 0.14);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-notification-preview__status.is-read {
  background: rgba(216, 164, 93, 0.12);
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-notification-preview__open-hint {
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-topbar-peer-rating {
  border-color: rgba(216, 164, 93, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.96), rgba(23, 18, 13, 0.98));
  color: var(--td-ink-900);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-td-theme="dark"] .td-topbar-reputation-score {
  border-color: rgba(216, 164, 93, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.96), rgba(23, 18, 13, 0.98));
  color: var(--td-ink-900);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-td-theme="dark"] .td-topbar-peer-rating--neutral {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-topbar-peer-rating--positive {
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.1), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-peer-rating--balanced {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.1), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-peer-rating--warning {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.12), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-peer-rating--danger {
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 143, 134, 0.1), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-reputation-score--neutral {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-topbar-reputation-score--positive {
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.1), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-reputation-score--balanced {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.1), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-reputation-score--warning {
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.12), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-reputation-score--danger {
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 143, 134, 0.1), transparent 34%),
    rgba(33, 26, 20, 0.96);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-peer-rating-card {
  border-color: rgba(216, 164, 93, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.96), rgba(18, 13, 9, 0.98));
}

html[data-td-theme="dark"] .td-peer-rating-card__contest,
html[data-td-theme="dark"] .td-peer-rating-contest-modal__summary-chip,
html[data-td-theme="dark"] .td-peer-rating-contest-modal__note {
  border-color: rgba(216, 164, 93, 0.18);
  background: rgba(23, 18, 13, 0.86);
}

html[data-td-theme="dark"] .td-account-menu__name {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-account-menu__role,
html[data-td-theme="dark"] .td-notification-preview__message {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-topbar-notifications__trigger {
  background: rgba(33, 26, 20, 0.96);
  border-color: rgba(216, 164, 93, 0.18);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-notifications__trigger:hover,
html[data-td-theme="dark"] .td-topbar-notifications[open] .td-topbar-notifications__trigger {
  background: rgba(158, 190, 115, 0.12);
  border-color: rgba(158, 190, 115, 0.24);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-topbar-notifications__badge {
  box-shadow: 0 0 0 2px rgba(18, 13, 9, 0.98);
}

html[data-td-theme="dark"] .td-topbar-notifications__more-link {
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-topbar-notifications__more-link:hover {
  color: var(--td-accent-400);
}

html[data-td-theme="dark"] .td-live-notification-banner {
  border-color: rgba(158, 190, 115, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(34, 27, 21, 0.985), rgba(18, 13, 9, 0.99));
  color: var(--td-ink-900);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

html[data-td-theme="dark"] .td-live-notification-banner__icon {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04) 34%, rgba(158, 190, 115, 0.16) 100%),
    linear-gradient(180deg, rgba(40, 32, 24, 0.98), rgba(30, 24, 18, 0.98));
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-live-notification-banner__title {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-live-notification-banner__message {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-live-notification-banner__badge {
  background: rgba(158, 190, 115, 0.12);
  border-color: rgba(158, 190, 115, 0.16);
  color: var(--td-brand-500);
}

html[data-td-theme="dark"] .td-live-notification-banner__close {
  background: rgba(255, 255, 255, 0.05);
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-live-notification-banner__close:hover {
  background: rgba(158, 190, 115, 0.12);
  color: var(--td-accent-400);
}

html[data-td-theme="dark"] .td-live-notification-banner__accent {
  background: linear-gradient(180deg, var(--td-brand-500), var(--td-accent-500));
}

html[data-td-theme="dark"] .td-notification-preview__status {
  background: rgba(158, 190, 115, 0.14);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-notification-preview__status.is-read {
  background: rgba(103, 120, 153, 0.16);
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-sidebar-account summary {
  background: rgba(33, 26, 20, 0.94);
  border-color: rgba(216, 164, 93, 0.18);
}

html[data-td-theme="dark"] .td-sidebar-account__avatar {
  background: rgba(158, 190, 115, 0.14);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-sidebar-account__text strong {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-sidebar-account__text small {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-sidebar-account__chevron {
  border-color: rgba(158, 190, 115, 0.42);
  background: rgba(38, 48, 31, 0.84);
  color: var(--td-brand-700);
}

html[data-td-theme="dark"] .td-sidebar-account[open] .td-sidebar-account__chevron {
  border-color: rgba(216, 164, 93, 0.4);
  background: rgba(216, 164, 93, 0.12);
  color: var(--td-accent-600);
}

html[data-td-theme="dark"] .td-notification-preview {
  border-color: rgba(216, 164, 93, 0.12);
}

html[data-td-theme="dark"] .td-notification-preview--unread {
  background: rgba(158, 190, 115, 0.1);
  border-color: rgba(158, 190, 115, 0.18);
}

html[data-td-theme="dark"] .td-notification-preview:hover {
  background: rgba(158, 190, 115, 0.12);
  border-color: rgba(158, 190, 115, 0.2);
}

html[data-td-theme="dark"] .td-notification-preview__title {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-notification-preview__title:hover,
html[data-td-theme="dark"] .td-notification-preview__toggle:hover {
  color: var(--td-accent-600);
}

html[data-td-theme="dark"] .td-notification-preview__time {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-notification-preview__toggle {
  color: var(--td-brand-700);
}

html[data-td-theme="dark"] .td-confirm__panel {
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.98) 0%, rgba(24, 18, 13, 0.98) 100%);
}

html[data-td-theme="dark"] .td-confirm__backdrop {
  background: rgba(8, 7, 6, 0.72);
}

html[data-td-theme="dark"] .td-modal__panel {
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.98) 0%, rgba(24, 18, 13, 0.98) 100%);
}

html[data-td-theme="dark"] .td-modal__backdrop {
  background: rgba(8, 7, 6, 0.72);
}

html[data-td-theme="dark"] .td-modal__close {
  background: rgba(43, 34, 25, 0.94);
  color: var(--td-ink-100);
}

html[data-td-theme="dark"] .td-modal__close:hover {
  background: rgba(53, 42, 31, 0.98);
}

html[data-td-theme="dark"] .td-invite-picker__control {
  border-color: rgba(196, 165, 111, 0.35);
  background: rgba(18, 14, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-td-theme="dark"] .td-invite-picker__control:focus-within {
  border-color: rgba(172, 217, 112, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(172, 217, 112, 0.1);
}

html[data-td-theme="dark"] .td-invite-picker__input {
  color: var(--td-ink-100);
}

html[data-td-theme="dark"] .td-invite-picker__suggestions {
  border-color: rgba(196, 165, 111, 0.32);
  background: rgba(29, 23, 17, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

html[data-td-theme="dark"] .td-invite-picker__suggestion {
  border-bottom-color: rgba(196, 165, 111, 0.18);
  color: var(--td-ink-100);
}

html[data-td-theme="dark"] .td-invite-picker__suggestion:hover,
html[data-td-theme="dark"] .td-invite-picker__suggestion:focus-visible {
  background: rgba(61, 92, 42, 0.34);
}

html[data-td-theme="dark"] .td-invite-picker__tag {
  background: rgba(50, 78, 34, 0.72);
  color: #d8f2bf;
}

html[data-td-theme="dark"] .td-invite-picker__tag.is-email {
  background: rgba(105, 72, 21, 0.72);
  color: #ffe2a6;
}

html[data-td-theme="dark"] .btn-light,
html[data-td-theme="dark"] .btn-light-primary,
html[data-td-theme="dark"] .btn-light-info,
html[data-td-theme="dark"] .btn-light-warning,
html[data-td-theme="dark"] .btn-light-danger,
html[data-td-theme="dark"] .btn-light-success,
html[data-td-theme="dark"] .badge-light,
html[data-td-theme="dark"] .badge-light-primary,
html[data-td-theme="dark"] .badge-light-info,
html[data-td-theme="dark"] .badge-light-success,
html[data-td-theme="dark"] .badge-light-warning,
html[data-td-theme="dark"] .badge-light-danger,
html[data-td-theme="dark"] .badge-light-dark,
html[data-td-theme="dark"] .badge-outline-danger {
  background: rgba(43, 34, 25, 0.92) !important;
  border-color: var(--td-line) !important;
  color: var(--td-ink-700) !important;
}

html[data-td-theme="dark"] .form-control,
html[data-td-theme="dark"] .form-select,
html[data-td-theme="dark"] .form-control.form-control-solid,
html[data-td-theme="dark"] .form-select.form-select-solid {
  background: rgba(22, 18, 13, 0.96) !important;
  border-color: var(--td-line-strong) !important;
  color: var(--td-ink-900) !important;
}

html[data-td-theme="dark"] .form-control::placeholder {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .card,
html[data-td-theme="dark"] .card-flush,
html[data-td-theme="dark"] .card-body,
html[data-td-theme="dark"] .card-header,
html[data-td-theme="dark"] .td-workspace-card,
html[data-td-theme="dark"] .td-workspace-strip,
html[data-td-theme="dark"] .td-admin-billing__panel,
html[data-td-theme="dark"] .td-admin-billing__plan,
html[data-td-theme="dark"] .td-admin-billing__compare-card,
html[data-td-theme="dark"] .td-admin-billing__metric,
html[data-td-theme="dark"] .td-admin-billing__quota,
html[data-td-theme="dark"] .td-admin-users-mobile-card,
html[data-td-theme="dark"] .td-activity-mobile-card {
  background: var(--td-panel) !important;
  border-color: var(--td-line) !important;
  color: var(--td-ink-700) !important;
}

html[data-td-theme="dark"] .bg-light,
html[data-td-theme="dark"] .bg-white,
html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-card .rounded-3.bg-white,
html[data-td-theme="dark"] .td-admin-users-mobile-card .rounded-3.bg-white,
html[data-td-theme="dark"] .td-admin-billing__metric {
  background: var(--td-muted) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-card {
  border-color: rgba(216, 164, 93, 0.18) !important;
  background: rgba(29, 23, 17, 0.96) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-card.td-activity-row-active,
html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-card.td-activity-row-expanded,
html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-card.td-activity-row-selected {
  border-color: rgba(158, 190, 115, 0.34) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 159, 78, 0.16), transparent 34%),
    rgba(31, 24, 18, 0.98) !important;
  box-shadow: inset 4px 0 0 rgba(158, 190, 115, 0.9), 0 20px 46px rgba(0, 0, 0, 0.28) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-head {
  border-color: rgba(216, 164, 93, 0.16) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-mobile-section {
  border-color: rgba(216, 164, 93, 0.16) !important;
  background: rgba(20, 16, 12, 0.56) !important;
}

html[data-td-theme="dark"] .td-admin-billing__plan.is-selected {
  background: rgba(158, 190, 115, 0.12) !important;
  border-color: rgba(158, 190, 115, 0.42) !important;
}

html[data-td-theme="dark"] .td-activity-hero-card {
  border-color: rgba(216, 164, 93, 0.18) !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(126, 159, 78, 0.16) 0, transparent 32%),
    linear-gradient(135deg, rgba(35, 27, 20, 0.98), rgba(20, 16, 12, 0.98)) !important;
}

html[data-td-theme="dark"] .td-activity-stat {
  background: rgba(37, 29, 21, 0.82) !important;
  border-color: rgba(216, 164, 93, 0.18) !important;
}

html[data-td-theme="dark"] .td-activity-journal-header {
  background:
    linear-gradient(90deg, rgba(126, 159, 78, 0.12), transparent 44%),
    var(--td-panel) !important;
}

html[data-td-theme="dark"] .td-activity-live-chip {
  border-color: rgba(158, 190, 115, 0.28);
  background: rgba(61, 92, 42, 0.28);
  color: #d8f2bf;
}

html[data-td-theme="dark"] .td-activity-table-shell {
  border-color: rgba(216, 164, 93, 0.14);
  background: rgba(24, 19, 14, 0.98);
}

html[data-td-theme="dark"] .td-activity-table-shell .td-activity-table thead th {
  background: linear-gradient(180deg, rgba(34, 27, 20, 0.98), rgba(28, 22, 16, 0.98)) !important;
  color: rgba(246, 234, 216, 0.72) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-table tbody tr > td {
  background: rgba(24, 19, 14, 0.96) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-table tbody tr:hover > td {
  background: rgba(63, 49, 34, 0.66) !important;
}

html[data-td-theme="dark"] .td-admin-activity .td-activity-table tbody tr.td-activity-row-active > td,
html[data-td-theme="dark"] .td-admin-activity .td-activity-table tbody tr.td-activity-row-expanded > td,
html[data-td-theme="dark"] .td-admin-activity .td-activity-table tbody tr.td-activity-row-selected > td {
  background: linear-gradient(90deg, rgba(61, 92, 42, 0.38), rgba(30, 24, 18, 0.96)) !important;
  box-shadow: inset 4px 0 0 #9ebe73;
}

html[data-td-theme="dark"] .td-activity-row-disclosure,
html[data-td-theme="dark"] .td-activity-inline-link,
html[data-td-theme="dark"] .td-activity-inspector-link {
  color: #d8f2bf;
}

html[data-td-theme="dark"] .td-activity-inspector-card {
  border-color: rgba(216, 164, 93, 0.18) !important;
}

html[data-td-theme="dark"] .td-activity-inspector-header {
  border-color: rgba(216, 164, 93, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 159, 78, 0.14), transparent 34%),
    rgba(29, 23, 17, 0.96);
}

html[data-td-theme="dark"] .td-activity-inspector-eyebrow {
  color: #d8f2bf;
}

html[data-td-theme="dark"] .td-activity-inspector-hero {
  border-color: rgba(216, 164, 93, 0.16);
  background: linear-gradient(145deg, rgba(34, 27, 20, 0.98), rgba(27, 21, 16, 0.96));
}

html[data-td-theme="dark"] .td-activity-inspector-summary {
  background: rgba(16, 13, 10, 0.52);
}

html[data-td-theme="dark"] .td-activity-business-card {
  border-color: rgba(216, 164, 93, 0.16);
  background:
    linear-gradient(145deg, rgba(34, 27, 20, 0.92), rgba(22, 17, 13, 0.88));
}

html[data-td-theme="dark"] .td-activity-business-overview-item {
  border-color: rgba(216, 164, 93, 0.16);
  background: rgba(25, 19, 14, 0.9);
}

html[data-td-theme="dark"] .td-activity-business-card--link {
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 159, 78, 0.15), transparent 38%),
    rgba(22, 17, 13, 0.9);
}

html[data-td-theme="dark"] .td-activity-business-link--cta {
  border-color: rgba(216, 164, 93, 0.22);
  background: rgba(126, 159, 78, 0.1);
}

html[data-td-theme="dark"] .td-activity-business-label,
html[data-td-theme="dark"] .td-activity-business-meta {
  color: rgba(246, 234, 216, 0.64);
}

html[data-td-theme="dark"] .td-activity-business-value {
  color: #fff8ec;
}

html[data-td-theme="dark"] .td-activity-business-link {
  color: #d8f2bf;
}

html[data-td-theme="dark"] .td-activity-inspector-payload {
  border-color: rgba(216, 164, 93, 0.18);
  background: #110c08;
  color: #f3dec0;
}

html[data-td-theme="dark"] .td-activity-inspector-section--technical .td-activity-inspector-fact {
  border-color: rgba(216, 164, 93, 0.16);
  background: rgba(25, 19, 14, 0.9);
}

html[data-td-theme="dark"] .td-activity-inspector-scroll:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(216, 164, 93, 0.24);
}

html[data-td-theme="dark"] .menu.menu-sub,
html[data-td-theme="dark"] .menu-sub-dropdown {
  background: var(--td-panel) !important;
  border-color: var(--td-line) !important;
}

html[data-td-theme="dark"] .td-deal-actions-toggle {
  background: linear-gradient(180deg, rgba(40, 31, 21, 0.98), rgba(28, 21, 14, 0.98));
  border-color: rgba(216, 164, 93, 0.34);
  color: var(--td-ink-100);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 8px 16px rgba(0, 0, 0, 0.24);
}

html[data-td-theme="dark"] .td-deal-actions-toggle:hover,
html[data-td-theme="dark"] .td-deal-actions-toggle:focus-visible {
  background: linear-gradient(180deg, rgba(158, 190, 115, 0.18), rgba(108, 134, 67, 0.16));
  border-color: rgba(158, 190, 115, 0.42);
  color: #fff8ef;
}

html[data-td-theme="dark"] .td-deal-actions-menu.menu.menu-sub,
html[data-td-theme="dark"] .td-deal-actions-menu.menu-sub-dropdown {
  background:
    radial-gradient(circle at 100% 0%, rgba(158, 190, 115, 0.06), transparent 35%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.99), rgba(20, 15, 10, 0.99)) !important;
  border-color: rgba(216, 164, 93, 0.2) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38) !important;
  color: var(--td-ink-100) !important;
}

html[data-td-theme="dark"] .td-deal-actions-menu .menu-link,
html[data-td-theme="dark"] .td-deal-actions-menu .menu-item > * {
  color: var(--td-ink-100) !important;
  opacity: 1 !important;
}

html[data-td-theme="dark"] .td-deal-actions-menu .menu-link:hover,
html[data-td-theme="dark"] .td-deal-actions-menu .menu-item > *:hover {
  background: rgba(158, 190, 115, 0.16) !important;
  color: #fff8ef !important;
}

html[data-td-theme="dark"] .table,
html[data-td-theme="dark"] .table thead,
html[data-td-theme="dark"] .table tbody,
html[data-td-theme="dark"] .table tr,
html[data-td-theme="dark"] .table td,
html[data-td-theme="dark"] .table th {
  color: var(--td-ink-700) !important;
  border-color: var(--td-line) !important;
}

html[data-td-theme="dark"] .table-row-dashed tbody tr {
  border-bottom-color: var(--td-line);
}

html[data-td-theme="dark"] .td-workspace-table tbody tr,
html[data-td-theme="dark"] .td-opportunity-table tbody tr {
  background: var(--td-panel);
}

html[data-td-theme="dark"] .table tbody tr:hover > td,
html[data-td-theme="dark"] .td-workspace-table tbody tr:hover > td,
html[data-td-theme="dark"] .td-opportunity-table tbody tr:hover > td {
  background: rgba(247, 241, 230, 0.04) !important;
}

html[data-td-theme="dark"] .td-activity-toggle-row:hover > td,
html[data-td-theme="dark"] .td-activity-toggle-row:focus-visible > td {
  background: rgba(247, 241, 230, 0.04) !important;
  border-color: rgba(216, 164, 93, 0.16) !important;
}

html[data-td-theme="dark"] .td-activity-toggle-row.td-activity-row-expanded > td,
html[data-td-theme="dark"] .td-activity-toggle-row.td-activity-row-selected > td {
  background: rgba(158, 190, 115, 0.08) !important;
  border-color: rgba(158, 190, 115, 0.18) !important;
}

html[data-td-theme="dark"] .td-activity-toggle-row > td {
  background: var(--td-panel) !important;
  border-color: var(--td-line) !important;
}

html[data-td-theme="dark"] .td-activity-bulk-bar,
html[data-td-theme="dark"] .td-admin-users-filter-form,
html[data-td-theme="dark"] .td-admin-users-reset-panel {
  background: var(--td-muted) !important;
  border-color: var(--td-line) !important;
}

html[data-td-theme="dark"] .td-activity-detail-panel,
html[data-td-theme="dark"] .td-activity-detail-hero,
html[data-td-theme="dark"] .td-activity-detail-card,
html[data-td-theme="dark"] .td-activity-detail-section-card,
html[data-td-theme="dark"] .td-activity-detail-payload-card,
html[data-td-theme="dark"] .td-activity-detail-summary-item,
html[data-td-theme="dark"] .td-activity-detail-meta-item,
html[data-td-theme="dark"] .td-activity-detail-pill,
html[data-td-theme="dark"] .td-activity-inspector-frame,
html[data-td-theme="dark"] .td-activity-inspector-hero,
html[data-td-theme="dark"] .td-activity-inspector-section,
html[data-td-theme="dark"] .td-activity-inspector-quickitem,
html[data-td-theme="dark"] .td-activity-inspector-fact,
html[data-td-theme="dark"] .td-activity-inspector-pill,
html[data-td-theme="dark"] .td-activity-inspector-empty {
  background: var(--td-panel) !important;
  border-color: var(--td-line) !important;
  color: var(--td-ink-700) !important;
}

html[data-td-theme="dark"] .td-market-hero {
  background:
    linear-gradient(90deg, rgba(158, 190, 115, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(158, 190, 115, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, rgba(33, 26, 20, 0.98), rgba(24, 19, 14, 0.98)) !important;
  background-size: 36px 36px;
}

html[data-td-theme="dark"] .td-market-insight {
  border-color: rgba(216, 164, 93, 0.18);
  background: linear-gradient(180deg, rgba(39, 30, 22, 0.96), rgba(31, 24, 18, 0.96));
}

html[data-td-theme="dark"] .td-market-insight__kicker {
  color: var(--td-accent-600);
}

html[data-td-theme="dark"] .td-market-insight__value {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-market-insight__note {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-market-overview-card,
html[data-td-theme="dark"] .td-market-overview-card .card-header,
html[data-td-theme="dark"] .td-market-overview-card .card-body {
  border-color: rgba(216, 164, 93, 0.18) !important;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 164, 93, 0.12), transparent 28%),
    linear-gradient(155deg, #211912 0%, #17120d 55%, #26361e 100%) !important;
}

html[data-td-theme="dark"] .td-market-overview-kicker,
html[data-td-theme="dark"] .td-market-overview-budget span,
html[data-td-theme="dark"] .td-market-overview-metrics span {
  color: rgba(247, 241, 230, 0.72);
}

html[data-td-theme="dark"] .td-market-overview-title,
html[data-td-theme="dark"] .td-market-overview-budget strong,
html[data-td-theme="dark"] .td-market-overview-metrics strong {
  color: #fffaf1;
}

html[data-td-theme="dark"] .td-market-overview-count {
  border-color: rgba(247, 241, 230, 0.16);
  background: rgba(247, 241, 230, 0.08);
  color: #fff0d5;
}

html[data-td-theme="dark"] .td-market-overview-metrics div {
  border-color: rgba(247, 241, 230, 0.12);
  background: rgba(247, 241, 230, 0.06);
}

html[data-td-theme="dark"] .td-market-switcher {
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(26, 21, 16, 0.98)) !important;
  border-color: var(--td-line) !important;
}

html[data-td-theme="dark"] .td-market-table-card,
html[data-td-theme="dark"] .td-market-table-card .card-body {
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(26, 21, 16, 0.98)) !important;
}

html[data-td-theme="dark"] .td-deal-card {
  border-color: rgba(216, 164, 93, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(25, 19, 14, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-td-theme="dark"] .td-deal-card:hover {
  border-color: rgba(216, 164, 93, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(38, 30, 22, 0.99), rgba(29, 22, 16, 0.99)) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

html[data-td-theme="dark"] .td-deal-card__title,
html[data-td-theme="dark"] .td-deal-card__actor strong,
html[data-td-theme="dark"] .td-deal-card__meta strong {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-deal-card__description,
html[data-td-theme="dark"] .td-deal-card__actor small,
html[data-td-theme="dark"] .td-deal-card__meta span,
html[data-td-theme="dark"] .td-deal-card__status span:last-child {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-deal-card__meta div,
html[data-td-theme="dark"] .td-deal-card__side {
  border-color: rgba(216, 164, 93, 0.22);
  background: rgba(18, 13, 9, 0.68);
}

html[data-td-theme="dark"] .td-deal-card:hover .td-deal-card__meta div,
html[data-td-theme="dark"] .td-deal-card:hover .td-deal-card__side {
  border-color: rgba(216, 164, 93, 0.3);
  background: rgba(20, 15, 10, 0.76);
}

html[data-td-theme="dark"] .td-deal-card__status {
  border-color: rgba(216, 164, 93, 0.22);
}

html[data-td-theme="dark"] .td-deal-card__actor > span {
  background: rgba(158, 190, 115, 0.18);
  color: var(--td-brand-700);
}

html[data-td-theme="dark"] .td-opportunity-table tbody tr:hover > td {
  background: rgba(247, 241, 230, 0.04);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions {
  border-color: rgba(216, 164, 93, 0.18);
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.96) 0%, rgba(24, 19, 14, 0.96) 100%);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions.active {
  border-color: rgba(158, 190, 115, 0.24);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-nav-section__title,
html[data-td-theme="dark"] .td-nav-section--quick-actions .td-nav-section__subtitle {
  color: var(--td-brand-900);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-nav-section__count {
  border-color: rgba(158, 190, 115, 0.2);
  background: rgba(158, 190, 115, 0.12);
  color: var(--td-brand-900);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-nav-section__prompt {
  border-color: rgba(216, 164, 93, 0.18);
  background: rgba(43, 34, 25, 0.92);
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-nav-section__prompt-icon {
  color: var(--td-accent-600);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-fixed-action .td-nav-item__icon {
  color: var(--td-brand-800);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.24));
}

html[data-td-theme="dark"] .td-inline-tooltip[data-tooltip]::after {
  background: rgba(247, 241, 230, 0.96);
  color: #2b2118;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
}

html[data-td-theme="dark"] .td-inline-tooltip[data-tooltip]::before {
  background: rgba(247, 241, 230, 0.96);
}

html[data-td-theme="dark"] .td-opportunity-search__icon,
html[data-td-theme="dark"] .td-admin-users-field__icon {
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-fixed-action:hover .td-nav-item__icon,
html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-fixed-action.is-active .td-nav-item__icon {
  color: #fff4de;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__link {
  background: rgba(43, 34, 25, 0.92);
  border-color: rgba(216, 164, 93, 0.14);
  color: var(--td-ink-700);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__link:hover {
  background: rgba(49, 39, 29, 0.96);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__metric {
  background: rgba(216, 164, 93, 0.14);
  color: #fff4de;
}

html[data-td-theme="dark"] .td-admin-launcher__toggle {
  border-color: rgba(191, 227, 141, 0.28);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, #87aa5f 0%, #263b18 100%);
  color: #fff7e8;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-td-theme="dark"] .td-admin-launcher__menu {
  border-color: rgba(191, 227, 141, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(23, 18, 13, 0.98));
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.34),
    0 10px 20px rgba(0, 0, 0, 0.22);
}

html[data-td-theme="dark"] .td-admin-launcher__item {
  background: rgba(33, 26, 20, 0.96);
  border-color: rgba(191, 227, 141, 0.16);
  color: #ddd0ba;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-td-theme="dark"] .td-admin-launcher__item:hover,
html[data-td-theme="dark"] .td-admin-launcher__item.is-active {
  background: rgba(49, 65, 32, 0.98);
  border-color: rgba(191, 227, 141, 0.28);
  color: #fff7e8;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32),
    0 0 0 4px rgba(191, 227, 141, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-td-theme="dark"] .td-script-launcher-pre {
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.98) 0%, rgba(9, 7, 5, 0.98) 100%);
  color: #f7eddc;
  border-color: rgba(191, 227, 141, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.25);
}

html[data-td-theme="dark"] .td-script-otp-panel {
  border-color: rgba(191, 160, 98, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 227, 141, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(28, 22, 16, 0.98) 0%, rgba(19, 15, 11, 0.98) 100%);
}

html[data-td-theme="dark"] .td-script-otp-panel .progress {
  background: rgba(191, 160, 98, 0.14);
}

html[data-td-theme="dark"] .td-script-otp-panel.is-expired {
  border-color: rgba(197, 86, 58, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 86, 58, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(32, 20, 18, 0.98) 0%, rgba(22, 14, 12, 0.98) 100%);
}

html[data-td-theme="dark"] .td-script-launcher__run-button {
  color: var(--td-ink-300);
  background: rgba(255, 255, 255, 0.03);
}

html[data-td-theme="dark"] .td-script-launcher__run-button:hover,
html[data-td-theme="dark"] .td-script-launcher__run-button:focus,
html[data-td-theme="dark"] .td-script-launcher__run-button:focus-visible {
  color: var(--td-ink-900);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--td-line-strong);
}

@media (max-width: 575.98px) {
  .td-admin-launcher {
    right: 14px;
    bottom: 14px;
  }

  .td-admin-launcher.td-popover summary {
    width: 52px;
    height: 52px;
    border-radius: 999px;
  }

  .td-admin-launcher__item {
    width: 42px;
    height: 42px;
    border-radius: 999px;
  }

  .td-admin-launcher .td-inline-tooltip[data-tooltip]::after,
  .td-admin-launcher .td-inline-tooltip[data-tooltip]::before {
    display: none;
  }

  .td-admin-launcher__pulse {
    top: 9px;
    right: 9px;
  }
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-dropdown__toggle {
  border-color: rgba(216, 164, 93, 0.18);
  background: rgba(43, 34, 25, 0.92);
  color: var(--td-brand-900);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-dropdown__toggle:hover {
  background: rgba(56, 44, 32, 0.96);
  border-color: rgba(216, 164, 93, 0.28);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-dropdown__toggle[aria-expanded="true"] {
  border-color: rgba(158, 190, 115, 0.24);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-dropdown__count {
  background: rgba(216, 164, 93, 0.14);
  color: #fff4de;
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__remove,
html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__more {
  border-color: rgba(216, 164, 93, 0.18);
  background: rgba(43, 34, 25, 0.92);
  color: var(--td-brand-900);
}

html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__remove:hover,
html[data-td-theme="dark"] .td-nav-section--quick-actions .td-quick-action-shortcut__more:hover {
  background: rgba(56, 44, 32, 0.96);
  border-color: rgba(216, 164, 93, 0.28);
  color: #fff4de;
}

html[data-td-theme="dark"] .td-body--auth {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 164, 93, 0.16), transparent 30%),
    linear-gradient(135deg, #15100c 0%, var(--td-paper) 48%, #231b14 100%) !important;
}

html[data-td-theme="dark"] .td-auth-layout {
  background:
    linear-gradient(90deg, rgba(158, 190, 115, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(158, 190, 115, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.td-auth-brand-panel,
.td-auth-form-panel {
  min-width: 0;
}

.td-auth-form-panel {
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 26px);
}

.td-auth-brand-panel__inner,
.td-auth-form-card {
  min-height: min(760px, calc(100vh - 56px));
}

.td-auth-brand-panel__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 54px) !important;
  color: #fff8ec !important;
  border: 1px solid rgba(255, 250, 241, 0.18) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 84% 22%, rgba(201, 133, 43, 0.28), transparent 26%),
    linear-gradient(145deg, var(--td-brand-950) 0%, var(--td-brand-900) 54%, #2f4f22 100%) !important;
  box-shadow: 0 22px 54px rgba(75, 50, 22, 0.16) !important;
}

.td-auth-brand-panel--gold .td-auth-brand-panel__inner {
  background:
    radial-gradient(circle at 12% 18%, rgba(82, 122, 45, 0.26), transparent 26%),
    linear-gradient(145deg, #4b3216 0%, #7b501b 52%, #c9852b 100%) !important;
}

.td-auth-brand-panel__inner::after {
  content: "";
  position: absolute;
  inset: auto -16% -18% auto;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.06);
}

.td-auth-brand-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff8ec;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.td-auth-brand-lockup:hover {
  color: #fff8ec;
}

.td-auth-brand-lockup img,
.td-auth-hero__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff8ec;
  padding: 5px;
}

.td-auth-hero__logo--full,
.td-auth-brand-lockup .td-auth-hero__logo--full {
  width: 188px;
  height: auto;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.td-auth-hero-badge,
.td-auth-kicker,
.td-auth-form-eyebrow,
.td-deal-card__ref {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 900;
}

.td-auth-hero-badge {
  color: #f7e5c7 !important;
}

.td-auth-editorial {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.td-auth-kicker {
  color: var(--td-accent-100);
}

.td-auth-hero-title {
  max-width: 720px;
  color: #fff8ec !important;
  font-size: clamp(2.45rem, 4vw, 5.2rem) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.055em !important;
  text-transform: uppercase;
}

.td-auth-hero-copy {
  max-width: 620px;
  color: rgba(255, 250, 241, 0.78) !important;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.td-auth-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.td-auth-proof-grid div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.08);
}

.td-auth-proof-grid span {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 250, 241, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.td-auth-proof-grid strong {
  display: block;
  color: #fff8ec;
  font-size: 0.92rem;
  line-height: 1.3;
}

.td-auth-product-card {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 250, 241, 0.18);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.08);
}

.td-auth-card {
  max-width: 600px;
}

.td-auth-form-card {
  display: flex;
  align-items: center;
  padding: clamp(22px, 4vw, 54px) !important;
  border-color: var(--td-line-strong) !important;
  border-radius: 28px !important;
  background: rgba(255, 250, 241, 0.92) !important;
  box-shadow: 0 20px 48px rgba(75, 50, 22, 0.11) !important;
}

.td-auth-form-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.td-auth-form-eyebrow {
  color: var(--td-accent-600);
}

.td-auth-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.td-auth-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background: #fff6e8;
  color: var(--td-ink-900);
  text-decoration: none;
}

.td-auth-quick-link:hover {
  border-color: var(--td-brand-300);
  background: var(--td-brand-100);
  color: var(--td-ink-900);
}

.td-auth-quick-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--td-brand-900);
  color: #fff8ec;
  font-weight: 900;
}

.td-auth-form-meta,
.td-auth-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--td-ink-500);
  font-size: 0.84rem;
  font-weight: 700;
}

.td-auth-footer-note {
  justify-content: center;
}

.link-primary {
  color: var(--td-brand-700) !important;
  font-weight: 900;
}

.link-primary:hover {
  color: var(--td-brand-900) !important;
}

.td-password-input {
  padding-right: 5.35rem !important;
}

.td-password-toggle {
  right: 8px !important;
  width: auto !important;
  min-width: 66px !important;
  min-height: 28px !important;
  height: 28px;
  padding: 0 10px !important;
  border-color: var(--td-line-strong) !important;
  background: #fffaf1 !important;
  color: var(--td-brand-900) !important;
  font-size: 0.7rem;
  font-weight: 900;
  transform: translateY(-50%) !important;
}

.td-password-toggle--compact {
  min-width: 60px !important;
  height: 30px;
}

.td-password-toggle [data-password-toggle-icon] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.td-password-toggle [data-password-toggle-icon="hidden"]::before,
.td-password-toggle [data-password-toggle-icon="visible"]::before {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
}

.td-password-toggle [data-password-toggle-icon="hidden"]::before {
  content: "◉";
}

.td-password-toggle [data-password-toggle-icon="visible"]::before {
  content: "◎";
}

.td-password-toggle:hover {
  background: var(--td-brand-100) !important;
  color: var(--td-brand-900) !important;
}

html[data-td-theme="dark"] .td-auth-shell::before {
  background: radial-gradient(circle, rgba(158, 190, 115, 0.18) 0%, rgba(158, 190, 115, 0) 68%);
}

html[data-td-theme="dark"] .td-auth-shell::after {
  background: radial-gradient(circle, rgba(216, 164, 93, 0.18) 0%, rgba(216, 164, 93, 0) 68%);
}

html[data-td-theme="dark"] .td-auth-brand-panel__inner {
  border-color: rgba(247, 241, 230, 0.14) !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 164, 93, 0.2), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(158, 190, 115, 0.12), transparent 30%),
    linear-gradient(145deg, #0f0b08 0%, #1d150f 52%, #26301f 100%) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42) !important;
}

html[data-td-theme="dark"] .td-auth-brand-panel--gold .td-auth-brand-panel__inner {
  background:
    radial-gradient(circle at 12% 18%, rgba(158, 190, 115, 0.14), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(216, 164, 93, 0.18), transparent 26%),
    linear-gradient(145deg, #120d09 0%, #281a0f 52%, #3a2918 100%) !important;
}

html[data-td-theme="dark"] .td-auth-hero__logo--full,
html[data-td-theme="dark"] .td-auth-brand-lockup .td-auth-hero__logo--full {
  padding: 8px 10px;
  border: 1px solid rgba(247, 241, 230, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-td-theme="dark"] .td-auth-form-card {
  border-color: rgba(216, 164, 93, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 164, 93, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(33, 26, 20, 0.96), rgba(23, 18, 13, 0.98)) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48) !important;
}

html[data-td-theme="dark"] .td-auth-form-card .td-page-title,
html[data-td-theme="dark"] .td-auth-form-card .text-gray-900 {
  color: var(--td-ink-900) !important;
}

html[data-td-theme="dark"] .td-auth-form-card .td-page-hero__microcopy,
html[data-td-theme="dark"] .td-auth-form-card .text-gray-700,
html[data-td-theme="dark"] .td-auth-form-card .text-gray-500,
html[data-td-theme="dark"] .td-auth-form-card .text-muted,
html[data-td-theme="dark"] .td-auth-form-meta,
html[data-td-theme="dark"] .td-auth-footer-note {
  color: var(--td-ink-500) !important;
}

html[data-td-theme="dark"] .td-auth-form-card .form-label,
html[data-td-theme="dark"] .td-auth-form-card .form-check-label {
  color: var(--td-ink-700) !important;
}

html[data-td-theme="dark"] .td-auth-form-card .form-control,
html[data-td-theme="dark"] .td-auth-form-card .form-control.bg-transparent,
html[data-td-theme="dark"] .td-auth-form-card .form-control.form-control-solid {
  border-color: rgba(216, 164, 93, 0.28) !important;
  background: rgba(18, 13, 9, 0.88) !important;
  color: var(--td-ink-900) !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.04);
}

html[data-td-theme="dark"] .td-auth-form-card .form-control:focus,
html[data-td-theme="dark"] .td-auth-form-card .form-control.bg-transparent:focus,
html[data-td-theme="dark"] .td-auth-form-card .form-control.form-control-solid:focus {
  border-color: rgba(216, 164, 93, 0.58) !important;
  background: rgba(13, 9, 6, 0.96) !important;
  box-shadow: 0 0 0 4px rgba(216, 164, 93, 0.14);
}

html[data-td-theme="dark"] .td-auth-form-card .form-control::placeholder {
  color: rgba(176, 158, 133, 0.78);
}

html[data-td-theme="dark"] .td-auth-quick-link {
  border-color: rgba(216, 164, 93, 0.24);
  background: rgba(43, 34, 25, 0.78);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-auth-quick-link:hover {
  border-color: rgba(158, 190, 115, 0.5);
  background: rgba(38, 48, 31, 0.9);
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-auth-quick-link span {
  background: rgba(158, 190, 115, 0.18);
  color: var(--td-brand-700);
}

html[data-td-theme="dark"] .td-password-toggle {
  border-color: rgba(216, 164, 93, 0.32) !important;
  background: rgba(58, 41, 24, 0.92) !important;
  color: var(--td-accent-600) !important;
}

html[data-td-theme="dark"] .td-password-toggle:hover {
  background: rgba(216, 164, 93, 0.16) !important;
  color: var(--td-ink-900) !important;
}

html[data-td-theme="dark"] .td-auth-form-card .form-check-input {
  border-color: rgba(216, 164, 93, 0.38);
  background-color: rgba(18, 13, 9, 0.88);
}

html[data-td-theme="dark"] .td-auth-form-card .form-check-input:checked {
  border-color: var(--td-brand-700);
  background-color: var(--td-brand-700);
}

html[data-td-theme="dark"] .td-auth-form-card .alert-danger {
  border-color: rgba(239, 143, 134, 0.44);
  background: rgba(82, 22, 18, 0.5);
  color: #ffd4cf;
}

html[data-td-theme="dark"] .td-auth-form-card [data-td-password-meter-control="highlight"] .bg-secondary {
  background-color: rgba(216, 164, 93, 0.18) !important;
}

html[data-td-theme="dark"] .td-auth-product-card,
html[data-td-theme="dark"] .td-auth-proof-grid div {
  border-color: rgba(247, 241, 230, 0.14);
  background: rgba(255, 250, 241, 0.06);
}

.td-admin-settings-switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.7);
  box-shadow: 0 10px 20px rgba(75, 50, 22, 0.04);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.td-admin-settings-switch:hover {
  border-color: var(--td-line-strong);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(75, 50, 22, 0.06);
  transform: translateY(-1px);
}

.td-admin-settings-switch .form-check-input {
  flex: 0 0 auto;
  width: 2rem;
  height: 1rem;
  margin: 0.12rem 0 0;
}

.td-admin-settings-switch .form-check-label {
  margin: 0;
  line-height: 1.45;
}

.td-admin-settings-switch .form-check-label .d-block:first-child {
  color: var(--td-ink-900) !important;
}

.td-admin-settings-switch .form-check-label .d-block:last-child {
  font-size: 0.78rem !important;
}

html[data-td-theme="dark"] .td-admin-settings-switch {
  border-color: rgba(216, 164, 93, 0.24);
  background: rgba(27, 21, 15, 0.82);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

html[data-td-theme="dark"] .td-admin-settings-switch:hover {
  border-color: rgba(216, 164, 93, 0.38);
  background: rgba(33, 25, 18, 0.94);
}

.td-admin-user-create-form .card-body {
  padding-top: 12px !important;
}

.td-admin-user-form-block {
  margin: 2px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--td-line);
  border-radius: 12px;
  background: #fbf3e6;
}

.td-admin-user-form-block__kicker {
  color: var(--td-brand-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-admin-user-form-block__copy {
  margin-top: 4px;
  color: var(--td-ink-500);
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 700;
}

.td-admin-user-create-actions {
  border-top: 1px solid var(--td-line);
}

.td-admin-user-create-actions__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32em;
}

.td-admin-user-create-btn {
  min-height: 38px;
  font-size: 0.82rem;
  font-weight: 800;
}

.td-admin-user-create-btn--cancel {
  border-color: var(--td-line-strong) !important;
  background: #fffdf8 !important;
  color: var(--td-ink-700) !important;
}

.td-admin-user-create-btn--cancel:hover {
  background: #fbf3e6 !important;
  color: var(--td-ink-900) !important;
}

@media (min-width: 992px) {
  .td-auth-shell--login {
    min-height: 100dvh;
    overflow: auto;
    padding: 14px;
    gap: 14px;
  }

  .td-auth-shell--login .td-auth-form-panel {
    padding: 0;
  }

  .td-auth-shell--login .td-auth-brand-panel__inner,
  .td-auth-shell--login .td-auth-form-card {
    min-height: calc(100dvh - 28px);
  }

  .td-auth-shell--login .td-auth-brand-panel__inner {
    padding: clamp(22px, 3vw, 42px) !important;
  }

  .td-auth-shell--login .td-auth-form-card {
    padding: clamp(22px, 3vw, 42px) !important;
  }

  .td-auth-shell--login .td-auth-hero-title {
    font-size: clamp(2.15rem, 3.6vw, 4.4rem) !important;
  }

  .td-auth-shell--login .td-auth-hero-copy {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .td-auth-shell--login .td-auth-editorial {
    gap: 14px;
  }

  .td-auth-shell--login .td-auth-proof-grid {
    gap: 8px;
    margin-top: 4px;
  }

  .td-auth-shell--login .td-auth-proof-grid div {
    min-height: 84px;
    padding: 11px;
  }

  .td-auth-shell--login .td-auth-proof-grid span {
    margin-bottom: 12px;
    font-size: 0.65rem;
  }

  .td-auth-shell--login .td-auth-product-card {
    padding: 12px;
  }

  .td-auth-shell--login .td-auth-product-card__grid div {
    min-height: 58px;
    padding: 9px;
  }

  .td-auth-shell--login .td-auth-product-card__header {
    padding-bottom: 9px;
  }

  .td-auth-shell--login .td-auth-product-card__grid {
    padding-top: 9px;
  }

  .td-auth-shell--login .td-auth-form-heading {
    gap: 6px;
    margin-bottom: 18px;
  }

  .td-auth-shell--login .td-page-title {
    font-size: 1.6rem !important;
  }

  .td-auth-shell--login .td-page-hero__microcopy {
    font-size: 0.84rem;
  }

  .td-auth-shell--login .td-auth-quick-links {
    gap: 8px;
    margin-bottom: 18px;
  }

  .td-auth-shell--login .td-auth-quick-link {
    min-height: 52px;
    padding: 8px 10px;
  }

  .td-auth-shell--login .td-auth-quick-link span {
    width: 30px;
    height: 30px;
  }

  .td-auth-shell--login .form-control,
  .td-auth-shell--login .form-select,
  .td-auth-shell--login .form-control.form-control-solid {
    min-height: 38px;
  }

  .td-auth-shell--login .form-label {
    margin-bottom: 4px;
    font-size: 0.74rem;
  }

  .td-auth-shell--login .fv-row,
  .td-auth-shell--login .mb-7,
  .td-auth-shell--login .mb-8 {
    margin-bottom: 14px !important;
  }

  .td-auth-shell--login .mb-3 {
    margin-bottom: 10px !important;
  }

  .td-auth-shell--login .td-auth-form-meta {
    margin-bottom: 14px;
  }

  .td-auth-shell--login #td_sign_in_submit {
    min-height: 40px;
  }

  .td-auth-shell--register {
    min-height: 100dvh;
    overflow: auto;
    padding: 14px;
    gap: 14px;
  }

  .td-auth-shell--register .td-auth-form-panel {
    padding: 0;
  }

  .td-auth-shell--register .td-auth-brand-panel__inner,
  .td-auth-shell--register .td-auth-form-card {
    min-height: calc(100dvh - 28px);
  }

  .td-auth-shell--register .td-auth-brand-panel__inner {
    padding: clamp(22px, 3vw, 38px) !important;
  }

  .td-auth-shell--register .td-auth-form-card {
    padding: clamp(20px, 2.5vw, 34px) !important;
  }

  .td-auth-shell--register .td-auth-hero-title {
    font-size: clamp(2.05rem, 3.4vw, 4.2rem) !important;
  }

  .td-auth-shell--register .td-auth-hero-copy {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .td-auth-shell--register .td-auth-editorial {
    gap: 12px;
  }

  .td-auth-shell--register .td-auth-proof-grid {
    gap: 8px;
    margin-top: 4px;
  }

  .td-auth-shell--register .td-auth-proof-grid div {
    min-height: 82px;
    padding: 11px;
  }

  .td-auth-shell--register .td-auth-proof-grid span {
    margin-bottom: 12px;
    font-size: 0.65rem;
  }

  .td-auth-shell--register .td-auth-product-card {
    padding: 12px;
  }

  .td-auth-shell--register .td-auth-product-card__grid div {
    min-height: 58px;
    padding: 9px;
  }

  .td-auth-shell--register .td-auth-product-card__header {
    padding-bottom: 9px;
  }

  .td-auth-shell--register .td-auth-product-card__grid {
    padding-top: 9px;
  }

  .td-auth-shell--register .td-auth-form-heading {
    gap: 6px;
    margin-bottom: 16px;
  }

  .td-auth-shell--register .td-page-title {
    font-size: 1.55rem !important;
  }

  .td-auth-shell--register .td-page-hero__microcopy {
    font-size: 0.82rem;
  }

  .td-auth-shell--register .td-auth-quick-links {
    gap: 8px;
    margin-bottom: 16px;
  }

  .td-auth-shell--register .td-auth-quick-link {
    min-height: 50px;
    padding: 8px 10px;
  }

  .td-auth-shell--register .td-auth-quick-link span {
    width: 30px;
    height: 30px;
  }

  .td-auth-shell--register .form-control,
  .td-auth-shell--register .form-select,
  .td-auth-shell--register .form-control.form-control-solid {
    min-height: 36px;
  }

  .td-auth-shell--register .form-label {
    margin-bottom: 4px;
    font-size: 0.74rem;
  }

  .td-auth-shell--register .fv-row,
  .td-auth-shell--register .mb-6,
  .td-auth-shell--register .mb-7,
  .td-auth-shell--register .mb-8 {
    margin-bottom: 12px !important;
  }

  .td-auth-shell--register .mb-3 {
    margin-bottom: 8px !important;
  }

  .td-auth-shell--register .mt-4 {
    margin-top: 10px !important;
  }

  .td-auth-shell--register [data-td-password-meter-control="highlight"] {
    margin-bottom: 8px !important;
  }

  .td-auth-shell--register [data-password-generator] {
    min-height: 30px;
    padding: 5px 9px;
  }

  .td-auth-shell--register [data-password-generator] .td-inline-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .td-auth-shell--register [data-password-generator-status],
  .td-auth-shell--register .text-muted.fs-7 {
    font-size: 0.72rem !important;
    line-height: 1.35;
  }

  .td-auth-shell--register #td_sign_up_submit {
    min-height: 38px;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  .td-auth-shell--login .td-auth-product-card {
    display: none;
  }

  .td-auth-shell--login .td-auth-proof-grid div {
    min-height: 70px;
  }

  .td-auth-shell--login .td-auth-hero-title {
    font-size: clamp(1.85rem, 3vw, 3.45rem) !important;
  }

  .td-auth-shell--register .td-auth-product-card {
    display: none;
  }

  .td-auth-shell--register .td-auth-proof-grid div {
    min-height: 70px;
  }

  .td-auth-shell--register .td-auth-hero-title {
    font-size: clamp(1.8rem, 3vw, 3.35rem) !important;
  }
}

@media (max-width: 767.98px) {
  .td-admin-user-create-actions__group {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .td-admin-user-create-btn {
    min-width: 0;
  }
}

.td-market-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
  background:
    linear-gradient(90deg, rgba(82, 122, 45, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(82, 122, 45, 0.06) 1px, transparent 1px),
    var(--td-panel) !important;
  background-size: 36px 36px;
}

.td-market-hero::before {
  background: linear-gradient(90deg, var(--td-brand-700), var(--td-accent)) !important;
}

.td-market-title {
  max-width: 780px;
  font-size: clamp(2rem, 2.6vw, 3.85rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
  text-transform: uppercase;
}

.td-market-copy {
  max-width: 760px;
  color: var(--td-ink-500) !important;
  font-size: 1rem;
  line-height: 1.65;
}

.td-market-hero-layout>.mw-750px {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100% !important;
}

.td-market-hero-layout {
  align-items: flex-start !important;
}

.td-market-insights-row {
  display: block;
  margin-top: 16px;
}

.td-market-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 0;
  align-items: stretch;
}

.td-market-insight {
  min-width: 0;
  min-height: 148px;
  padding: 12px;
  border: 1px solid var(--td-line);
  border-radius: 16px;
  background: #fff7ea;
}

.td-market-insight__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--td-accent-600);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.td-market-insight__value {
  display: block;
  color: var(--td-ink-900);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.3;
}

.td-market-insight__note {
  margin: 8px 0 0;
  color: var(--td-ink-500);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.62;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 1399.98px) {
  .td-market-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.td-market-overview-card,
.td-market-overview-card .card-header,
.td-market-overview-card .card-body {
  border-color: var(--td-brand-900) !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 133, 43, 0.16), transparent 26%),
    linear-gradient(145deg, var(--td-brand-950), var(--td-brand-900) 62%, #315222) !important;
}

.td-market-overview-card {
  overflow: hidden;
  border-radius: 24px !important;
}

.td-market-overview-header {
  display: flex;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 10px !important;
  border-bottom: 0 !important;
}

.td-market-overview-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 250, 241, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.td-market-overview-title {
  margin: 0;
  color: #fff8ec;
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.28rem, 1.5vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}

.td-market-overview-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  color: #f7e5c7;
  font-size: 0.72rem;
  font-weight: 900;
}

.td-market-overview-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 12px 24px 24px !important;
}

.td-market-overview-budget span,
.td-market-overview-metrics span {
  display: block;
  color: rgba(255, 250, 241, 0.56);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.td-market-overview-budget strong {
  display: block;
  margin-top: 8px;
  color: #fff8ec;
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.td-market-overview-chart {
  width: 100%;
  min-height: 116px;
}

.td-market-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.td-market-overview-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.07);
}

.td-market-overview-metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: #fff8ec;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-market-stat-card,
.td-market-switcher,
.td-stage-column,
.td-market-table-card {
  border-radius: 20px !important;
}

.td-market-table-card,
.td-market-table-card .card-body {
  min-width: 0;
}

.td-market-table-card .table-responsive {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.td-market-stat-card .card-body {
  min-height: 104px;
}

.td-view-toggle {
  min-width: 138px;
}

.td-view-toggle.active {
  background: var(--td-brand-700) !important;
  border-color: var(--td-brand-700) !important;
  color: #fff8ec !important;
}

#td_project_opportunities_card_pane .row {
  --bs-gutter-x: 1.1rem;
  --bs-gutter-y: 1.1rem;
}

#td_project_opportunities_card_pane .td-stage-column {
  min-width: 0;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0, rgba(82, 122, 45, 0.09), transparent 38%),
    var(--td-panel) !important;
  overflow: visible !important;
}

#td_project_opportunities_card_pane .td-stage-column .card-header {
  padding: 14px 16px 12px !important;
  border-bottom: 1px solid var(--td-line) !important;
  background: linear-gradient(180deg, rgba(82, 122, 45, 0.08), rgba(82, 122, 45, 0.02));
}

#td_project_opportunities_card_pane .td-stage-column .card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px !important;
  padding: 12px !important;
}

#td_project_opportunities_card_pane .td-stage-column h3 {
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

#td_project_opportunities_card_pane .td-stage-column .badge {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

#td_project_opportunities_card_pane .td-stage-column .text-gray-500 {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

#td_project_opportunities_card_pane .td-stage-empty {
  margin: 0 !important;
  border: 1px dashed var(--td-line-strong) !important;
  border-radius: 14px !important;
  background: #fffaf1 !important;
  color: var(--td-ink-500) !important;
  padding: 12px 14px !important;
}

#td_project_opportunities_card_pane .td-opportunity-card {
  min-width: 0;
  border: 1px solid var(--td-line) !important;
  border-radius: 16px !important;
  background: #fffdf8 !important;
  box-shadow: 0 1px 2px rgba(75, 50, 22, 0.06) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  z-index: 1;
}

#td_project_opportunities_card_pane .td-opportunity-card:hover {
  transform: translateY(-1px) !important;
  border-color: var(--td-line-strong) !important;
  box-shadow: 0 8px 22px rgba(75, 50, 22, 0.1) !important;
  z-index: 2;
}

#td_project_opportunities_card_pane .td-opportunity-card .card-body {
  min-width: 0;
  gap: 12px !important;
  padding: 14px !important;
}

#td_project_opportunities_card_pane .td-opportunity-card .symbol-label {
  width: 36px;
  height: 36px;
  border-radius: 11px !important;
  background: #e8efe0 !important;
  color: #4d742a !important;
}

#td_project_opportunities_card_pane .td-opportunity-title {
  font-size: 1.02rem !important;
  line-height: 1.28;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#td_project_opportunities_card_pane .td-opportunity-description {
  color: var(--td-ink-500) !important;
  font-size: 0.86rem;
  line-height: 1.48;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#td_project_opportunities_card_pane .td-opportunity-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#td_project_opportunities_card_pane .td-opportunity-meta-item {
  min-width: 0;
  min-height: 64px;
  padding: 9px 10px !important;
  border: 1px solid var(--td-line) !important;
  border-radius: 12px !important;
  background: #fff6e8 !important;
}

#td_project_opportunities_card_pane .td-opportunity-meta-item .text-gray-900 {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.89rem !important;
  line-height: 1.2;
}

#td_project_opportunities_card_pane .td-opportunity-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--td-line);
  margin-top: 4px;
  padding-top: 10px !important;
  gap: 10px !important;
}

#td_project_opportunities_card_pane .td-opportunity-footer .btn.btn-icon {
  min-width: 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
}

#td_project_opportunities_card_pane .td-opportunity-footer .td-action-menu summary {
  width: 2.2rem;
  height: 2.2rem;
  border-color: var(--td-line-strong);
}

@media (max-width: 991.98px) {
  #td_project_opportunities_card_pane .row {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  #td_project_opportunities_card_pane .td-opportunity-meta-grid {
    grid-template-columns: 1fr;
  }
}

.td-opportunity-table {
  width: 100%;
  table-layout: auto;
}

.td-opportunity-table tbody tr {
  position: relative;
  border-top: 1px solid var(--td-line);
  transition: background-color 0.18s ease;
}

.td-opportunity-table tbody td {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.td-opportunity-table tbody tr:hover>td {
  background: #fff6e8;
}

.td-opportunity-table tbody td[data-label="Deal"] .d-flex.align-items-start {
  min-width: 0;
}

.td-opportunity-table tbody td[data-label="Deal"] .symbol-label {
  width: 38px;
  height: 38px;
  border-radius: 12px !important;
  background: #e8efe0 !important;
  color: #4d742a !important;
}

.td-opportunity-table .td-opportunity-title {
  font-size: 1.03rem;
  line-height: 1.22;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.td-opportunity-table .td-opportunity-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.36;
}

.td-opportunity-table td[data-label="Étape"] .badge {
  border-width: 1px !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
}

.td-opportunity-table td[data-label="Budget"] .text-gray-900 {
  font-size: 1.05rem !important;
  line-height: 1.2;
}

.td-opportunity-table td[data-label="Repères"] .text-gray-900 {
  font-size: 1rem !important;
}

.td-opportunity-table td[data-label="Repères"] .text-gray-500 {
  font-weight: 700 !important;
}

.td-opportunity-table td[data-label="Action"] .btn {
  min-width: 46px;
}

.td-opportunity-table td[data-label="Action"] .td-action-menu summary {
  width: 2.2rem;
  height: 2.2rem;
}

.td-deals-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.td-deal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 32%);
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(18px, 2.4vw, 34px);
  border: 1px solid var(--td-line);
  border-radius: 24px;
  background: var(--td-panel);
  box-shadow: var(--td-shadow);
}

.td-deal-card:hover {
  border-color: var(--td-line-strong);
  background: #fff6e8;
}

.td-deal-card__main {
  min-width: 0;
}

.td-deal-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.td-deal-card__ref {
  color: var(--td-accent-600);
}

.td-deal-card__title {
  display: block;
  max-width: 840px;
  color: var(--td-ink-900);
  font-size: clamp(1.35rem, 2vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.td-deal-card__title:hover {
  color: var(--td-brand-700);
}

.td-deal-card__description {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--td-ink-500);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.65;
}

.td-deal-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.td-deal-card__meta div,
.td-deal-card__side {
  border: 1px solid var(--td-line);
  border-radius: 18px;
  background: #fff6e8;
}

.td-deal-card__meta div {
  min-height: 88px;
  padding: 12px;
}

.td-deal-card__meta span,
.td-deal-card__status span:last-child {
  display: block;
  color: var(--td-ink-500);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-deal-card__meta strong {
  display: block;
  margin-top: 10px;
  color: var(--td-ink-900);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

.td-deal-card__side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.td-deal-card__actor {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.td-deal-card__actor>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--td-brand-900);
  color: #fff8ec;
  font-weight: 900;
}

.td-deal-card__actor div {
  min-width: 0;
}

.td-deal-card__actor strong,
.td-deal-card__actor small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-deal-card__actor strong {
  color: var(--td-ink-900);
  font-size: 0.95rem;
  font-weight: 900;
}

.td-deal-card__actor small {
  color: var(--td-ink-500);
  font-size: 0.78rem;
  font-weight: 800;
}

.td-deal-card__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--td-line);
  border-bottom: 1px solid var(--td-line);
}

.td-deal-card__actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#td_project_opportunities_table_pane td[data-label="Action"] .d-flex {
  position: relative;
  z-index: 3;
}

#td_project_opportunities_table_pane td[data-label="Action"] .td-action-menu {
  z-index: 4000;
}

#td_project_opportunities_card_pane .td-opportunity-card {
  overflow: visible !important;
}

.td-deposit-actions-footer {
  padding-left: clamp(1.5rem, 2vw, 2rem) !important;
  padding-right: clamp(1.5rem, 2vw, 2rem) !important;
}

.td-opportunity-meta-item {
  background: #fff6e8 !important;
}

.td-mail-settings {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--td-line);
  box-shadow: var(--td-shadow);
}

.td-mail-settings::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--td-accent), var(--td-success));
  opacity: 0.72;
}

.td-mail-settings--common {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 241, 0.98));
}

.td-mail-settings--smtp::before {
  background: linear-gradient(90deg, var(--td-success), var(--td-brand-300));
}

.td-mail-settings--amazon::before {
  background: linear-gradient(90deg, var(--td-accent), var(--td-warning));
}

.td-mail-provider-badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.8rem;
}

.td-mail-provider-callout {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 180px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--td-line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(237, 244, 223, 0.98), rgba(255, 246, 232, 0.96));
  box-shadow: 0 14px 28px rgba(75, 50, 22, 0.08);
}

.td-mail-provider-callout__label {
  color: var(--td-ink-500);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.td-mail-provider-callout__value {
  color: var(--td-ink-900);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

html[data-td-theme="dark"] .td-mail-provider-callout {
  border-color: var(--td-line-strong);
  background: linear-gradient(135deg, rgba(55, 46, 34, 0.98), rgba(39, 31, 23, 0.96));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

html[data-td-theme="dark"] .td-mail-provider-callout__label {
  color: var(--td-ink-500);
}

html[data-td-theme="dark"] .td-mail-provider-callout__value {
  color: var(--td-ink-900);
}

html[data-td-theme="dark"] .td-mail-settings--common {
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(23, 18, 13, 0.98));
}

html[data-td-theme="dark"] .td-mail-settings--common,
html[data-td-theme="dark"] .td-mail-settings--smtp,
html[data-td-theme="dark"] .td-mail-settings--amazon {
  border-color: var(--td-line);
}

html[data-td-theme="dark"] .td-mail-settings--smtp::before {
  opacity: 0.82;
}

html[data-td-theme="dark"] .td-mail-settings--amazon::before {
  opacity: 0.82;
}

.td-mail-settings--common .td-mail-provider-callout {
  margin-left: auto;
}

.td-mail-traces-card {
  border: 1px solid var(--td-line);
  box-shadow: var(--td-shadow);
  overflow: hidden;
}

.td-mail-traces-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--td-line);
}

.td-mail-traces-header__copy {
  min-width: 0;
}

.td-mail-traces-header__action {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.td-mail-traces-card .td-code-panel {
  max-height: 420px;
}

html[data-td-theme="dark"] .td-mail-traces-card {
  border-color: var(--td-line);
  background: linear-gradient(180deg, rgba(33, 26, 20, 0.98), rgba(23, 18, 13, 0.98));
}

html[data-td-theme="dark"] .td-mail-traces-header {
  border-color: var(--td-line);
}

@media (max-width: 1199.98px) {
  .td-deal-card {
    grid-template-columns: 1fr;
  }

  .td-deal-card__side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .td-auth-shell--brand {
    padding: 10px;
  }

  .td-auth-brand-panel__inner,
  .td-auth-form-card {
    min-height: auto;
  }

  .td-auth-brand-panel__inner {
    gap: 32px;
  }

  .td-auth-hero-title {
    font-size: clamp(2rem, 10vw, 3.1rem) !important;
  }
}

@media (max-width: 767.98px) {

  .td-auth-proof-grid,
  .td-auth-product-card__grid,
  .td-auth-quick-links,
  .td-deal-card__meta,
  .td-deal-card__side {
    grid-template-columns: 1fr;
  }

  .td-auth-form-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .td-auth-form-panel {
    padding: 0;
  }

  .td-deal-card {
    border-radius: 18px;
    padding: 16px;
  }

  .td-deal-card__actions,
  .td-deal-card__actions .btn {
    width: 100%;
  }

  .td-deal-card__actions {
    align-items: stretch;
  }

  .td-view-toggle {
    flex: 1 1 100%;
  }

  .td-market-insights {
    grid-template-columns: 1fr;
  }

  .td-market-overview-header,
  .td-market-overview-body {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .td-market-overview-metrics {
    grid-template-columns: 1fr;
  }

  .td-moderation-filter-actions {
    justify-content: flex-start;
  }

  .td-mail-settings--common .td-mail-provider-callout {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
  }

  .td-mail-provider-callout__label {
    font-size: 0.62rem;
  }

  .td-mail-provider-callout__value {
    font-size: 0.98rem;
  }

  .td-mail-settings--smtp .card-body,
  .td-mail-settings--amazon .card-body {
    padding-top: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 18px !important;
    padding-left: 18px !important;
  }

  .td-mail-settings--smtp .d-flex.flex-column.flex-lg-row.justify-content-between.gap-3.mb-5,
  .td-mail-settings--amazon .d-flex.flex-column.flex-lg-row.justify-content-between.gap-3.mb-5 {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .td-mail-settings--smtp .row.g-4,
  .td-mail-settings--amazon .row.g-4 {
    --bs-gutter-y: 0.7rem;
    --bs-gutter-x: 0.75rem;
  }

  .td-mail-settings--smtp .td-mail-provider-badge,
  .td-mail-settings--amazon .td-mail-provider-badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }

  .td-mail-settings--smtp .btn,
  .td-mail-settings--amazon .btn {
    width: 100%;
  }

  .td-mail-traces-header {
    padding-bottom: 0.85rem;
  }

  .td-mail-traces-header__action {
    width: 100%;
    margin-top: 0;
  }

  .td-live-notification-banner {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
  }

  .td-live-notification-banner__headline {
    gap: 0.35rem;
  }

  .td-live-notification-banner__badge {
    font-size: 0.63rem;
  }

  .td-live-notification-banner__message {
    -webkit-line-clamp: 3;
  }
}
