/* Ensure [hidden] always wins regardless of author display rules */
[hidden] {
  display: none !important;
}

.dt-dialog {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.dt-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
}

.dt-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(16, 23, 40, 0.98), rgba(8, 13, 24, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.dt-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem 0;
}

.dt-dialog__eyebrow {
  margin: 0 0 0.35rem;
  color: #8ea4d8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dt-dialog__title {
  margin: 0;
  color: #eef3ff;
  font-size: 1.2rem;
  line-height: 1.25;
}

.dt-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 243, 255, 0.76);
  cursor: pointer;
}

.dt-dialog__close:hover,
.dt-dialog__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
}

.dt-dialog__close span {
  font-size: 1.3rem;
  line-height: 1;
}

.dt-dialog__body {
  display: grid;
  gap: 0.95rem;
  padding: 0.95rem 1.2rem 0;
}

.dt-dialog__message {
  margin: 0;
  color: rgba(224, 232, 250, 0.9);
  line-height: 1.6;
}

.dt-dialog__field {
  display: grid;
  gap: 0.45rem;
}

.dt-dialog__field span {
  color: rgba(203, 214, 239, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt-dialog__field input,
.dt-dialog__field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 18, 0.92);
  color: #eef3ff;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.dt-dialog__field textarea {
  min-height: 7rem;
  resize: vertical;
}

.dt-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem 1.2rem;
}

.dt-dialog__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.dt-dialog__button:hover,
.dt-dialog__button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.dt-dialog__button--primary {
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.28), rgba(79, 128, 255, 0.16));
  border-color: rgba(102, 147, 255, 0.38);
}

.dt-dialog__button--danger {
  background: rgba(163, 61, 75, 0.18);
  border-color: rgba(214, 95, 112, 0.35);
}

.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(79, 128, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, #070b16 48%, #050811 100%);
  color: var(--text);
  overflow-x: hidden;
  scrollbar-color: rgba(120, 139, 182, 0.6) rgba(9, 14, 26, 0.96);
  scrollbar-width: thin;
}

.app-body * {
  scrollbar-color: rgba(120, 139, 182, 0.6) rgba(9, 14, 26, 0.96);
  scrollbar-width: thin;
}

.app-body::-webkit-scrollbar,
.app-body *::-webkit-scrollbar {
  width: 0.78rem;
  height: 0.78rem;
}

.app-body::-webkit-scrollbar-track,
.app-body *::-webkit-scrollbar-track {
  background: rgba(9, 14, 26, 0.96);
}

.app-body::-webkit-scrollbar-thumb,
.app-body *::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 14, 26, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124, 146, 194, 0.72), rgba(92, 113, 158, 0.72));
}

.app-body::-webkit-scrollbar-thumb:hover,
.app-body *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(147, 170, 220, 0.82), rgba(111, 134, 182, 0.82));
}

.app-body::-webkit-scrollbar-corner,
.app-body *::-webkit-scrollbar-corner {
  background: rgba(9, 14, 26, 0.96);
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  height: 100vh;
  padding: 1.05rem 0.85rem 0.95rem;
  background: linear-gradient(180deg, rgba(13, 19, 33, 0.98), rgba(9, 14, 26, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.35rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar__collapse {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  cursor: pointer;
}

.app-sidebar__brand > a {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-width: 0;
}

.app-sidebar__collapse:hover,
.app-sidebar__collapse:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.app-sidebar__collapse::before,
.app-sidebar__collapse::after {
  content: "";
  position: absolute;
  width: 0.56rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.app-sidebar__collapse::before {
  transform: translateY(-3px) rotate(-45deg);
}

.app-sidebar__collapse::after {
  transform: translateY(3px) rotate(45deg);
}

.app-sidebar__brand img {
  width: auto;
  height: 1.35rem;
}

.app-sidebar__brand p {
  display: none;
}

.app-sidebar__section {
  display: grid;
  gap: 0.55rem;
}

.app-sidebar__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding-inline: 0.15rem;
}

.app-sidebar__section-label {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.2rem;
  color: #8ea4d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-sidebar__section-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(203, 214, 239, 0.72);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.app-sidebar__section-toggle:hover,
.app-sidebar__section-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
  border-color: rgba(255, 255, 255, 0.1);
}

.app-sidebar__section-toggle::before,
.app-sidebar__section-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease;
}

.app-sidebar__section-toggle::before {
  transform: translate(-58%, -50%) rotate(-45deg);
}

.app-sidebar__section-toggle::after {
  transform: translate(-6%, -50%) rotate(45deg);
}

.app-sidebar__section.is-collapsed .app-sidebar__section-toggle::before {
  transform: translate(-58%, -50%) rotate(45deg);
}

.app-sidebar__section.is-collapsed .app-sidebar__section-toggle::after {
  transform: translate(-6%, -50%) rotate(-45deg);
}

.app-nav {
  display: grid;
  gap: 0.2rem;
}

.app-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.55rem;
  padding: 0.68rem 0.8rem;
  border-radius: 0.8rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.app-nav__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(228, 233, 246, 0.72);
}

.app-nav__icon--placeholder {
  visibility: hidden;
}

.app-nav__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.app-nav__link:hover,
.app-nav__link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.app-nav__link:hover .app-nav__icon,
.app-nav__link:focus-visible .app-nav__icon {
  color: rgba(238, 243, 255, 0.9);
}

.app-nav__link[aria-current="page"] {
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.2), rgba(79, 128, 255, 0.12));
  color: var(--text);
  border: 1px solid rgba(116, 148, 255, 0.18);
}

.app-nav__link[aria-current="page"] .app-nav__icon {
  color: #9ab7ff;
}

.app-sidebar__footer {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0.95rem 0.35rem 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar__footer a {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.app-sidebar__footer a:hover,
.app-sidebar__footer a:focus-visible {
  color: var(--text);
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(7, 11, 22, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.app-topbar__start {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.app-topbar__toggle {
  display: none;
  flex-direction: column;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-topbar__toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.app-topbar__toggle:hover,
.app-topbar__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(126, 162, 255, 0.28);
}

.app-topbar__toggle[aria-expanded="true"] {
  background: rgba(79, 128, 255, 0.08);
  border-color: rgba(126, 162, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(79, 128, 255, 0.08) inset;
}

.app-topbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.36rem) rotate(45deg);
}

.app-topbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.app-topbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.36rem) rotate(-45deg);
}

.app-topbar__eyebrow {
  margin-bottom: 0.18rem;
  color: #8ea4d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-topbar h1 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.app-topbar__subtitle {
  margin-top: 0.22rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.app-topbar__end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.app-topbar__support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.82rem;
  border-radius: 0.8rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.app-topbar__support:hover,
.app-topbar__support:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.app-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 128, 255, 0.12);
  border: 1px solid rgba(116, 148, 255, 0.18);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-account-control {
  position: relative;
}

.app-user-chip--trigger {
  gap: 0.42rem;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.app-user-chip--trigger:hover,
.app-user-chip--trigger:focus-visible {
  border-color: rgba(116, 148, 255, 0.26);
  background: rgba(79, 128, 255, 0.18);
}

.app-user-chip__initials {
  line-height: 1;
}

.app-user-chip__chevron {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--text-muted);
}

.app-user-chip__chevron svg {
  width: 100%;
  height: 100%;
}

.app-account-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 70;
  width: min(13.5rem, calc(100vw - 2rem));
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: #0d1324;
  box-shadow:
    0 18px 36px rgba(2, 6, 23, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.app-account-menu__section {
  display: grid;
  gap: 0.18rem;
}

.app-account-menu__label {
  margin: 0 0 0.28rem;
  padding: 0.35rem 0.55rem 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-account-menu__identity {
  display: grid;
  gap: 0.16rem;
  padding: 0 0.55rem 0.35rem;
}

.app-account-menu__identity strong {
  color: var(--text);
  font-size: 0.88rem;
}

.app-account-menu__identity span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.app-account-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 0.72rem;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.app-account-menu__item:hover,
.app-account-menu__item:focus-visible,
.app-account-menu__item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.app-account-menu__divider {
  height: 1px;
  margin: 0.3rem 0;
  background: rgba(255, 255, 255, 0.07);
}

.app-account-menu__item--muted {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.app-page {
  padding: 1.4rem;
}

.app-grid {
  display: grid;
  gap: 1rem;
}

.app-grid--overview {
  grid-template-columns: 1.1fr 0.9fr;
}

.app-grid--overview-secondary {
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.app-grid--placeholder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
  padding: 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 25, 43, 0.98), rgba(12, 18, 32, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(6, 11, 28, 0.18);
}

.app-card--wide {
  grid-column: 1 / -1;
}

.app-card__eyebrow {
  margin-bottom: 0.55rem;
  color: #8ea4d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-card h2,
.app-card h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.app-card p {
  margin-top: 0.55rem;
  color: var(--text-soft);
}

.accounts-table__status-explainer,
.copiers-status-explainer,
.copiers-execution-summary {
  margin-top: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.accounts-table__status-explainer strong,
.copiers-status-explainer strong,
.copiers-execution-summary strong {
  color: #f8fafc;
}

.copiers-status-explainer .accounts-secondary-action {
  margin-top: 0.7rem;
}

.accounts-table__status-explainer--blocked,
.copiers-status-explainer--blocked,
.copiers-execution-summary--blocked {
  background: rgba(127, 29, 29, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.24);
  color: #fecaca;
}

.accounts-table__status-explainer--info,
.copiers-status-explainer--warning,
.copiers-execution-summary--warning {
  background: rgba(120, 53, 15, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

.accounts-table__status-action {
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: #bdd0ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.accounts-table__status-action:hover,
.accounts-table__status-action:focus-visible {
  color: #dbe8ff;
  text-decoration: underline;
}

.copiers-execution-summary--ready {
  background: rgba(6, 78, 59, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #bbf7d0;
}

.app-status-list,
.app-list,
.app-feed {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-status-list li,
.app-list li,
.app-feed li {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-status-list strong,
.app-list strong,
.app-feed strong {
  font-size: 0.95rem;
}

.app-status-list span,
.app-list span,
.app-feed span {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.app-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.app-pill {
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.app-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-kpi {
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-kpi strong {
  display: block;
  font-size: 0.96rem;
}

.app-kpi span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.app-note {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(79, 128, 255, 0.08);
  border: 1px solid rgba(116, 148, 255, 0.14);
  color: var(--text-soft);
}

.app-page--overview {
  padding-top: 1.1rem;
  max-width: 72rem;
  margin-inline: 0;
}

.overview-page {
  display: grid;
  gap: 1.15rem;
}

.overview-grid {
  display: grid;
  gap: 1rem;
}

.overview-grid--hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
}

.overview-grid--body {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.overview-grid--content,
.overview-grid--side {
  gap: 1rem;
}

.overview-section {
  min-width: 0;
  padding: 1.1rem 1.15rem;
  border-color: rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(15, 22, 39, 0.96), rgba(10, 16, 29, 0.98)),
    rgba(11, 16, 32, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.overview-section--support {
  border-color: rgba(116, 148, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 20, 36, 0.94), rgba(10, 15, 28, 0.97)),
    rgba(10, 15, 28, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.overview-section--runtime {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(15, 23, 40, 0.97), rgba(10, 16, 30, 0.985)),
    rgba(10, 16, 30, 0.93);
}

.overview-section--activity {
  border-color: rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(180deg, rgba(13, 19, 34, 0.92), rgba(9, 14, 25, 0.95)),
    rgba(9, 14, 25, 0.88);
  box-shadow: none;
}

.overview-section__intro {
  margin-top: 0.45rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.overview-hero-card {
  padding: 1.25rem;
}

.overview-hero__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.overview-hero__summary {
  max-width: 52rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.overview-hero__meta {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 18rem);
}

.overview-meta-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-meta-card__label {
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-meta-card strong {
  font-size: 0.95rem;
}

.overview-meta-card span:last-child {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.overview-status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.05rem;
}

.overview-status-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-status-card__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-status-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.overview-status-card span:last-child {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.overview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.overview-badge--good {
  color: #c8f2da;
  background: rgba(36, 145, 84, 0.17);
  border-color: rgba(72, 184, 112, 0.24);
}

.overview-badge--warn {
  color: #f7d79f;
  background: rgba(181, 121, 26, 0.16);
  border-color: rgba(217, 156, 54, 0.26);
}

.overview-badge--bad {
  color: #f4b9bd;
  background: rgba(170, 49, 61, 0.16);
  border-color: rgba(214, 84, 97, 0.26);
}

.overview-badge--neutral {
  color: #d3ddf7;
  background: rgba(104, 124, 171, 0.15);
  border-color: rgba(135, 156, 206, 0.2);
}

.overview-quick-actions h2,
.overview-section h2 {
  font-size: 1.06rem;
}

.overview-action-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.overview-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-weight: 600;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.overview-action:hover,
.overview-action:focus-visible {
  color: var(--text);
  background: rgba(79, 128, 255, 0.08);
  border-color: rgba(116, 148, 255, 0.18);
  transform: translateY(-1px);
}

.overview-action__arrow {
  color: #9ab7ff;
  font-size: 0.94rem;
}

.overview-attention-list,
.overview-activity-list,
.overview-subscription-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.overview-attention-item,
.overview-activity-item {
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-attention-item__header,
.overview-activity-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.overview-inline-action {
  width: fit-content;
  color: #9ab7ff;
  font-size: 0.9rem;
  font-weight: 600;
}

.overview-inline-action:hover,
.overview-inline-action:focus-visible {
  color: #bfd1ff;
}

.overview-kpi-grid {
  margin-top: 1rem;
}

.overview-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.overview-runtime-list {
  display: grid;
  gap: 0.75rem;
}

.overview-runtime-list h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-runtime-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-runtime-row strong,
.overview-activity-item strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.35;
}

.overview-runtime-row span,
.overview-activity-item p,
.overview-attention-item p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.overview-runtime-row__end {
  flex: 0 0 auto;
}

.overview-runtime-row__value--good {
  color: #d4ffe4;
}

.overview-runtime-row__value--warn {
  color: #ffe2ae;
}

.overview-subscription-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-subscription-row span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.overview-subscription-row strong {
  text-align: right;
  font-size: 0.92rem;
  line-height: 1.35;
}

.overview-account-note {
  margin-top: 1rem;
}

.overview-refresh-warning {
  margin: 0 0 0.9rem 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(230, 236, 255, 0.85);
  background: rgba(255, 200, 120, 0.1);
  border: 1px solid rgba(255, 200, 120, 0.25);
  border-radius: 0.55rem;
}

.overview-summary-card {
  display: grid;
  gap: 1rem;
  padding: 1.45rem 1.45rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.overview-section--priority {
  border-color: rgba(255, 183, 76, 0.26);
  background:
    linear-gradient(180deg, rgba(17, 25, 43, 0.99), rgba(12, 18, 32, 0.99)),
    linear-gradient(180deg, rgba(181, 121, 26, 0.12), transparent 72%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.overview-page--decision-active .overview-summary-card--secondary,
.overview-page--decision-active .overview-section--secondary {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(11, 16, 32, 0.72);
  box-shadow: none;
}

.overview-summary-card--compact {
  gap: 0.78rem;
  padding: 1.05rem 1.12rem;
}

/* Outer summary matches default card; healthy signal is only on the Live links panel below. */
.overview-summary-card--good {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 25, 43, 0.98), rgba(12, 18, 32, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

/* “Live links” column when operational tone is healthy */
.overview-summary-card--good .overview-summary__issue {
  border-color: rgba(82, 210, 130, 0.32);
  background:
    linear-gradient(165deg, rgba(72, 184, 112, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(120, 220, 160, 0.1);
}

.overview-summary-card--warn {
  border-color: rgba(217, 156, 54, 0.2);
  background:
    linear-gradient(180deg, rgba(17, 25, 43, 0.98), rgba(12, 18, 32, 0.98)),
    linear-gradient(180deg, rgba(181, 121, 26, 0.08), transparent 70%);
}

.overview-summary-card--bad {
  border-color: rgba(214, 84, 97, 0.2);
  background:
    linear-gradient(180deg, rgba(17, 25, 43, 0.98), rgba(12, 18, 32, 0.98)),
    linear-gradient(180deg, rgba(170, 49, 61, 0.08), transparent 70%);
}

.overview-summary__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
}

.overview-summary__label {
  display: inline-flex;
  margin-bottom: 0.42rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-summary__header h2 {
  font-size: 1.32rem;
  line-height: 1.15;
}

.overview-summary__message {
  max-width: 46rem;
  margin-top: 0.48rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.58;
}

.overview-summary__impact {
  margin-top: 0.38rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.overview-summary__tone {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.35rem 0.74rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.overview-summary__tone--good {
  color: #d4ffe4;
  background: rgba(36, 145, 84, 0.18);
  border-color: rgba(72, 184, 112, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.overview-summary__tone--warn {
  color: #ffe2ae;
  background: rgba(181, 121, 26, 0.18);
  border-color: rgba(217, 156, 54, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.overview-summary__tone--bad {
  color: #ffd1d5;
  background: rgba(170, 49, 61, 0.18);
  border-color: rgba(214, 84, 97, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.overview-summary__tone--neutral {
  color: #d3ddf7;
  background: rgba(104, 124, 171, 0.16);
  border-color: rgba(135, 156, 206, 0.22);
}

.overview-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.overview-summary__signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.7rem;
}

.overview-summary__signal-grid--simple {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr) minmax(0, 1fr);
}

.overview-summary__signal {
  display: grid;
  gap: 0.24rem;
  padding: 0.88rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-summary__signal--primary {
  grid-column: 1 / -1;
}

.overview-summary__signal span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-summary__signal strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.overview-summary__signal--issue strong,
.overview-summary__signal--action strong {
  font-size: 0.94rem;
}

.overview-summary__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.7rem;
  min-height: 2.6rem;
  padding: 0.68rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(116, 148, 255, 0.28);
  background: rgba(79, 128, 255, 0.14);
  color: #eef4ff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(7, 16, 38, 0.22);
}

.overview-summary__action-link:hover,
.overview-summary__action-link:focus-visible {
  border-color: rgba(116, 148, 255, 0.42);
  background: rgba(79, 128, 255, 0.2);
}

.overview-summary__action-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(16rem, 1.1fr);
  gap: 0.85rem;
}

.overview-summary__issue,
.overview-summary__next-step {
  display: grid;
  gap: 0.38rem;
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-summary__next-step {
  border-color: rgba(116, 148, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.1), transparent 75%);
}

.overview-summary__issue-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-summary__issue strong,
.overview-summary__next-step strong {
  font-size: 0.98rem;
  line-height: 1.42;
}

.overview-summary__issue p,
.overview-summary__next-step p {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.46;
}

.overview-summary__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.7rem;
}

.overview-summary__meta-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.68rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-summary__meta-item span,
.overview-summary__details-item span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-summary__meta-item strong,
.overview-summary__details-item strong {
  font-size: 0.88rem;
  line-height: 1.38;
  color: var(--text);
}

.overview-summary__details {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.overview-summary__details summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 700;
}

.overview-summary__details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.overview-summary__details-item {
  display: grid;
  gap: 0.22rem;
  padding: 0.82rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-summary__details-item--wide {
  grid-column: 1 / -1;
}

.overview-summary__details-item p {
  margin-top: 0.32rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.overview-runtime-technical {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.overview-runtime-technical summary {
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 700;
}

.overview-runtime-technical > .overview-split-grid {
  padding: 0 1rem 1rem;
}

.overview-summary__signal-value--good {
  color: #d4ffe4;
}

.overview-summary__signal-value--warn {
  color: #ffe2ae;
}

.overview-summary__signal-value--bad {
  color: #ffd1d5;
}

.overview-summary__signal-value--neutral {
  color: #d3ddf7;
}

.overview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.overview-chip--status {
  color: var(--text);
  font-weight: 700;
}

.overview-chip--good {
  color: #d4ffe4;
  background: rgba(36, 145, 84, 0.17);
  border-color: rgba(72, 184, 112, 0.26);
}

.overview-chip--warn {
  color: #ffe2ae;
  background: rgba(181, 121, 26, 0.16);
  border-color: rgba(217, 156, 54, 0.28);
}

.overview-chip--bad {
  color: #ffd1d5;
  background: rgba(170, 49, 61, 0.16);
  border-color: rgba(214, 84, 97, 0.28);
}

.overview-chip--neutral {
  color: #d3ddf7;
  background: rgba(104, 124, 171, 0.15);
  border-color: rgba(135, 156, 206, 0.2);
}

.overview-summary__aux {
  margin-top: 0.15rem;
  max-width: 46rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.overview-summary__aux-hint {
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .overview-summary__action-bar,
  .overview-summary__meta-grid,
  .overview-summary__details-grid {
    grid-template-columns: 1fr;
  }
}

.overview-decision-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.overview-decision-count {
  display: grid;
  gap: 0.18rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-decision-count span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.overview-decision-count strong {
  font-size: 1.2rem;
  line-height: 1;
}

.overview-decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.overview-decision-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.82rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-decision-option--primary {
  border-color: rgba(116, 148, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.08), transparent 70%);
}

.overview-decision-option__content {
  min-width: 0;
}

.overview-decision-option strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.overview-decision-option p {
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.overview-decision-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 12rem;
  width: auto;
  padding: 0.62rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #f2f6ff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.overview-decision-button:hover,
.overview-decision-button:focus-visible {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
}

.overview-decision-button--primary {
  border-color: rgba(116, 148, 255, 0.3);
  background: linear-gradient(180deg, rgba(86, 128, 255, 0.95), rgba(72, 109, 226, 0.95));
  color: #f8fbff;
  box-shadow: 0 10px 24px rgba(43, 82, 196, 0.28);
}

.overview-decision-button--primary:hover,
.overview-decision-button--primary:focus-visible {
  border-color: rgba(146, 171, 255, 0.44);
  background: linear-gradient(180deg, rgba(101, 141, 255, 0.98), rgba(80, 119, 236, 0.98));
}

.overview-decision-button--video {
  gap: 0.5rem;
  border-color: rgba(255, 209, 102, 0.28);
  background: linear-gradient(180deg, rgba(255, 186, 84, 0.26), rgba(255, 144, 70, 0.18));
  color: #fff5dc;
  box-shadow: 0 10px 24px rgba(86, 52, 20, 0.22);
}

.overview-decision-button--video:hover,
.overview-decision-button--video:focus-visible {
  border-color: rgba(255, 222, 145, 0.4);
  background: linear-gradient(180deg, rgba(255, 198, 102, 0.34), rgba(255, 151, 76, 0.22));
}

.overview-decision-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.overview-decision-button__icon svg {
  width: 100%;
  height: 100%;
}

.overview-decision-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.overview-setup-card {
  display: grid;
  gap: 0.72rem;
  padding: 0.95rem 1rem;
  border-color: rgba(116, 148, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 21, 37, 0.98), rgba(10, 16, 29, 0.98)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.05), transparent 72%);
}

.overview-setup-summary {
  display: grid;
  gap: 0.72rem;
}

.overview-setup-summary__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem 1rem;
}

.overview-setup-summary__top h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.overview-setup-summary__progress-line,
.overview-setup-summary__next span {
  margin-top: 0.16rem;
  color: #c5d4fb;
  font-size: 0.78rem;
  font-weight: 600;
}

.overview-setup-summary__next {
  display: grid;
  gap: 0.16rem;
  padding: 0.72rem 0.82rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-setup-summary__next strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.overview-setup-summary__next p {
  margin-top: 0.08rem;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.5;
}

.overview-setup-summary__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.overview-setup-summary__actions .overview-decision-button {
  min-width: 12.5rem;
}

.overview-setup-summary__link {
  justify-self: flex-start;
  margin-top: -0.12rem;
  font-size: 0.8rem;
}

.overview-page--setup-drawer-open {
  position: relative;
}

.overview-setup-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 58;
  display: flex;
  justify-content: flex-end;
  padding: calc(4.85rem + 0.85rem) 1rem 1rem;
  pointer-events: none;
}

.overview-setup-drawer__backdrop {
  display: none;
}

.overview-setup-drawer__panel {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: min(calc(100vw - 2rem), 24.75rem);
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 1rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(116, 148, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 21, 37, 0.98), rgba(10, 16, 29, 0.985)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.05), transparent 72%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
}

.overview-setup-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.overview-setup-drawer__header h2 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.overview-setup-drawer__copy,
.overview-setup-drawer__progress p,
.overview-setup-drawer__active-copy p,
.overview-setup-drawer__step-copy p {
  margin-top: 0.18rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.overview-setup-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 243, 255, 0.82);
  cursor: pointer;
}

.overview-setup-drawer__close:hover,
.overview-setup-drawer__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
}

.overview-setup-drawer__close span {
  font-size: 1.32rem;
  line-height: 1;
}

.overview-setup-drawer__progress {
  display: grid;
  gap: 0.22rem;
  padding: 0.76rem 0.85rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-setup-drawer__progress span,
.overview-setup-drawer__label,
.overview-setup-drawer__step-eyebrow {
  color: #8ea4d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-setup-drawer__progress strong {
  display: block;
  margin-top: 0.02rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.overview-setup-drawer__section {
  display: grid;
  gap: 0.6rem;
}

.overview-setup-drawer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.overview-setup-drawer__count {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.overview-setup-drawer__active-card,
.overview-setup-drawer__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  padding: 0.78rem 0.84rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.024);
}

.overview-setup-drawer__active-card {
  border-color: rgba(116, 148, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.08), transparent 72%);
}

.overview-setup-drawer__step-list {
  display: grid;
  gap: 0.58rem;
}

.overview-setup-drawer__step--current {
  border-color: rgba(116, 148, 255, 0.18);
}

.overview-setup-drawer__step--complete {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(72, 184, 112, 0.12);
}

.overview-setup-drawer__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 800;
}

.overview-setup-drawer__step-number--small {
  width: 1.72rem;
  height: 1.72rem;
  font-size: 0.76rem;
}

.overview-setup-drawer__step--current .overview-setup-drawer__step-number,
.overview-setup-drawer__active-card .overview-setup-drawer__step-number {
  color: #eff5ff;
  background: rgba(79, 128, 255, 0.22);
  border-color: rgba(116, 148, 255, 0.34);
}

.overview-setup-drawer__step--complete .overview-setup-drawer__step-number {
  color: #d4ffe4;
  background: rgba(36, 145, 84, 0.12);
  border-color: rgba(72, 184, 112, 0.18);
}

.overview-setup-drawer__active-copy,
.overview-setup-drawer__step-copy {
  min-width: 0;
}

.overview-setup-drawer__active-copy h3 {
  margin-top: 0.12rem;
  font-size: 0.96rem;
  line-height: 1.28;
}

.overview-setup-drawer__step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.overview-setup-drawer__step-head strong {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.9rem;
  line-height: 1.32;
}

.overview-setup-drawer__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.overview-setup-drawer__status--complete {
  color: #d4ffe4;
  background: rgba(36, 145, 84, 0.12);
  border-color: rgba(72, 184, 112, 0.2);
}

.overview-setup-drawer__status--current {
  color: #eef4ff;
  background: rgba(79, 128, 255, 0.2);
  border-color: rgba(116, 148, 255, 0.3);
}

.overview-setup-drawer__status--not_started {
  color: #d3ddf7;
  background: rgba(104, 124, 171, 0.15);
  border-color: rgba(135, 156, 206, 0.2);
}

.overview-setup-drawer__detail {
  color: var(--text-muted);
}

.overview-setup-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-top: 0.62rem;
}

.overview-setup-drawer__support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  padding-top: 0.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-setup-drawer__support p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.guided-setup-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 57;
  display: grid;
  gap: 0.08rem;
  min-width: 10rem;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(116, 148, 255, 0.2);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(14, 21, 37, 0.98), rgba(10, 16, 29, 0.98)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.06), transparent 72%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
}

.guided-setup-launcher:hover,
.guided-setup-launcher:focus-visible {
  border-color: rgba(116, 148, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(16, 24, 42, 0.99), rgba(10, 16, 29, 0.99)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.1), transparent 72%);
}

.guided-setup-launcher__eyebrow {
  color: #8ea4d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guided-setup-launcher__title {
  font-size: 0.92rem;
  line-height: 1.25;
}

.overview-setup__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.9rem 1rem;
}

.overview-setup__progress {
  flex: 0 0 auto;
  display: grid;
  gap: 0.1rem;
  min-width: 10.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-setup__progress span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.overview-setup__progress strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.overview-setup__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.72rem 0.95rem;
}

.overview-setup__toolbar-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.overview-setup-list {
  display: grid;
  gap: 0.8rem;
}

.overview-setup-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: stretch;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-setup-step--current {
  border-color: rgba(116, 148, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.08), transparent 72%);
}

.overview-setup-step--guided {
  box-shadow: 0 0 0 1px rgba(116, 148, 255, 0.16), 0 20px 44px rgba(0, 0, 0, 0.18);
}

.overview-setup-step--complete {
  gap: 0.8rem;
  padding: 0.72rem 0.88rem;
  border-color: rgba(72, 184, 112, 0.1);
  background: rgba(255, 255, 255, 0.01);
  box-shadow: none;
}

.overview-setup-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.overview-setup-step--complete .overview-setup-step__number {
  color: #d4ffe4;
  background: rgba(36, 145, 84, 0.09);
  border-color: rgba(72, 184, 112, 0.14);
}

.overview-setup-step--current .overview-setup-step__number {
  color: #eff5ff;
  background: rgba(79, 128, 255, 0.22);
  border-color: rgba(116, 148, 255, 0.34);
}

.overview-setup-step__content {
  min-width: 0;
}

.overview-setup-step__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.overview-setup-step__eyebrow {
  color: #8ea4d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-setup-step__head h3 {
  margin-top: 0.22rem;
  font-size: 1rem;
  line-height: 1.3;
}

.overview-setup-step__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.overview-setup-step__status--complete {
  color: #d4ffe4;
  background: rgba(36, 145, 84, 0.12);
  border-color: rgba(72, 184, 112, 0.2);
}

.overview-setup-step__status--current {
  color: #eef4ff;
  background: rgba(79, 128, 255, 0.2);
  border-color: rgba(116, 148, 255, 0.3);
}

.overview-setup-step__status--not_started {
  color: #d3ddf7;
  background: rgba(104, 124, 171, 0.15);
  border-color: rgba(135, 156, 206, 0.2);
}

.overview-setup-step__body,
.overview-setup-step__detail {
  margin-top: 0.3rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.overview-setup-step__detail {
  color: var(--text-muted);
}

.overview-setup-step--complete .overview-setup-step__body {
  margin-top: 0.2rem;
  font-size: 0.81rem;
  color: rgba(201, 212, 240, 0.86);
}

.overview-setup-step--complete .overview-setup-step__detail {
  margin-top: 0.22rem;
  font-size: 0.78rem;
  color: rgba(147, 164, 200, 0.72);
}

.overview-setup-step__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 12rem;
  height: 100%;
}

.overview-setup-step__actions .overview-decision-button {
  min-width: 0;
  width: 100%;
}

.overview-setup-step__action--muted {
  min-height: 2.2rem;
  padding: 0.52rem 0.82rem;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.012);
  color: var(--text-muted);
  box-shadow: none;
  font-weight: 500;
}

.overview-setup-step__action--muted:hover,
.overview-setup-step__action--muted:focus-visible {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.024);
  color: var(--text-soft);
}

.overview-setup-modal__panel {
  width: min(100%, 32rem);
}

.overview-setup-modal__body-copy {
  color: var(--text-soft);
  font-size: 0.89rem;
  line-height: 1.55;
}

.overview-setup-modal__preview {
  margin-top: 0.85rem;
  padding: 0.82rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-setup-modal__preview-label {
  color: #8ea4d8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overview-setup-modal__preview-list {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.65rem;
}

.overview-setup-modal__preview-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.55;
}

.overview-setup-modal__preview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(122, 162, 255, 0.12);
}

.overview-setup-modal__footer {
  margin-top: 0.95rem;
}

.overview-setup-modal__footer .agent-download-button {
  min-width: 0;
}

.overview-decision-support {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.overview-decision-support strong {
  display: block;
  font-size: 0.88rem;
}

.overview-decision-support p {
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.overview-decision-support__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.overview-decision-support__actions .overview-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1;
  white-space: nowrap;
}

.overview-decision-support__actions .overview-inline-link:hover,
.overview-decision-support__actions .overview-inline-link:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.overview-list-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.overview-list,
.overview-mini-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}

.overview-list-item,
.overview-mini-row,
.overview-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 0.2rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-list-item {
  align-items: flex-start;
}

.overview-list-item:first-child,
.overview-mini-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.overview-list-item strong,
.overview-stat strong,
.overview-mini-row strong,
.overview-empty-state strong {
  display: block;
  font-size: 0.93rem;
  line-height: 1.35;
}

.overview-list-item p,
.overview-stat p,
.overview-mini-row span,
.overview-empty-state p {
  margin-top: 0.16rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.overview-list-item__technical {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.overview-list-item__technical summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-soft);
}

.overview-list-item__technical-pre {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
}

.overview-list-item__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.16rem;
  flex-wrap: wrap;
}

.overview-list-item__eyebrow {
  color: #8ea4d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-inline-link {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ab7ff;
  font-size: 0.78rem;
  font-weight: 500;
  font: inherit;
  cursor: pointer;
}

.overview-setup-step__link-row {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
}

.overview-setup-step__link {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
}

.overview-setup-step__link:hover,
.overview-setup-step__link:focus-visible {
  color: var(--text-soft);
  text-decoration: underline;
}

.overview-inline-link:hover,
.overview-inline-link:focus-visible {
  color: #bfd1ff;
}

.overview-runtime-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(240, 191, 87, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(61, 45, 12, 0.8), rgba(29, 21, 8, 0.9)),
    linear-gradient(180deg, rgba(240, 191, 87, 0.1), transparent 72%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.overview-runtime-alert h3 {
  margin: 0.2rem 0 0;
  font-size: 1.02rem;
}

.overview-runtime-alert p {
  margin: 0.42rem 0 0;
  color: rgba(255, 235, 192, 0.84);
  font-size: 0.9rem;
  line-height: 1.5;
}

.overview-runtime-alert__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff0c8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-runtime-alert__detail {
  color: rgba(255, 235, 192, 0.7);
}

.overview-runtime-alert__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: max-content;
}

.overview-runtime-alert__link {
  margin-top: auto;
  font-size: 0.82rem;
  text-align: right;
}

.overview-source-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.9), rgba(11, 17, 31, 0.96));
}

.overview-source-panel--good {
  border-color: rgba(72, 184, 112, 0.2);
  background:
    linear-gradient(180deg, rgba(18, 27, 46, 0.92), rgba(11, 17, 31, 0.96)),
    linear-gradient(180deg, rgba(36, 145, 84, 0.08), transparent 72%);
}

.overview-source-panel--warn {
  border-color: rgba(217, 156, 54, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 27, 46, 0.92), rgba(11, 17, 31, 0.96)),
    linear-gradient(180deg, rgba(181, 121, 26, 0.08), transparent 72%);
}

.overview-source-panel--neutral {
  border-color: rgba(135, 156, 206, 0.18);
}

.overview-source-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 0.38rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-source-panel h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.22;
}

.overview-source-panel p {
  margin: 0.38rem 0 0;
  max-width: 48rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.overview-source-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 12rem;
}

.overview-runtime-cluster {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.022);
}

.overview-runtime-cluster--compact {
  background: rgba(255, 255, 255, 0.016);
}

.overview-runtime-cluster__head {
  display: grid;
  gap: 0.2rem;
}

.overview-runtime-cluster__head h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.overview-runtime-cluster__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.overview-runtime-details {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.overview-empty-state {
  padding: 0.3rem 0;
  border-radius: 0.95rem;
  background: transparent;
  border: 0;
}

@media (max-width: 960px) {
  .overview-setup__header,
  .overview-setup-step {
    grid-template-columns: 1fr;
  }

  .overview-setup-summary__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-source-panel {
    flex-direction: column;
  }

  .overview-source-panel__meta {
    justify-content: flex-start;
    min-width: 0;
  }

  .overview-runtime-alert {
    flex-direction: column;
  }

  .overview-runtime-alert__actions {
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
  }

  .overview-runtime-alert__link {
    text-align: left;
  }

  .overview-setup__progress,
  .overview-setup-step__actions {
    min-width: 0;
  }

  .overview-setup-step__number {
    width: 1.85rem;
    height: 1.85rem;
  }

  .overview-setup-step__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-setup-summary__actions .overview-decision-button {
    width: 100%;
    min-width: 0;
  }

  .overview-setup-drawer__step-head,
  .overview-setup-drawer__section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1180px) {
  .overview-setup-drawer {
    padding-top: calc(4.6rem + 0.8rem);
  }

  .overview-setup-drawer__panel {
    width: min(calc(100vw - 2rem), 23.75rem);
  }
}

@media (max-width: 960px) {
  .overview-setup-drawer {
    inset: 0;
    z-index: 65;
    padding: 0;
    pointer-events: auto;
  }

  .overview-setup-drawer__backdrop {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(4, 8, 16, 0.56);
    backdrop-filter: blur(8px);
  }

  .overview-setup-drawer__panel {
    margin-left: auto;
    width: min(100%, 28rem);
    height: 100dvh;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .overview-setup-drawer__support {
    align-items: flex-start;
    flex-direction: column;
  }

  .guided-setup-launcher {
    right: 0.8rem;
    bottom: 0.85rem;
  }
}

@media (max-width: 720px) {
  .overview-setup-drawer__panel {
    width: 100%;
  }

  .guided-setup-launcher {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    min-width: 0;
  }
}

.app-page--performance {
  display: block;
}

.performance-page {
  display: grid;
  gap: 1rem;
}

.performance-intro {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem 1.15rem;
}

.performance-intro__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.performance-intro__primary-control {
  display: grid;
  gap: 0.35rem;
  min-width: min(20rem, 100%);
}

.performance-intro__control-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-intro__eyebrow,
.performance-panel__eyebrow {
  margin: 0 0 0.4rem;
  color: #8fb5ff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.performance-intro h2,
.performance-panel__head h2,
.performance-group__summary h2 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

.performance-intro__body,
.performance-panel__body {
  margin: 0.38rem 0 0;
  color: var(--text-soft);
  max-width: 62ch;
  line-height: 1.6;
}

.performance-intro__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
}

.performance-intro__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.performance-intro__refresh-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.performance-intro__refresh {
  min-height: 2.4rem;
  padding: 0.56rem 0.92rem;
  border: 1px solid rgba(116, 148, 255, 0.26);
  border-radius: 0.8rem;
  background: rgba(79, 128, 255, 0.12);
  color: #e6eeff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.performance-intro__refresh:hover,
.performance-intro__refresh:focus {
  outline: 0;
  background: rgba(79, 128, 255, 0.18);
  border-color: rgba(116, 148, 255, 0.4);
  transform: translateY(-1px);
}

.performance-intro__refresh:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.performance-intro__refresh-cooldown {
  min-height: 1rem;
  color: rgba(210, 220, 244, 0.68);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.performance-scope-menu {
  position: relative;
}

.performance-scope-trigger {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.72rem 2.8rem 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.96), rgba(12, 18, 34, 0.96));
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.performance-scope-trigger::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(232, 238, 252, 0.78);
  border-bottom: 2px solid rgba(232, 238, 252, 0.78);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 160ms ease;
}

.performance-scope-menu.is-open .performance-scope-trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

.performance-scope-trigger:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.performance-scope-options {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(116, 148, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(10, 16, 30, 0.98);
  box-shadow: 0 20px 40px rgba(2, 6, 18, 0.48);
}

.performance-scope-option {
  width: 100%;
  padding: 0.72rem 0.82rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.performance-scope-option:hover,
.performance-scope-option:focus {
  outline: 0;
  background: rgba(79, 128, 255, 0.14);
  color: var(--text);
}

.performance-scope-option.is-selected {
  background: rgba(79, 128, 255, 0.22);
  color: #f4f7ff;
}

.performance-intro__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.performance-intro__feedback {
  margin-left: auto;
  max-width: min(100%, 42rem);
  font-weight: 600;
  text-align: right;
}

.performance-intro__feedback--good {
  color: #bfecca;
}

.performance-intro__feedback--blue {
  color: #d7e3ff;
}

.performance-intro__feedback--warn {
  color: #ffe2a8;
}

.performance-intro__feedback--bad {
  color: #ffc1ca;
}

.performance-intro__banner {
  margin-top: 0.15rem;
}

.performance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.77rem;
  font-weight: 700;
}

.performance-pill--good {
  color: #d6ffe0;
  background: rgba(35, 141, 84, 0.2);
  border-color: rgba(72, 184, 112, 0.3);
}

.performance-pill--blue {
  color: #d7e3ff;
  background: rgba(79, 128, 255, 0.12);
  border-color: rgba(116, 148, 255, 0.2);
}

.performance-pill--warn {
  color: #ffe8b8;
  background: rgba(201, 139, 45, 0.16);
  border-color: rgba(217, 156, 54, 0.28);
}

.performance-pill--bad {
  color: #ffd8de;
  background: rgba(176, 55, 72, 0.18);
  border-color: rgba(214, 84, 97, 0.28);
}

.performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.performance-summary-card {
  padding: 0.8rem 0.9rem 0.82rem;
  overflow: hidden;
}

.performance-summary-card--positive,
.performance-summary-card--good {
  border-color: rgba(72, 184, 112, 0.22);
  background: linear-gradient(180deg, rgba(20, 80, 55, 0.22), rgba(255, 255, 255, 0.03));
}

.performance-summary-card--warn {
  border-color: rgba(217, 156, 54, 0.24);
  background: linear-gradient(180deg, rgba(126, 82, 17, 0.22), rgba(255, 255, 255, 0.03));
}

.performance-summary-card--negative {
  border-color: rgba(214, 84, 97, 0.24);
  background: linear-gradient(180deg, rgba(120, 33, 42, 0.22), rgba(255, 255, 255, 0.03));
}

.performance-summary-card__label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.performance-summary-card__label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.performance-summary-card__note {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.performance-summary-card__value {
  display: block;
  margin-top: 0.26rem;
  color: var(--text);
  font-size: clamp(1.18rem, 1.65vw, 1.6rem);
  line-height: 1;
}

.performance-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.performance-empty--compact {
  padding: 0.3rem 0;
}

.performance-empty--table {
  padding: 0.4rem 0.1rem;
}

.performance-empty--group {
  padding: 0.85rem 0;
}

.performance-empty--unsupported {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(245, 176, 65, 0.3);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(74, 43, 9, 0.42), rgba(42, 24, 5, 0.32)),
    rgba(21, 16, 10, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 153, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.16);
}

.performance-empty--unsupported strong {
  display: block;
  color: #fff1d6;
  font-size: 1rem;
  font-weight: 700;
}

.performance-empty--unsupported p {
  margin: 0;
  color: rgba(255, 230, 190, 0.9);
}

.performance-empty__warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 192, 84, 0.3), rgba(194, 122, 20, 0.24));
  border: 1px solid rgba(255, 205, 110, 0.36);
  color: #ffd56d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 0.2rem rgba(255, 184, 72, 0.08);
}

.performance-empty__warning-copy {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.performance-empty__warning-label {
  color: #ffcf75;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.performance-summary-empty {
  grid-column: 1 / -1;
  padding: 1rem 1.05rem;
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(17, 24, 42, 0.96), rgba(13, 19, 34, 0.96));
}

.performance-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.performance-primary-column,
.performance-secondary-column {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.performance-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.performance-chart-card,
.performance-trades-card {
  padding: 1rem 1.05rem;
  min-width: 0;
}

.performance-chart-card {
  border-color: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.performance-trades-card {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(17, 24, 42, 0.96), rgba(13, 19, 34, 0.96));
}

.performance-trades-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.performance-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.performance-chart-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
  padding-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.performance-chart-card__meta strong {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.performance-chart {
  width: 100%;
  min-height: 360px;
  min-width: 0;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(79, 128, 255, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.performance-chart__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem 0;
}

.performance-chart__hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.performance-chart__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.performance-chart__control,
.performance-chart__reset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border-radius: 0.75rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.7rem;
  font: inherit;
  cursor: pointer;
}

.performance-chart__control:hover,
.performance-chart__reset:hover {
  background: rgba(255, 255, 255, 0.08);
}

.performance-chart__control:disabled,
.performance-chart__reset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.performance-chart__zoom-label {
  min-width: 3rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.performance-chart__surface {
  position: relative;
  height: 320px;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.55rem 0;
}

.performance-chart__canvas {
  position: relative;
  height: 100%;
  width: 100%;
  display: block;
  min-width: 0;
}

.performance-chart__tooltip-inner {
  display: grid;
  gap: 0.12rem;
}

.performance-chart__tooltip-inner strong {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.performance-chart__tooltip-inner span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.performance-chart__empty {
  height: 320px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.performance-table-wrap {
  overflow-x: auto;
  min-height: 0;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
}

.performance-table th,
.performance-table td {
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
}

.performance-table th {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-table td {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.performance-table .is-right {
  text-align: right;
}

.performance-trade__primary-row,
.performance-trade__secondary-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.performance-trade__primary-row strong {
  color: var(--text);
}

.performance-trade__symbol {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.performance-trade__secondary-row {
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.performance-trade__time-stack strong {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.performance-trade__duration {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.performance-trade__net {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.performance-side {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.performance-side--buy {
  color: #d6ffe0;
  background: rgba(35, 141, 84, 0.2);
}

.performance-side--sell {
  color: #ffd1d4;
  background: rgba(170, 49, 61, 0.18);
}

.performance-groups {
  display: grid;
  gap: 0.8rem;
}

.performance-side-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.performance-side-card {
  padding: 0.95rem 1rem;
  border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.014));
}

.performance-side-card__head {
  display: grid;
  gap: 0.22rem;
}

.performance-side-card__head h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.performance-side-card__context {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.performance-side-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin-top: 0.82rem;
}

.performance-side-card__metric {
  padding: 0.72rem 0.78rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.performance-side-card__metric span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.performance-side-card__metric .performance-value {
  margin-top: 0.3rem;
  font-size: 1rem;
}

.performance-side-card__metric small {
  display: block;
  margin-top: 0.28rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.performance-group {
  padding: 0;
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.012);
  transition: border-color 180ms ease, background 180ms ease;
}

.performance-group[open] {
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012));
}

.performance-group__summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.performance-group__summary::-webkit-details-marker {
  display: none;
}

.performance-group__summary-main {
  display: grid;
  gap: 0.26rem;
}

.performance-group__summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  padding-top: 0.2rem;
}

.performance-group__meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.performance-group__chevron {
  width: 0.78rem;
  height: 0.78rem;
  border-right: 2px solid rgba(232, 238, 252, 0.72);
  border-bottom: 2px solid rgba(232, 238, 252, 0.72);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.performance-group[open] .performance-group__chevron {
  transform: rotate(225deg);
}

.performance-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.4rem;
  row-gap: 0;
  padding: 0 1rem 0.7rem;
}

.performance-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.9rem;
  padding: 0.78rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.performance-metric-row__main {
  min-width: 0;
}

.performance-metric-row__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.performance-metric-row__note {
  margin: 0.18rem 0 0;
  color: var(--text-muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.performance-value {
  display: block;
  margin-top: 0.34rem;
  font-size: 1.04rem;
  line-height: 1.12;
  color: var(--text);
}

.performance-metric-row__value {
  margin-top: 0;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
}

.performance-value--positive,
.performance-value--good {
  color: #9cf0bb;
}

.performance-value--negative {
  color: #ff9ea4;
}

.performance-value--warn {
  color: #ffd089;
}

.performance-value--neutral {
  color: #e8eefc;
}

@media (max-width: 1280px) {
  .performance-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .performance-content-grid,
  .performance-main-grid {
    grid-template-columns: 1fr;
  }

  .performance-panel__head,
  .performance-intro__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .performance-intro__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .performance-intro__primary-control {
    width: 100%;
  }

  .performance-intro__meta {
    justify-content: flex-start;
  }

  .performance-intro__feedback {
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }

  .performance-chart-card__meta {
    width: 100%;
    justify-content: flex-start;
  }

}

@media (max-width: 760px) {
  .performance-summary-grid,
  .performance-side-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-metric-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .performance-intro {
    padding: 0.8rem 1rem;
  }

  .performance-chart {
    min-height: 320px;
  }

  .performance-chart__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-side-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-side-grid {
    grid-template-columns: 1fr;
  }

  .performance-table,
  .performance-table thead,
  .performance-table tbody,
  .performance-table tr,
  .performance-table th,
  .performance-table td {
    display: block;
    width: 100%;
  }

  .performance-table thead {
    display: none;
  }

  .performance-table tr {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .performance-table td {
    padding: 0.32rem 0;
    border-bottom: 0;
    text-align: left;
  }

  .performance-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .performance-table .is-right {
    text-align: left;
  }

  .performance-trade__net {
    font-size: 1.1rem;
  }
}

@media (max-width: 560px) {
  .performance-summary-grid,
  .performance-metric-grid {
    grid-template-columns: 1fr;
  }

  .performance-side-card__metrics {
    grid-template-columns: 1fr;
  }

  .performance-chart-card__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .performance-chart {
    height: 300px;
  }
}

.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.overview-stat-grid--secondary {
  margin-top: 1.15rem;
}

.overview-stat-grid--runtime-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-stat {
  display: grid;
  justify-content: start;
  gap: 0.18rem;
  padding: 0.9rem 0.95rem;
  border-radius: 0.92rem;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.overview-stat span,
.overview-mini-row span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-stat strong {
  margin-top: 0.12rem;
  font-size: 1.38rem;
  line-height: 1.05;
}

.overview-stat--good {
  border-color: rgba(72, 184, 112, 0.14);
}

.overview-stat--good strong {
  color: #d4ffe4;
}

.overview-stat--warn {
  border-color: rgba(217, 156, 54, 0.16);
}

.overview-stat--warn strong {
  color: #ffe2ae;
}

.overview-stat--bad {
  border-color: rgba(214, 84, 97, 0.16);
}

.overview-stat--bad strong {
  color: #ffd1d5;
}

.overview-split-grid--runtime {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.overview-platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.overview-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-platform-pill__icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.overview-platform-pill strong {
  font-size: 0.85rem;
  line-height: 1;
}

.overview-list-item__time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.overview-list-item__time--absolute {
  min-width: 9.5rem;
  text-align: right;
}

.app-shell-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  background: rgba(3, 6, 12, 0.56);
  border: 0;
}

.app-shell-backdrop.is-visible {
  display: block;
}

.app-body--sidebar-collapsed .app-shell {
  grid-template-columns: 4.25rem minmax(0, 1fr);
}

.app-body--sidebar-collapsed .app-sidebar {
  transform: none;
  opacity: 1;
  pointer-events: auto;
  padding-inline: 0.5rem;
}

.app-body--sidebar-collapsed .app-sidebar__brand {
  justify-content: center;
  gap: 0;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 0;
}

.app-body--sidebar-collapsed .app-sidebar__brand a,
.app-body--sidebar-collapsed .app-sidebar__footer,
.app-body--sidebar-collapsed .app-sidebar__section-label {
  display: none;
}

.app-body--sidebar-collapsed .app-sidebar__collapse {
  margin-inline: auto;
}

.app-body--sidebar-collapsed .app-sidebar__section {
  justify-items: center;
  gap: 0.35rem;
}

.app-body--sidebar-collapsed .app-nav {
  justify-items: center;
}

.app-body--sidebar-collapsed .app-nav__link {
  justify-content: center;
  gap: 0;
  width: 2.8rem;
  min-height: 2.8rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.app-body--sidebar-collapsed .app-nav__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.app-body--sidebar-collapsed .app-sidebar__collapse::before {
  transform: translateY(-3px) rotate(45deg);
}

.app-body--sidebar-collapsed .app-sidebar__collapse::after {
  transform: translateY(3px) rotate(-45deg);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .app-body--sidebar-collapsed .app-shell {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .overview-grid--hero,
  .overview-grid--body {
    grid-template-columns: 1fr;
  }

  .overview-hero__meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 35;
    width: min(84vw, 320px);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    opacity: 1;
    pointer-events: auto;
    /* Override desktop `height: 100vh`: derive height from top+bottom so the scrollport matches
       the layout viewport on mobile (avoids 100vh vs visible viewport mismatch). */
    height: auto;
    min-height: 0;
    padding-bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-sidebar__collapse {
    display: none;
  }

  .app-topbar__toggle {
    display: inline-flex;
  }

  .overview-hero__header {
    flex-direction: column;
  }

  .overview-hero__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-topbar {
    padding: 0.9rem 1rem;
  }

  .app-page {
    padding: 1rem;
  }

  .app-grid--overview,
  .app-grid--overview-secondary,
  .app-grid--placeholder,
  .app-kpi-grid,
  .calendar-filters__grid,
  .log-trade-grid,
  .statistics-hero,
  .statistics-split,
  .statistics-distribution-grid,
  .overview-stat-grid,
  .overview-status-strip,
  .overview-split-grid,
  .overview-summary__signal-grid {
    grid-template-columns: 1fr;
  }

  .overview-summary__header,
  .overview-list-item,
  .overview-mini-row,
  .overview-decision-support {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-list-item__time {
    white-space: normal;
  }

  .overview-decision-counts,
  .overview-decision-actions {
    grid-template-columns: 1fr;
  }

  .overview-decision-option {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-decision-button {
    width: 100%;
    min-width: 0;
  }

  .overview-decision-support__actions {
    justify-content: flex-start;
  }

  .statistics-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .log-header,
  .log-tabs-bar,
  .log-toolbar__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .log-toolbar__controls,
  .log-toolbar__row.is-trade,
  .log-toolbar__row.is-trade .log-toolbar__controls,
  .log-toolbar__row.is-trade .log-filter-group,
  .log-toolbar__row.is-trade .log-pill-row {
    flex-wrap: wrap;
  }

  .log-toolbar__row.is-trade .log-select {
    width: 100%;
  }

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-header__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .statistics-calendar__weekday-row,
  .statistics-calendar__grid {
    gap: 0.35rem;
  }

  .statistics-calendar__cell,
  .statistics-calendar__blank {
    min-height: 6rem;
  }

  .statistics-volume-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-topbar {
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
  }

  .app-topbar__start {
    gap: 0.72rem;
  }

  .app-topbar__eyebrow,
  .app-topbar__subtitle {
    display: none;
  }

  .app-topbar h1 {
    font-size: 1.34rem;
    line-height: 1.08;
  }

  .app-topbar__end {
    gap: 0.4rem;
  }

  .app-topbar__support {
    display: none;
  }

  .app-user-chip {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding-inline: 0.65rem;
  }

  .statistics-card__value {
    font-size: 1.6rem;
  }

  .statistics-chip-group {
    gap: 0.35rem;
  }

  .statistics-chip,
  .statistics-select,
  .statistics-refresh,
  .log-button--primary,
  .calendar-select,
  .calendar-refresh {
    width: 100%;
  }

  .statistics-toolbar__group,
  .log-field,
  .log-filter-group,
  .calendar-header__actions,
  .calendar-timezone {
    width: 100%;
  }

  .calendar-timezone__meta {
    justify-items: start;
  }

  .statistics-table {
    min-width: 640px;
  }

  .calendar-table {
    min-width: 700px;
  }

  .log-tabs {
    gap: 0.85rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .log-tab {
    white-space: nowrap;
  }

  .log-stream {
    max-height: none;
  }
}

.app-page--calendar {
  padding-top: 1.15rem;
}

.app-page--log {
  padding-top: 1.15rem;
}

.log-page {
  display: grid;
  gap: 1rem;
}

.log-header,
.log-tabs-bar,
.log-toolbar,
.log-toolbar__row,
.log-toolbar__controls,
.log-filter-group,
.log-tabs,
.log-entry__head,
.log-entry__meta,
.log-modal__actions,
.log-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.log-header {
  justify-content: space-between;
}

.log-header:empty {
  display: none;
}

.log-tabs-card,
.log-toolbar-card,
.log-stream-card {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(79, 128, 255, 0.05), transparent 38%),
    rgba(255, 255, 255, 0.025);
}

.log-tabs {
  gap: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: -0.1rem -0.1rem 0;
  padding: 0 0.1rem 0.1rem;
}

.log-tabs-bar {
  justify-content: space-between;
  gap: 1rem;
}

.log-tab {
  padding: 0 0.1rem 0.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.log-tab.is-active {
  border-color: #4f80ff;
  color: #9ab7ff;
}

.log-toolbar {
  flex-direction: column;
  align-items: stretch;
}

.log-toolbar__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  width: 100%;
  margin-top: 0.35rem;
}

.log-toolbar__secondary .log-search {
  flex: 1 1 16rem;
  min-width: 12rem;
}

.log-filter-group--account .log-select {
  min-width: 14rem;
}

.log-search {
  position: relative;
}

.log-search__icon,
.log-search__clear,
.log-button__icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  align-items: center;
  justify-content: center;
}

.log-search__icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.log-search__icon svg,
.log-search__clear svg,
.log-button__icon svg,
.log-empty__icon svg,
.log-entry__level-icon svg,
.log-icon-button svg,
.log-details__chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.log-input,
.log-select {
  width: 100%;
  min-height: 2.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  color-scheme: dark;
}

.log-input {
  padding: 0.68rem 2.5rem 0.68rem 2.75rem;
}

.log-select {
  min-width: 10rem;
  padding: 0.58rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.35rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #8ea3d6 50%),
    linear-gradient(135deg, #8ea3d6 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
}

.log-select::-ms-expand {
  display: none;
}

.log-select option,
.log-select optgroup {
  background: #0b1220;
  color: #e7eefc;
}

.log-search__clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.log-toolbar__row {
  align-items: flex-end;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.log-toolbar__controls {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.log-toolbar__row.is-trade {
  gap: 0.9rem;
}

.log-toolbar__controls .log-filter-group {
  flex-wrap: nowrap;
}

.log-toolbar__controls .log-select {
  width: auto;
}

.log-toolbar__controls .log-pill-row {
  flex-wrap: nowrap;
}

.log-filter-group {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.log-filter-group__icon,
.log-entry__level-icon,
.log-empty__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.log-pill-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.log-pill,
.log-button,
.log-icon-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.log-pill {
  min-height: 1.95rem;
  padding: 0.25rem 0.7rem;
  border-radius: 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.log-pill.is-active {
  border-color: rgba(116, 148, 255, 0.22);
  background: rgba(79, 128, 255, 0.16);
  color: #dfe8ff;
}

.log-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.82rem;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.log-button--primary {
  margin-left: auto;
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.2), rgba(79, 128, 255, 0.12));
}

.log-button--good {
  border-color: rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.2);
}

.log-button--export {
  border-color: rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.2);
}

.log-button.is-refreshing .log-button__icon {
  animation: statistics-spin 900ms linear infinite;
}

.log-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.log-field {
  display: grid;
  gap: 0.45rem;
}

.log-field .log-select {
  width: 100%;
}

.log-field label {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.log-stream {
  display: grid;
  gap: 0.9rem;
  max-height: 75vh;
  overflow-y: auto;
}

.log-entry {
  display: grid;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.log-entry:last-child {
  border-bottom: 0;
}

.log-entry--error {
  background: rgba(170, 49, 61, 0.08);
  border-color: rgba(214, 84, 97, 0.22);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.log-entry--warning {
  background: rgba(181, 121, 26, 0.08);
  border-color: rgba(217, 156, 54, 0.22);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.log-entry--info,
.log-entry--webhook {
  background: rgba(79, 128, 255, 0.08);
  border-color: rgba(116, 148, 255, 0.18);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.log-entry__meta {
  flex: 1 1 auto;
}

.log-entry__source,
.log-entry__time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.log-entry__time--absolute {
  color: rgba(255, 255, 255, 0.28);
}

.log-entry__message {
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
}

.log-icon-button {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.55rem;
  cursor: pointer;
}

.log-icon-button svg {
  width: 0.82rem;
  height: 0.82rem;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
}

.log-badge--default,
.log-badge--logger {
  color: #d7e1fa;
  background: rgba(104, 124, 171, 0.15);
}

.log-badge--info {
  color: #dbe6ff;
  background: rgba(79, 128, 255, 0.18);
  border-color: rgba(116, 148, 255, 0.24);
}

.log-badge--success {
  color: #d7f8e2;
  background: rgba(40, 143, 83, 0.18);
  border-color: rgba(80, 191, 123, 0.24);
}

.log-badge--warning {
  color: #f7dfaa;
  background: rgba(181, 121, 26, 0.15);
  border-color: rgba(217, 156, 54, 0.24);
}

.log-badge--error {
  color: #ffd8dc;
  background: rgba(170, 49, 61, 0.16);
  border-color: rgba(214, 84, 97, 0.24);
}

.log-badge--webhook {
  color: #ead8ff;
  background: rgba(116, 72, 196, 0.18);
  border-color: rgba(153, 112, 224, 0.24);
}

.log-trade-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.log-trade-grid strong {
  font-weight: 700;
  color: var(--text);
}

.log-trade-grid strong.log-value--blue,
.log-trade-grid strong.log-side--buy {
  color: #6fa0ff;
}

.log-trade-grid strong.log-value--orange {
  color: #f2b65a;
}

.log-trade-grid strong.log-value--cyan {
  color: #67d6e6;
}

.log-trade-grid strong.log-value--green {
  color: #69d87f;
}

.log-trade-grid strong.log-value--red,
.log-trade-grid strong.log-side--sell {
  color: #ef646f;
}

.log-trade-grid strong.log-side--neutral {
  color: var(--text);
}

.log-side--buy,
.log-value--blue {
  color: #6fa0ff;
}

.log-side--sell,
.log-value--red {
  color: #ef646f;
}

.log-value--orange {
  color: #f2b65a;
}

.log-value--cyan {
  color: #67d6e6;
}

.log-value--green {
  color: #69d87f;
}

.log-callout {
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.log-callout--error {
  color: #f2b3b7;
  background: rgba(170, 49, 61, 0.12);
  border-color: rgba(214, 84, 97, 0.22);
}

.log-callout__title,
.log-block__label {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.log-block {
  display: grid;
  gap: 0.35rem;
}

.log-block__body,
.log-details pre {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 11, 22, 0.85);
  color: #d7e1fa;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.log-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
  list-style: none;
}

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

.log-details__chevron {
  display: inline-flex;
  width: 0.85rem;
  height: 0.85rem;
}

.log-details__list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.log-details__list span {
  color: var(--text);
}

.log-empty,
.log-load-more {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 2rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.log-empty__icon {
  width: 2rem;
  height: 2rem;
}

.log-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.log-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
}

.log-modal__panel {
  position: relative;
  width: min(100%, 34rem);
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 32, 0.96);
}

.log-modal__panel h3,
.log-modal__panel p {
  margin: 0;
}

.log-modal__panel p {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

.log-modal__group {
  display: grid;
  gap: 0.6rem;
}

.log-modal__label {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.calendar-page {
  display: grid;
  gap: 1rem;
}

.calendar-card {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(79, 128, 255, 0.05), transparent 38%),
    rgba(255, 255, 255, 0.025);
}

.calendar-header,
.calendar-header__actions,
.calendar-header__summary,
.calendar-header__subtitle,
.calendar-timezone,
.calendar-meta__row,
.calendar-filter-checks,
.calendar-filter-pills,
.calendar-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calendar-header {
  justify-content: space-between;
  gap: 1rem;
}

.calendar-header__summary {
  flex: 1 1 auto;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.calendar-header__actions {
  margin-left: auto;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.calendar-header__title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.calendar-header__subtitle {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.calendar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 148, 255, 0.2);
  background: rgba(79, 128, 255, 0.14);
  color: #d9e4ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-timezone__meta {
  display: grid;
  gap: 0.08rem;
  justify-items: end;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.calendar-select,
.calendar-refresh {
  min-height: 2.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
}

.calendar-select {
  min-width: 7.2rem;
}

.calendar-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 700;
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.2), rgba(79, 128, 255, 0.12));
}

.calendar-refresh__icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
}

.calendar-refresh__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.calendar-refresh.is-loading .calendar-refresh__icon {
  animation: statistics-spin 900ms linear infinite;
}

.calendar-message {
  color: #f3b7bb;
  font-size: 0.88rem;
}

.calendar-message--warning {
  color: #f5d28f;
}

.calendar-meta__row {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.calendar-meta__divider {
  color: rgba(255, 255, 255, 0.14);
}

.calendar-filters__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 0.4fr;
  gap: 1rem;
}

.calendar-filters__label {
  margin-bottom: 0.55rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calendar-checkbox {
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.86rem;
}

.calendar-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #4f80ff;
}

.calendar-pill {
  min-height: 1.9rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-pill.is-active {
  border-color: rgba(116, 148, 255, 0.2);
  background: rgba(79, 128, 255, 0.16);
  color: #dde7ff;
}

.calendar-empty-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.calendar-table-card {
  padding: 0;
  overflow: hidden;
}

.calendar-table-wrap {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.calendar-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(11, 16, 32, 0.96);
}

.calendar-table th,
.calendar-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
}

.calendar-table th {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calendar-table td {
  color: var(--text);
}

.calendar-table tr.is-alt {
  background: rgba(255, 255, 255, 0.015);
}

.calendar-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.calendar-table__time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #e8eefc;
}

.calendar-table__currency {
  color: #edf2ff;
}

.calendar-table__currency span {
  color: var(--text-muted);
}

.calendar-table__event span {
  display: inline-block;
  max-width: 33rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-table td.is-better {
  color: #4f80ff;
}

.calendar-table td.is-worse {
  color: #ef646f;
}

.calendar-table__empty {
  color: var(--text-muted);
  text-align: left;
}

.calendar-impact {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
}

.calendar-impact--high {
  color: #ffd8dc;
  background: rgba(170, 49, 61, 0.16);
  border-color: rgba(214, 84, 97, 0.24);
}

.calendar-impact--medium {
  color: #f7dfaa;
  background: rgba(181, 121, 26, 0.15);
  border-color: rgba(217, 156, 54, 0.24);
}

.calendar-impact--low {
  color: #cbd7f5;
  background: rgba(104, 124, 171, 0.15);
  border-color: rgba(135, 156, 206, 0.2);
}

.app-page--accounts {
  padding-top: 1.15rem;
}

.app-page--copiers {
  padding-top: 1.15rem;
}

.app-page--statistics {
  padding-top: 1.15rem;
}

.statistics-page {
  display: grid;
  gap: 1rem;
}

.statistics-toolbar,
.statistics-toolbar__group,
.statistics-section__head,
.statistics-card__head,
.statistics-legend,
.statistics-table__platform,
.statistics-calendar__header,
.statistics-calendar__month,
.statistics-mini-grid,
.statistics-kpi-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.statistics-toolbar {
  justify-content: space-between;
}

.statistics-toolbar__group {
  gap: 0.65rem;
}

.statistics-toolbar__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.statistics-toolbar__value {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.5rem 0.2rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.statistics-chip-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.statistics-chip,
.statistics-select,
.statistics-refresh {
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.statistics-chip {
  cursor: pointer;
}

.statistics-chip.is-active {
  border-color: rgba(116, 148, 255, 0.22);
  background: rgba(79, 128, 255, 0.16);
  color: #dfe8ff;
}

.statistics-select {
  min-width: 7rem;
}

.statistics-refresh {
  font-weight: 700;
  cursor: pointer;
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.2), rgba(79, 128, 255, 0.12));
}

.statistics-refresh.is-refreshing {
  opacity: 0.8;
}

.statistics-refresh__icon {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.45rem;
  vertical-align: -0.12rem;
}

.statistics-refresh__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.statistics-refresh.is-refreshing .statistics-refresh__icon {
  animation: statistics-spin 900ms linear infinite;
}

.statistics-hero,
.statistics-split,
.statistics-distribution-grid {
  display: grid;
  gap: 0.9rem;
}

.statistics-hero {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.statistics-split,
.statistics-distribution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.statistics-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(79, 128, 255, 0.06), transparent 40%),
    rgba(255, 255, 255, 0.025);
}

.statistics-card__head {
  justify-content: space-between;
}

.statistics-card__title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.statistics-card__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #9ab7ff;
}

.statistics-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.statistics-card__value {
  margin: 0;
  color: var(--text);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.05;
}

.statistics-card__meta,
.statistics-card__note,
.statistics-section__text,
.statistics-table,
.statistics-empty,
.statistics-calendar__day-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.statistics-card__trend--good {
  color: #69d87f;
}

.statistics-card__trend--bad {
  color: #f08b91;
}

.statistics-section {
  display: grid;
  gap: 0.75rem;
}

.statistics-section__head {
  justify-content: space-between;
}

.statistics-section__title {
  margin: 0;
  font-size: 1.02rem;
}

.statistics-section__text {
  margin: 0.1rem 0 0;
}

.statistics-kpi-grid,
.statistics-mini-grid {
  align-items: stretch;
}

.statistics-kpi {
  display: grid;
  gap: 0.16rem;
  min-width: 4.75rem;
}

.statistics-kpi__label {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.statistics-kpi__value {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.statistics-inline-note {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.statistics-inline-note strong {
  color: var(--text);
}

.statistics-calendar {
  display: grid;
  gap: 0.9rem;
}

.statistics-calendar__pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.statistics-calendar__pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
}

.statistics-calendar__pill strong {
  margin-left: 0.35rem;
}

.statistics-calendar__month button {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.statistics-calendar__month-label {
  min-width: 8rem;
  padding: 0.48rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.statistics-calendar__weekday-row,
.statistics-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.statistics-calendar__weekday {
  padding: 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.statistics-calendar__cell,
.statistics-calendar__blank {
  min-height: 7.2rem;
  padding: 0.55rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.statistics-calendar__blank {
  background: rgba(255, 255, 255, 0.015);
}

.statistics-calendar__cell.is-today {
  border-color: rgba(79, 128, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(79, 128, 255, 0.18);
}

.statistics-calendar__cell.has-activity.is-win {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(59, 130, 246, 0.06));
}

.statistics-calendar__cell.has-activity.is-loss {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(59, 130, 246, 0.05));
}

.statistics-calendar__top,
.statistics-calendar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.statistics-calendar__day {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.statistics-calendar__trade-count {
  color: var(--text);
  font-size: 0.72rem;
}

.statistics-calendar__row {
  margin-top: 0.35rem;
  font-size: 0.7rem;
}

.statistics-calendar__row strong {
  color: var(--text);
}

.statistics-calendar__bar {
  height: 0.36rem;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.statistics-calendar__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #ef4444);
}

.statistics-table-wrap {
  overflow-x: auto;
}

.statistics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.statistics-table th,
.statistics-table td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: middle;
}

.statistics-table th {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.statistics-table td {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.statistics-table td.is-right,
.statistics-table th.is-right {
  text-align: right;
}

.statistics-table__rank {
  color: var(--text-muted);
}

.statistics-table__symbol {
  color: var(--text);
  font-weight: 700;
}

.statistics-table__platform img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.statistics-platform-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  object-fit: contain;
  display: block;
}

.statistics-legend__item .statistics-platform-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-basis: 0.95rem;
}

.statistics-chart {
  display: grid;
  gap: 0.9rem;
}

.statistics-donut {
  display: grid;
  place-items: center;
}

.statistics-donut svg {
  width: min(100%, 21rem);
  height: auto;
  overflow: visible;
}

.statistics-legend {
  justify-content: center;
  gap: 1rem;
}

.statistics-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.statistics-legend__swatch {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.statistics-trend {
  display: grid;
  gap: 0.8rem;
}

.statistics-trend-chart {
  width: 100%;
  height: 19rem;
  min-width: 0;
  display: block;
}

.statistics-volume-bars {
  display: grid;
  gap: 0.55rem;
}

.statistics-volume-bar {
  display: grid;
  grid-template-columns: 4rem 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
}

.statistics-volume-bar__track {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.statistics-volume-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 128, 255, 0.92), rgba(86, 191, 255, 0.92));
}

.statistics-empty {
  padding: 2rem 1rem;
  text-align: center;
}

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

.copiers-page {
  display: grid;
  gap: 1rem;
}

.copiers-toolbar {
  display: flex;
  justify-content: flex-end;
}

.copiers-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.copiers-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.copiers-button:hover,
.copiers-button:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.copiers-button--primary {
  border-color: rgba(116, 148, 255, 0.22);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.18), rgba(79, 128, 255, 0.12));
}

.copiers-alert-stack {
  display: grid;
  gap: 0.8rem;
}

.copiers-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.copiers-alert--info {
  border-color: rgba(98, 145, 255, 0.18);
  background: rgba(56, 104, 214, 0.1);
}

.copiers-alert--warning {
  border-color: rgba(217, 156, 54, 0.22);
  background: rgba(181, 121, 26, 0.12);
}

.copiers-alert--error {
  border-color: rgba(214, 84, 97, 0.22);
  background: rgba(170, 49, 61, 0.12);
}

.copiers-alert__content {
  min-width: 0;
}

.copiers-alert__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.copiers-alert__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.copiers-alert__message {
  margin: 0.28rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.copiers-alert__technical {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.copiers-alert__technical summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-soft);
}

.copiers-alert__technical summary:focus-visible {
  outline: 2px solid rgba(191, 209, 255, 0.35);
  outline-offset: 2px;
}

.copiers-alert__technical p {
  margin: 0.35rem 0 0;
}

.copiers-alert__detail {
  margin: 0.34rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.copiers-alert--execution-group.copiers-alert--error {
  border-color: rgba(214, 84, 97, 0.26);
  background: rgba(110, 36, 46, 0.14);
}

.copiers-alert--execution-group.copiers-alert--warning {
  border-color: rgba(217, 156, 54, 0.22);
  background: rgba(120, 78, 18, 0.1);
}

.copiers-alert__summary-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.copiers-alert__summary-row {
  margin: 0.16rem 0;
}

.copiers-alert__more-hint {
  margin: 0.32rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.copiers-alert__execution-expanded {
  margin-top: 0.55rem;
}

.copiers-alert__details-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.copiers-alert__details-item {
  padding: 0.42rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  line-height: 1.45;
}

.copiers-alert__details-main {
  color: var(--text-soft);
}

.copiers-alert__details-actions {
  margin-top: 0.32rem;
}

.copiers-alert__action {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bfd1ff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.copiers-alert__action:hover,
.copiers-alert__action:focus-visible {
  color: #d7e3ff;
}

.copiers-alert__dismiss {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.copiers-alert__dismiss:hover,
.copiers-alert__dismiss:focus-visible {
  color: var(--text);
}

.copiers-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.copiers-stat {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.copiers-stat--connections {
  background: linear-gradient(135deg, rgba(11, 31, 79, 0.55), rgba(12, 18, 32, 0.96));
  border-color: rgba(64, 111, 220, 0.38);
}

.copiers-stat--masters {
  background: linear-gradient(135deg, rgba(6, 58, 48, 0.55), rgba(12, 18, 32, 0.96));
  border-color: rgba(37, 145, 106, 0.36);
}

.copiers-stat--active {
  background: linear-gradient(135deg, rgba(29, 32, 90, 0.55), rgba(12, 18, 32, 0.96));
  border-color: rgba(104, 104, 255, 0.32);
}

.copiers-stat__label {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.copiers-stat strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 1.7rem;
  line-height: 1;
}

.copiers-search-panel {
  padding: 0.15rem 0 0.1rem;
}

.copiers-search {
  position: relative;
}

.copiers-search input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.72rem 2.8rem 0.72rem 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.copiers-search input:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.copiers-search__icon,
.copiers-search__clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
}

.copiers-search__icon {
  left: 0.95rem;
}

.copiers-search__clear {
  right: 0.95rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.copiers-search__meta {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.copiers-table-wrap {
  overflow-x: auto;
}

.copiers-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.copiers-table th {
  padding: 0 0.8rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.copiers-table th:nth-child(3),
.copiers-table td:nth-child(3) {
  text-align: center;
}

.copiers-table td {
  padding: 0.9rem 0.8rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.copiers-table__row--master {
  cursor: pointer;
}

.copiers-table__row--master:hover {
  background: rgba(255, 255, 255, 0.025);
}

.copiers-table__row--master.is-expanded {
  background: rgba(40, 69, 136, 0.16);
}

.copiers-table__row--receiver {
  background: rgba(255, 255, 255, 0.02);
}

.copiers-account-cell {
  min-width: 18rem;
}

.copiers-account {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.copiers-account--receiver {
  padding-left: 1.4rem;
}

.copiers-account__name {
  font-weight: 600;
}

.copiers-warning-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0.18rem rgba(245, 158, 11, 0.16);
}

.copiers-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
}

.copiers-expand svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  transition: transform 160ms ease;
}

.copiers-table__row--master.is-expanded .copiers-expand svg {
  transform: rotate(90deg);
}

.copiers-table__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-inline: auto;
}

.copiers-table__platform img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copiers-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.copiers-pill--master {
  color: #8fb5ff;
  background: rgba(79, 128, 255, 0.14);
}

.copiers-pill--receiver {
  color: #69d87f;
  background: rgba(49, 144, 86, 0.12);
}

.copiers-pill--good {
  color: #69d87f;
  background: rgba(49, 144, 86, 0.12);
}

.copiers-pill--warn {
  color: #f7d79f;
  background: rgba(181, 121, 26, 0.12);
  border: 1px solid rgba(217, 156, 54, 0.24);
}

.copiers-pill--blue {
  color: #bfd1ff;
  background: rgba(79, 128, 255, 0.12);
}

.copiers-pill--coverage-good {
  color: #d6ffe0;
  background: rgba(35, 141, 84, 0.2);
  border: 1px solid rgba(72, 184, 112, 0.3);
}

.copiers-pill--coverage-moderate {
  color: #ffe3af;
  background: rgba(185, 118, 16, 0.18);
  border: 1px solid rgba(217, 156, 54, 0.28);
}

.copiers-pill--coverage-low {
  color: #ffd1d4;
  background: rgba(170, 49, 61, 0.18);
  border: 1px solid rgba(214, 84, 97, 0.28);
}

.copiers-type {
  font-weight: 700;
}

.copiers-type--live {
  color: #84a7ff;
}

.copiers-type--demo {
  color: #69d87f;
}

.copiers-status-stack {
  display: grid;
  gap: 0.35rem;
}

.copiers-status-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.copiers-status-note {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.copiers-toggle {
  position: relative;
  display: inline-flex;
  width: 2.1rem;
  height: 1.2rem;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.copiers-toggle::after {
  content: "";
  width: 0.88rem;
  height: 0.88rem;
  margin-left: 0.16rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.copiers-toggle.is-on {
  background: #22c55e;
}

.copiers-toggle.is-on.copiers-toggle--safe {
  background: #f59e0b;
}

.copiers-toggle.is-on::after {
  transform: translateX(0.88rem);
}

.copiers-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.copiers-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.copiers-toggle-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copiers-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.copiers-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.copiers-action:hover,
.copiers-action:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.copiers-action svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.copiers-action--purple {
  color: #c89bff;
}

.copiers-action--blue {
  color: #8fb5ff;
}

.copiers-action--danger {
  color: #f08b91;
}

.copiers-action--text {
  width: auto;
  padding: 0.4rem 0.5rem;
  color: #8fb5ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.copiers-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.copiers-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.9rem;
  opacity: 0.6;
}

.copiers-empty__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.copiers-empty__title {
  color: var(--text);
  font-weight: 700;
}

.copiers-empty svg {
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.9rem;
  opacity: 0.6;
}

.copiers-empty p {
  margin: 0.3rem 0 0;
}

.copiers-empty button {
  margin-top: 0.25rem;
}

.copiers-modal__intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.copiers-config-editor {
  width: 100%;
  min-height: 14rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
}

.copiers-modal__title-block {
  display: grid;
  gap: 0.2rem;
}

.copiers-modal__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.copiers-modal__subtitle-connection {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.copiers-modal__subtitle-connection img {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  display: block;
}

.copiers-modal__subtitle-arrow {
  color: var(--text-soft);
}

.copiers-modal .accounts-modal__panel--wide {
  width: min(100%, 72rem);
}

.copiers-health-search {
  margin-bottom: 1rem;
}

.copiers-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copiers-health-table,
.copiers-execution-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.copiers-health-table th,
.copiers-execution-table th {
  padding: 0 0.65rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.copiers-health-table td,
.copiers-execution-table td {
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  vertical-align: top;
}

.copiers-modal-table-wrap {
  overflow-x: auto;
}

.copiers-modal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.copiers-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.copiers-link-action:hover,
.copiers-link-action:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.copiers-link-action--ghost {
  background: transparent;
}

.copiers-modal-toolbar--execution {
  justify-content: space-between;
}

.copiers-modal-toolbar__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copiers-modal-select {
  display: grid;
  gap: 0.35rem;
  min-width: 10rem;
}

.copiers-modal-select__label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copiers-modal-toolbar select {
  min-height: 2.45rem;
  min-width: 8rem;
  padding: 0.5rem 2.35rem 0.5rem 0.85rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(45deg, transparent 50%, #8ea3d6 50%),
    linear-gradient(135deg, #8ea3d6 50%, transparent 50%),
    rgba(255, 255, 255, 0.03);
  background-position:
    calc(100% - 1rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem),
    0 0;
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem, auto;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.copiers-modal-toolbar select:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.copiers-lag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(244, 180, 74, 0.36);
  background: rgba(244, 180, 74, 0.16);
  color: #ffd36a;
  font-size: 0.76rem;
  font-weight: 700;
}

.copiers-muted-cell {
  color: var(--text-muted);
}

.copiers-symbol-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.copiers-symbol-stat-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.copiers-symbol-stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.copiers-symbol-stat-card__icon {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.copiers-symbol-stat-card strong {
  font-size: 1.15rem;
  color: var(--text);
}

.copiers-symbol-stat-card__subtext {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.copiers-symbol-stat-card__label {
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copiers-symbol-stat-card--mapped {
  border-color: rgba(72, 201, 125, 0.18);
  background: rgba(72, 201, 125, 0.08);
}

.copiers-symbol-stat-card--warn {
  border-color: rgba(234, 179, 8, 0.2);
  background: rgba(234, 179, 8, 0.08);
}

button.copiers-symbol-stat-card {
  cursor: pointer;
}

button.copiers-symbol-stat-card:hover,
button.copiers-symbol-stat-card:focus-visible,
button.copiers-symbol-stat-card.is-active {
  border-color: rgba(129, 160, 219, 0.36);
  box-shadow: 0 0 0 1px rgba(129, 160, 219, 0.16) inset;
}

.copiers-symbol-map-note {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.copiers-symbol-map-table {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(18, 28, 48, 0.9);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.copiers-symbol-map-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(134, 156, 198, 0.2);
  background: rgba(65, 80, 108, 0.62);
}

.copiers-symbol-map-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a9bad9;
  flex: 0 0 auto;
}

.copiers-symbol-map-search__icon svg {
  width: 1rem;
  height: 1rem;
}

.copiers-symbol-map-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 0;
}

.copiers-symbol-map-search__input::placeholder {
  color: #b2c0d8;
}

.copiers-symbol-map-search__input:focus {
  outline: none;
}

.copiers-symbol-map-table__head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(134, 156, 198, 0.14);
  background: rgba(8, 14, 29, 0.5);
  color: #d3def0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.copiers-symbol-map-table__rows {
  display: grid;
}

.copiers-symbol-map-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(134, 156, 198, 0.08);
  background: rgba(22, 33, 54, 0.68);
}

.copiers-symbol-map-row:first-child {
  border-top: 0;
}

.copiers-symbol-map-row.is-unmapped {
  background: rgba(31, 42, 64, 0.78);
}

.copiers-symbol-map-row__master,
.copiers-symbol-map-row__receiver {
  min-width: 0;
}

.copiers-symbol-map-row__receiver {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.copiers-symbol-map-field {
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(150, 169, 204, 0.14);
  background: rgba(73, 87, 114, 0.55);
  color: var(--text);
  padding: 0.72rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.copiers-symbol-map-field:focus {
  outline: none;
  border-color: rgba(79, 128, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.16);
}

.copiers-symbol-map-field.is-readonly {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-weight: 600;
  padding-left: 0;
  padding-right: 0;
}

.copiers-symbol-map-field.is-readonly:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.04);
}

.copiers-symbol-map-master-text {
  color: var(--text);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copiers-symbol-map-row.is-hidden-by-search {
  display: none;
}

.copiers-symbol-map-empty {
  padding: 1rem;
  color: #b7c5dc;
  font-size: 0.92rem;
}

.copiers-symbol-map-footer {
  position: sticky;
  bottom: -1.25rem;
  z-index: 2;
  justify-content: flex-start;
  align-items: center;
  margin: 1rem -1.25rem -1.25rem;
  padding: 0.95rem 1.25rem;
  border-top: 1px solid rgba(134, 156, 198, 0.12);
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.92), rgba(10, 17, 31, 0.98));
  backdrop-filter: blur(8px);
}

.copiers-symbol-map-footer__group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.copiers-symbol-map-footer__group--right {
  justify-content: flex-end;
  margin-left: auto;
}

.copiers-symbol-map-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(239, 100, 111, 0.18);
  background: rgba(239, 100, 111, 0.07);
  color: #f58d95;
  flex: 0 0 auto;
}

.copiers-symbol-map-remove svg {
  width: 0.95rem;
  height: 0.95rem;
}

.copiers-symbol-map-remove:hover {
  background: rgba(239, 100, 111, 0.12);
  border-color: rgba(239, 100, 111, 0.3);
}

/* ── Telegram Signal Config structured editor ── */
.tg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.5rem;
}
.tg-tab {
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.tg-tab:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.tg-tab.is-active {
  background: rgba(79, 128, 255, 0.15);
  border-color: rgba(79, 128, 255, 0.35);
  color: #8ab4ff;
}
.tg-tab-body { min-height: 12rem; }
.tg-section-note {
  font-size: 0.79rem;
  color: var(--text-soft);
  background: rgba(79, 128, 255, 0.07);
  border: 1px solid rgba(79, 128, 255, 0.18);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.tg-section-note p {
  margin: 0.35rem 0 0;
}
.tg-section-note code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.95em;
  color: var(--text);
}
.tg-section-note--warn {
  background: rgba(234, 179, 8, 0.07);
  border-color: rgba(234, 179, 8, 0.2);
  color: #f0d080;
}
.tg-section-note--context {
  background: rgba(79, 128, 255, 0.12);
  border-color: rgba(79, 128, 255, 0.28);
}
.tg-section-note--info {
  margin-top: 1rem;
}
.tg-section-note__list,
.tg-section-note__ordered {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}
.tg-section-note__list li,
.tg-section-note__ordered li {
  margin: 0.24rem 0;
}
.tg-section-note__legend {
  display: inline-flex;
  gap: 0.4rem;
  margin-left: 0.6rem;
}
.tg-kw-category {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.7rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.tg-kw-category__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: none;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.tg-kw-category__toggle:hover { background: rgba(255, 255, 255, 0.05); }
.tg-kw-category__chevron { font-size: 0.7rem; color: var(--text-soft); }
.tg-kw-category__meta { margin-left: auto; font-size: 0.75rem; color: var(--text-soft); font-weight: 400; }
.tg-kw-category__body { padding: 0.75rem 0.9rem; background: rgba(0,0,0,0.15); }
.tg-kw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}
.tg-kw-group { }
.tg-kw-group__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.tg-kw-group__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}
.tg-kw-badge {
  font-size: 0.67rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  background: rgba(255,255,255,0.07);
  color: var(--text-soft);
}
.tg-kw-badge--custom { background: rgba(79,128,255,0.15); color: #8ab4ff; }
.tg-kw-badge--modified { background: rgba(234,179,8,0.15); color: #f0d080; }
.tg-kw-row {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.28rem;
  align-items: center;
}
.tg-kw-input {
  flex: 1;
  padding: 0.32rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  font-size: 0.79rem;
  outline: none;
  transition: border-color 0.12s;
}
.tg-kw-input:focus { border-color: rgba(79,128,255,0.5); }
.tg-kw-input--custom { border-color: rgba(79,128,255,0.35); }
.tg-kw-del {
  background: none;
  border: none;
  color: rgba(248, 113, 113, 0.7);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  font-size: 0.75rem;
  border-radius: 0.3rem;
  transition: color 0.12s;
}
.tg-kw-del:hover { color: #f87171; }
.tg-kw-add {
  background: none;
  border: 1px dashed rgba(79,128,255,0.3);
  color: rgba(79,128,255,0.8);
  border-radius: 0.4rem;
  padding: 0.26rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-top: 0.2rem;
  transition: background 0.12s, border-color 0.12s;
}
.tg-kw-add:hover { background: rgba(79,128,255,0.07); border-color: rgba(79,128,255,0.55); }
.tg-section { }
.tg-section__header { margin-bottom: 0.55rem; }
.tg-section__header h4 { font-size: 0.88rem; font-weight: 600; color: var(--text); margin: 0 0 0.2rem; }
.tg-section__desc { font-size: 0.78rem; color: var(--text-soft); margin: 0; }
.tg-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.tg-chip {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.45rem;
  padding: 0.15rem 0.5rem 0.15rem 0.4rem;
}
.tg-chip__input {
  width: 5.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.79rem;
  outline: none;
}
.tg-chip__del {
  background: none;
  border: none;
  color: rgba(248, 113, 113, 0.7);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
}
.tg-chip__del:hover { color: #f87171; }
.tg-replace-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem; }
.tg-replace-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tg-replace-row .tg-kw-input { flex: 1; }
.tg-replace-arrow { color: var(--text-soft); font-size: 0.8rem; flex-shrink: 0; }
.tg-test-result {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(79,128,255,0.18);
  border-radius: 0.6rem;
}
.tg-test-result p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
}
.tg-test-result--warn {
  border-color: rgba(234, 179, 8, 0.24);
  background: rgba(234, 179, 8, 0.08);
  color: #f0d080;
}
.tg-test-result--error {
  border-color: rgba(239, 100, 111, 0.24);
  background: rgba(120, 16, 28, 0.12);
  color: #ffb2ba;
}
.tg-test-result__label { font-size: 0.75rem; color: var(--text-soft); margin-bottom: 0.4rem; }
.tg-test-result__pre {
  font-size: 0.75rem;
  color: #86efac;
  overflow-x: auto;
  max-height: 12rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.tg-receiver-callout {
  margin-bottom: 1rem;
}

.tg-receiver-validation {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(239, 100, 111, 0.24);
  background: rgba(120, 16, 28, 0.12);
  color: #ffb2ba;
}

.tg-receiver-validation__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffd0d5;
}

.tg-receiver-validation__list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

.tg-receiver-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(8, 15, 30, 0.45);
  margin-bottom: 1rem;
}

.tg-receiver-section__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(15, 23, 42, 0.45);
  border: 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.tg-receiver-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.tg-receiver-section__meta {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
}

.tg-receiver-section__body {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-receiver-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-receiver-tab {
  min-height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.tg-receiver-tab.is-active,
.tg-receiver-pill.is-active {
  border-color: rgba(79, 128, 255, 0.5);
  background: rgba(79, 128, 255, 0.14);
  color: #dbe7ff;
}

.tg-receiver-tab-copy,
.tg-receiver-events__copy,
.tg-receiver-preview__hint,
.tg-receiver-presets__label,
.tg-receiver-variables__label {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.tg-receiver-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tg-receiver-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tg-receiver-pill {
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.tg-receiver-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tg-receiver-editor,
.tg-receiver-preview {
  display: grid;
  gap: 0.55rem;
}

.tg-receiver-editor__header,
.tg-receiver-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.tg-receiver-editor__label,
.tg-receiver-preview__label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.tg-receiver-editor__required {
  color: #f0d080;
  font-size: 0.75rem;
  font-weight: 700;
}

.tg-receiver-template,
.tg-receiver-preview__body {
  min-height: 15rem;
}

.tg-receiver-preview__body {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow: auto;
}

.tg-receiver-preview__copy {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.tg-receiver-variables {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-receiver-variables__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tg-receiver-variable {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-soft);
  cursor: pointer;
}

.tg-receiver-variable__name {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
}

.tg-receiver-variable__code {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.tg-receiver-events {
  display: grid;
  gap: 0.65rem;
}

.tg-receiver-event-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .tg-receiver-editor-grid {
    grid-template-columns: 1fr;
  }
}

.copiers-tv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.copiers-tv-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.4));
}

.copiers-tv-card h3,
.copiers-tv-card p {
  margin: 0;
}

.copiers-tv-card h3 {
  font-size: 0.95rem;
  color: var(--text);
}

.copiers-tv-card p,
.copiers-tv-steps {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.copiers-tv-steps {
  margin: 0;
  padding-left: 1.15rem;
}

.copiers-filter-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.copiers-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.copiers-filter-chip.is-active {
  border-color: rgba(116, 148, 255, 0.22);
  background: rgba(79, 128, 255, 0.16);
  color: var(--text);
}

.copiers-create {
  display: grid;
  gap: 1.1rem;
}

.copiers-create-section {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.38));
  overflow: hidden;
}

.copiers-create-section__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.copiers-create-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.copiers-create-section__icon,
.copiers-create-section__check,
.copiers-create-section__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #8fb5ff;
  flex: 0 0 auto;
}

.copiers-create-section__check {
  color: #69d87f;
}

.copiers-create-section__icon svg,
.copiers-create-section__check svg,
.copiers-create-section__chevron svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.copiers-create-section__chevron {
  color: var(--text-muted);
  transition: transform 160ms ease;
}

.copiers-create-section__chevron.is-open {
  transform: rotate(90deg);
}

.copiers-create-section__body {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.copiers-create-readonly {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.copiers-create-readonly__label,
.copiers-create-subsection__title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copiers-create-subsection-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.6rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.copiers-create-search {
  position: relative;
}

.copiers-create-search input,
.copiers-create-field input,
.copiers-create-field select,
.copiers-create-inline-field input,
.copiers-create-inline-field select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  padding: 0.72rem 0.9rem;
}

.copiers-create-search input {
  padding-left: 2.45rem;
}

.copiers-create-search__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  transform: translateY(-50%);
}

.copiers-create-search__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.copiers-create-choice-list,
.copiers-create-toggle-list,
.copiers-create-subsection,
.copiers-create-close-list {
  display: grid;
  gap: 0.75rem;
}

.copiers-create-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.copiers-create-choice.is-selected {
  border-color: rgba(79, 128, 255, 0.4);
  background: rgba(79, 128, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(79, 128, 255, 0.12) inset;
}

.copiers-create-choice:has(input:checked) {
  border-color: rgba(79, 128, 255, 0.4);
  background: rgba(79, 128, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(79, 128, 255, 0.12) inset;
}

.copiers-create-choice.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.copiers-create-choice input {
  margin-top: 0.25rem;
}

.copiers-create-choice__body {
  display: grid;
  gap: 0.55rem;
}

.copiers-create-choice__meta,
.copiers-create-chip-row,
.copiers-create-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.copiers-create-account {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

.copiers-create-account__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
}

.copiers-create-account__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.copiers-create-account__body {
  display: grid;
  gap: 0.12rem;
}

.copiers-create-account__body strong {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.copiers-create-account__body span,
.copiers-create-account__empty,
.copiers-create-help,
.copiers-create-tip {
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.copiers-create-account__body em {
  margin-left: 0.35rem;
  font-style: normal;
  color: #69d87f;
}

.copiers-create-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copiers-create-grid--thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.copiers-create-field--span-2 {
  grid-column: 1 / -1;
}

.copiers-create-field {
  display: grid;
  gap: 0.45rem;
}

.copiers-create-field > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}

.copiers-create-field > span em {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
}

.copiers-create-field em {
  color: var(--text-muted);
  font-size: 0.73rem;
  font-style: normal;
}

.copiers-create-field__stack {
  position: relative;
}

.copiers-create-field__suffix {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.copiers-create-toggle-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.15rem 0;
}

.copiers-create-toggle-row > span {
  display: grid;
  gap: 0.14rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.copiers-create-toggle-row em {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-style: normal;
}

.copiers-create-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem auto;
  gap: 0.7rem;
  align-items: center;
}

.copiers-create-inline-field__label {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.copiers-create-filter-block {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copiers-create-filter-block__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.copiers-create-filter-block__help {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.copiers-create-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 0.7rem;
  column-gap: 2.4rem;
}

.copiers-create-mini-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  min-height: 1.9rem;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.1s;
}

.copiers-create-mini-check span {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e4ebff;
  text-transform: capitalize;
  line-height: 1.35;
}

.copiers-create-mini-check:has(input:checked) span {
  color: var(--text);
}

.copiers-create-mini-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #6091ff;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.copiers-create-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.copiers-create-chip button,
.copiers-create-close-row button,
.copiers-create-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.copiers-create-chip button svg,
.copiers-create-close-row button svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke: currentColor;
}

.copiers-create-chip--blue {
  color: #bfd1ff;
  background: rgba(79, 128, 255, 0.12);
  border: 1px solid rgba(79, 128, 255, 0.24);
}

.copiers-create-chip--red {
  color: #ffd1d4;
  background: rgba(170, 49, 61, 0.16);
  border: 1px solid rgba(214, 84, 97, 0.24);
}

.copiers-create-results {
  display: grid;
  gap: 0.35rem;
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.45rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 6, 23, 0.48);
}

.copiers-create-results button,
.copiers-create-inline-action {
  justify-content: flex-start;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.copiers-create-results button:hover,
.copiers-create-inline-action:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.copiers-create-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  color: #8fb5ff;
  background: rgba(79, 128, 255, 0.1);
  border: 1px solid rgba(79, 128, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
}

.copiers-create-selected svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.copiers-create-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(79, 128, 255, 0.24);
  background: linear-gradient(90deg, rgba(79, 128, 255, 0.1), rgba(168, 85, 247, 0.08));
}

.copiers-create-callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  color: #8fb5ff;
  background: rgba(79, 128, 255, 0.14);
}

.copiers-create-callout__icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.copiers-create-callout__body {
  display: grid;
  gap: 0.45rem;
}

.copiers-create-callout__title {
  margin: 0;
  color: #bfd1ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.copiers-create-callout__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.copiers-create-tip code {
  margin: 0 0.25rem;
  padding: 0.1rem 0.3rem;
  border-radius: 0.4rem;
  background: rgba(2, 6, 23, 0.65);
  color: #9ce79a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.copiers-create-close-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.copiers-create-empty {
  padding: 1rem;
  border-radius: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.copiers-flow {
  display: grid;
  gap: 1rem;
}

.copiers-flow__header,
.copiers-flow__panel-header,
.copiers-flow__code-row,
.copiers-flow__inline,
.copiers-flow__split {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.copiers-flow__header h3,
.copiers-flow__panel h4 {
  margin: 0;
}

.copiers-flow__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copiers-flow__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.copiers-flow__meta img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  display: block;
}

.copiers-flow__panel,
.copiers-flow__callout {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.copiers-flow__callout strong {
  color: var(--text);
}

.copiers-flow__callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.copiers-flow__callout--warn {
  border-color: rgba(217, 156, 54, 0.22);
  background: rgba(181, 121, 26, 0.1);
}

.copiers-flow__callout--purple {
  border-color: rgba(168, 85, 247, 0.22);
  background: rgba(168, 85, 247, 0.08);
}

.copiers-flow__callout--good {
  border-color: rgba(73, 184, 114, 0.22);
  background: rgba(49, 144, 86, 0.1);
}

.copiers-flow__stats {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copiers-flow__stats--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.copiers-flow__stats--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.copiers-flow__stat {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
}

.copiers-flow__stat--static {
  cursor: default;
}

.copiers-flow__stat strong {
  font-size: 1.35rem;
  color: var(--text);
}

.copiers-flow__stat em {
  font-size: 0.76rem;
  font-style: normal;
  color: var(--text-muted);
}

.copiers-flow__stat-platform {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
}

.copiers-flow__stat-platform img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
  display: block;
}

.copiers-flow__stat.is-active {
  border-color: rgba(79, 128, 255, 0.28);
  background: rgba(79, 128, 255, 0.1);
}

.copiers-flow__stat--warn {
  border-color: rgba(217, 156, 54, 0.22);
  background: rgba(181, 121, 26, 0.08);
}

.copiers-flow__stat--warn.is-active {
  border-color: rgba(217, 156, 54, 0.38);
  background: rgba(181, 121, 26, 0.16);
}

.copiers-flow__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copiers-flow__field {
  display: grid;
  gap: 0.45rem;
}

.copiers-flow__field > span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.copiers-flow__field input,
.copiers-flow__field select,
.copiers-flow__field textarea,
.copiers-flow__inline input,
.copiers-flow__inline select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
}

.copiers-health-table select,
.copiers-execution-table select {
  min-height: 2.4rem;
  padding: 0.55rem 2.1rem 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background-color: rgba(7, 11, 22, 0.92);
  color: var(--text);
  font: inherit;
}

.copiers-flow__field textarea {
  min-height: 10rem;
  resize: vertical;
}

.copiers-flow__code-block,
.copiers-flow__preview {
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
}

.copiers-flow__code-block code,
.copiers-flow__code-block pre,
.copiers-flow__preview {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d9e6ff;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.copiers-flow__search {
  flex: 1 1 20rem;
  margin-left: auto;
}

.copiers-flow__actions,
.copiers-flow__token-list,
.copiers-flow__stack,
.copiers-flow__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── Close Symbols structured picker ── */
.copiers-close-symbols__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.copiers-close-symbols__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.copiers-close-symbols__symbol {
  flex: 1;
  font-size: 0.82rem;
  font-family: monospace;
  color: var(--text);
  font-weight: 600;
}

.copiers-close-symbols__time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: monospace;
}

.copiers-close-symbols__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}

.copiers-close-symbols__remove:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.copiers-close-symbols__add {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copiers-close-symbols__add-symbol {
  flex: 1 1 8rem;
  min-width: 6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: monospace;
  font-size: 0.82rem;
}

.copiers-close-symbols__add-symbol:focus {
  outline: none;
  border-color: rgba(96, 145, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(79, 128, 255, 0.12);
}

.copiers-close-symbols__add-time {
  flex: 0 0 8rem;
  width: 8rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
}

.copiers-close-symbols__add-time:focus {
  outline: none;
  border-color: rgba(96, 145, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(79, 128, 255, 0.12);
}

.copiers-close-symbols__add-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(96, 145, 255, 0.3);
  background: rgba(79, 128, 255, 0.12);
  color: #a3bfff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}

.copiers-close-symbols__add-btn:hover {
  background: rgba(79, 128, 255, 0.22);
  color: #c8d8ff;
}

.copiers-close-symbols__empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Create modal sticky footer ── */
.copiers-create-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 1rem;
  margin: 0.75rem -1.25rem -1.25rem;
  background: rgba(10, 15, 30, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.copiers-create-footer__left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.copiers-create-footer__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.copiers-flow__stack {
  flex-direction: column;
}

.copiers-flow__split {
  align-items: stretch;
}

.copiers-flow__split > * {
  flex: 1 1 18rem;
}

.copiers-flow__connection-label {
  margin: -0.2rem 0 0.1rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.copiers-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}

.copiers-confirm {
  display: grid;
  gap: 0.9rem;
}

.copiers-confirm p {
  margin: 0;
  color: var(--text-soft);
}

.accounts-page {
  display: grid;
  gap: 1rem;
}

.accounts-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.accounts-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.accounts-search,
.accounts-select {
  min-height: 2.9rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 31, 0.9);
  color: var(--text);
  font: inherit;
}

.accounts-search {
  width: 100%;
}

.accounts-select {
  min-width: 11rem;
}

.accounts-search::placeholder {
  color: var(--text-muted);
}

.accounts-search:focus,
.accounts-select:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.accounts-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(116, 148, 255, 0.22);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.18), rgba(79, 128, 255, 0.12));
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.accounts-primary-action:hover,
.accounts-primary-action:focus-visible {
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.24), rgba(79, 128, 255, 0.16));
}

.accounts-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.accounts-secondary-action--compact {
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.88rem;
}

.accounts-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-right: 0.55rem;
}

.accounts-button__icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.accounts-secondary-action:hover,
.accounts-secondary-action:focus-visible,
.accounts-secondary-action.is-active {
  color: var(--text);
  border-color: rgba(116, 148, 255, 0.22);
  background: rgba(79, 128, 255, 0.08);
}

.accounts-secondary-action--danger {
  color: #f2b3b7;
  border-color: rgba(214, 84, 97, 0.16);
}

.accounts-secondary-action--danger:hover,
.accounts-secondary-action--danger:focus-visible {
  background: rgba(170, 49, 61, 0.12);
  border-color: rgba(214, 84, 97, 0.24);
}

.accounts-search-panel,
.accounts-filter-panel {
  padding: 1rem;
}

.accounts-search-panel[hidden],
.accounts-filter-panel[hidden] {
  display: none;
}

.accounts-filter-panel {
  display: grid;
  gap: 1rem;
}

.accounts-filter-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.accounts-filter-field {
  display: grid;
  gap: 0.45rem;
}

.accounts-filter-field span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.accounts-filter-panel__footer {
  display: flex;
  justify-content: flex-start;
}

.accounts-summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.accounts-banners {
  display: grid;
  gap: 0.85rem;
}

.accounts-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.accounts-banner--info {
  background: rgba(79, 128, 255, 0.06);
  border-color: rgba(116, 148, 255, 0.18);
}

.accounts-banner--warn {
  background: rgba(181, 121, 26, 0.12);
  border-color: rgba(217, 156, 54, 0.2);
}

.accounts-banner--error {
  background: rgba(170, 49, 61, 0.12);
  border-color: rgba(214, 84, 97, 0.22);
}

.accounts-banner__content {
  display: grid;
  gap: 0.22rem;
}

.accounts-banner__content strong {
  font-size: 0.95rem;
}

.accounts-banner__content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.accounts-banner__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.accounts-banner__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(116, 148, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.accounts-banner__action:hover,
.accounts-banner__action:focus-visible {
  background: rgba(79, 128, 255, 0.08);
}

.accounts-banner__dismiss {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.accounts-banner__dismiss:hover,
.accounts-banner__dismiss:focus-visible {
  color: var(--text);
}

.accounts-summary-card {
  flex: 0 0 7rem;
  min-width: 7rem;
  max-width: 14rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

button.accounts-summary-card {
  width: auto;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.accounts-summary-card__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.accounts-summary-card__icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.accounts-summary-card strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 1.6rem;
  line-height: 1;
}

.accounts-summary-card--summary strong {
  color: var(--text);
}

.accounts-summary-card--summary {
  min-width: 0;
}

.accounts-summary-card--summary-main {
  flex: 0 0 7.5rem;
  min-width: 7.5rem;
  max-width: 10rem;
  background:
    linear-gradient(180deg, rgba(58, 96, 214, 0.18), rgba(17, 26, 49, 0.94)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(104, 143, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(154, 185, 255, 0.15);
}

.accounts-summary-card--summary-main .accounts-summary-card__label {
  color: rgba(189, 214, 255, 0.86);
}

.accounts-summary-card--summary-main strong {
  color: #f4f8ff;
  text-shadow: 0 0 18px rgba(82, 134, 255, 0.16);
}

.accounts-summary-card--summary-portfolio {
  flex: 0 0 12.5rem;
  min-width: 12.5rem;
  max-width: 16rem;
  background:
    radial-gradient(circle at top right, rgba(57, 181, 137, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(14, 36, 35, 0.96), rgba(10, 20, 23, 0.96));
  border-color: rgba(75, 190, 146, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(128, 231, 189, 0.12),
    0 10px 24px rgba(9, 20, 19, 0.22);
}

.accounts-summary-card--summary-portfolio .accounts-summary-card__label {
  color: rgba(188, 242, 219, 0.88);
}

.accounts-summary-card--summary-portfolio strong {
  max-width: 100%;
  font-size: 1.6rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  color: #f2fffa;
  text-shadow: 0 0 18px rgba(62, 193, 147, 0.14);
}

.accounts-summary-card--platform {
  flex: 0 0 4.75rem;
  min-width: 4.75rem;
  max-width: 4.75rem;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  padding: 0.7rem 0.35rem;
}

.accounts-summary-card--platform:hover,
.accounts-summary-card--platform:focus-visible,
.accounts-summary-card--active {
  border-color: rgba(116, 148, 255, 0.22);
  background: rgba(79, 128, 255, 0.08);
}

.accounts-summary-card__label--icon {
  justify-content: center;
  min-height: 1.25rem;
}

.accounts-summary-card--platform strong {
  margin-top: 0.3rem;
  font-size: 1rem;
  text-align: center;
}

#trading-accounts-connect-modal .accounts-modal__panel {
  width: min(100%, 46rem);
}

.accounts-connect-form {
  display: grid;
  gap: 1.15rem;
}

.accounts-connect-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.accounts-connect-form__fields--stacked {
  grid-template-columns: 1fr;
}

.accounts-field {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.accounts-field--full {
  grid-column: 1 / -1;
}

.accounts-field span {
  color: rgba(232, 239, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.accounts-field__hint {
  color: rgba(154, 166, 194, 0.92);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.5;
}

.accounts-field input,
.accounts-field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 24, 0.96);
  color: var(--text);
  font: inherit;
}

.accounts-field input::placeholder {
  color: var(--text-muted);
}

.accounts-field input:focus,
.accounts-field select:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.accounts-inline-error {
  margin: 0;
  color: #f2b3b7;
  font-size: 0.88rem;
}

.accounts-error-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(127, 29, 29, 0.2);
}

.accounts-error-card__icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: #f87171;
  flex-shrink: 0;
}

.accounts-error-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.accounts-error-card__content {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.accounts-error-card__title {
  color: #f87171;
  font-size: 0.96rem;
  font-weight: 700;
}

.accounts-error-card__message {
  margin: 0;
  color: #fecaca;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.accounts-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.accounts-guide-link:hover,
.accounts-guide-link:focus-visible {
  color: #8fb3ff;
}

.accounts-guide-link__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.accounts-guide-link__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.accounts-info-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
}

.accounts-info-card--warning {
  border-color: rgba(217, 163, 74, 0.32);
  background: rgba(120, 73, 16, 0.14);
}

.accounts-info-card--blue {
  border-color: rgba(79, 128, 255, 0.35);
  background: rgba(37, 74, 158, 0.16);
}

.accounts-info-card h3,
.accounts-info-card p,
.accounts-info-card ul {
  margin: 0;
}

.accounts-info-card h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.accounts-info-card p,
.accounts-info-card li {
  color: rgba(196, 206, 229, 0.95);
  font-size: 0.83rem;
  line-height: 1.55;
}

.accounts-info-card ul {
  padding-left: 1.15rem;
}

.accounts-info-card__inline-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: #f0c979;
  font-size: 0.78rem;
}

.accounts-info-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 178, 72, 0.28);
  background: rgba(245, 178, 72, 0.14);
  color: #f1c878;
  font-size: 0.74rem;
  font-weight: 700;
}

.accounts-connect-form__helper {
  margin: -0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.accounts-tv-requirements,
.accounts-tv-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.accounts-tv-panel--good {
  border-color: rgba(58, 179, 122, 0.24);
  background: rgba(23, 84, 57, 0.18);
}

.accounts-tv-panel--warning,
.accounts-tv-requirements {
  border-color: rgba(116, 148, 255, 0.18);
  background: rgba(79, 128, 255, 0.07);
}

.accounts-tv-requirements__header,
.accounts-tv-panel__header,
.accounts-tv-template__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.accounts-tv-requirements__header h3,
.accounts-tv-panel__header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.accounts-tv-requirements__header p,
.accounts-tv-panel__header p {
  margin: 0.22rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.accounts-tv-badge,
.accounts-tv-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.accounts-tv-badge {
  border: 1px solid rgba(116, 148, 255, 0.22);
  background: rgba(79, 128, 255, 0.16);
  color: #b8cbff;
}

.accounts-tv-status-pill.is-good {
  border: 1px solid rgba(58, 179, 122, 0.28);
  background: rgba(58, 179, 122, 0.16);
  color: #8de0b7;
}

.accounts-tv-status-pill.is-warn {
  border: 1px solid rgba(245, 178, 72, 0.28);
  background: rgba(245, 178, 72, 0.12);
  color: #f1c878;
}

.accounts-tv-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 14, 26, 0.34);
}

.accounts-tv-check input {
  margin-top: 0.18rem;
}

.accounts-tv-check span {
  display: grid;
  gap: 0.24rem;
}

.accounts-tv-check strong {
  color: var(--text);
  font-size: 0.88rem;
}

.accounts-tv-check small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.accounts-tv-requirements__actions {
  display: flex;
  justify-content: flex-start;
}

.accounts-tv-webhook-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
}

.accounts-tv-webhook-row input,
.accounts-tv-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.accounts-tv-webhook-row input {
  min-width: 0;
}

.accounts-tv-copy {
  min-width: 5.5rem;
}

.accounts-tv-template {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.accounts-tv-template__header p {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.accounts-tv-code {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 14, 26, 0.72);
  color: #d8e3ff;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.accounts-tv-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.accounts-tv-note--warning {
  color: #f1c878;
}

.accounts-tv-empty {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.accounts-ctrader-auth {
  display: grid;
  gap: 1rem;
}

.accounts-ctrader-auth__panel {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.accounts-ctrader-auth__panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.accounts-ctrader-auth__panel h3 span {
  margin-right: 0.4rem;
}

.accounts-ctrader-auth__panel p {
  margin: 0;
  color: rgba(196, 206, 229, 0.95);
  font-size: 0.84rem;
  line-height: 1.55;
}

.accounts-ctrader-auth__security {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.accounts-ctrader-auth__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.accounts-tv-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .accounts-tv-requirements__header,
  .accounts-tv-panel__header,
  .accounts-tv-template__header {
    flex-direction: column;
    align-items: stretch;
  }

  .accounts-tv-webhook-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.accounts-task-state,
.accounts-task-selection,
.accounts-task-selection__list {
  display: grid;
  gap: 1rem;
}

.accounts-task-state__message {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.accounts-task-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.accounts-task-choice input {
  margin-top: 0.2rem;
}

.accounts-task-choice__body {
  display: grid;
  gap: 0.22rem;
}

.accounts-task-choice__body strong {
  color: var(--text);
}

.accounts-task-choice__body span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.accounts-telegram-sessions {
  display: grid;
  gap: 0.5rem;
}

.accounts-telegram-sessions__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.accounts-telegram-sessions__or {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

.accounts-telegram-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Telegram authentication screen: phone step */
.accounts-tg-auth-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
}

.accounts-tg-auth-header__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.accounts-tg-auth-header__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.accounts-tg-watch-video {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--accent, #5a8dee);
  text-decoration: none;
}

.accounts-tg-watch-video:hover {
  text-decoration: underline;
}

.accounts-tg-sessions {
  display: grid;
  gap: 0.5rem;
}

.accounts-tg-sessions__heading {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.accounts-tg-session-btn {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.accounts-tg-session-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.accounts-tg-session-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.accounts-tg-session-btn__phone {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}

.accounts-tg-session-btn__hint {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.accounts-tg-add-new {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--accent, #5a8dee);
  cursor: pointer;
  text-decoration: none;
}

.accounts-tg-add-new:hover {
  text-decoration: underline;
}

.accounts-tg-phone-reveal {
  display: grid;
  gap: 1rem;
}

.accounts-tg-phone-reveal[hidden] {
  display: none;
}

/* Telegram channels step */
.accounts-tg-channels-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
}

.accounts-tg-channels-header__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.accounts-tg-channels-header__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.accounts-tg-channels-header__note {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  opacity: 0.8;
}

.accounts-field__hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 0.2rem;
  opacity: 0.8;
}

.accounts-modal__footer--stacked {
  flex-direction: column;
  gap: 0.6rem;
}

.accounts-modal__footer--stacked .accounts-primary-action,
.accounts-modal__footer--stacked .accounts-secondary-action {
  width: 100%;
}

.accounts-connect-note--inline {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.accounts-connect-note--warning {
  border-color: rgba(205, 140, 54, 0.24);
  background: rgba(120, 73, 16, 0.12);
}

.accounts-selector__header {
  display: flex;
  justify-content: flex-end;
}

.accounts-text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
}

.accounts-selector__list {
  display: grid;
  gap: 0.8rem;
}

.accounts-selector__item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.accounts-selector__item-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.accounts-selector__check {
  padding-top: 0.12rem;
}

.accounts-selector__check input {
  width: 1rem;
  height: 1rem;
}

.accounts-selector__identity {
  display: grid;
  gap: 0.18rem;
}

.accounts-selector__identity strong {
  font-size: 1rem;
}

.accounts-selector__identity span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.accounts-table-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.accounts-table-card__header .app-card__eyebrow {
  margin: 0;
}

.accounts-table-card__header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.accounts-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.accounts-table {
  width: max-content;
  min-width: max(100%, 1040px);
  border-collapse: collapse;
  font-family: inherit;
}

.accounts-table th {
  padding: 0 0.6rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accounts-sort-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
  transition: color 0.12s;
}
.accounts-sort-btn:hover { color: var(--text); }
.accounts-sort-icon { font-size: 0.7em; }

.accounts-table__select-col {
  width: 2.25rem;
}

.accounts-table td {
  padding: 0.95rem 0.6rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
}

.accounts-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accounts-table__row--selected {
  background: rgba(79, 128, 255, 0.08);
}

.accounts-table__row--disabled {
  opacity: 0.72;
}

.accounts-table__account,
.accounts-table__account-meta {
  display: grid;
  gap: 0.16rem;
}

.accounts-table__identity-row,
.accounts-table__account-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.accounts-name-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.accounts-name-edit:hover,
.accounts-name-edit:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.accounts-name-edit svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
}

.accounts-inline-edit {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(100%, 28rem);
}

.accounts-inline-edit__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(116, 148, 255, 0.18);
  background: rgba(12, 18, 31, 0.9);
  color: var(--text);
  font: inherit;
}

.accounts-inline-edit__input:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.accounts-table__account strong,
.accounts-table__account-meta strong {
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
}

.accounts-table__account span,
.accounts-table__account-meta span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.accounts-table__note {
  max-width: 28rem;
}

.accounts-table__status-inline {
  width: fit-content;
  min-height: 1.45rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

.accounts-table__status-inline--good {
  color: #c8f2da;
  background: rgba(36, 145, 84, 0.15);
  border-color: rgba(72, 184, 112, 0.22);
}

.accounts-table__status-inline--warn {
  color: #f7d79f;
  background: rgba(181, 121, 26, 0.15);
  border-color: rgba(217, 156, 54, 0.24);
}

.accounts-table__status-inline--bad {
  color: #f4b9bd;
  background: rgba(170, 49, 61, 0.15);
  border-color: rgba(214, 84, 97, 0.24);
}

.accounts-table__status-inline--muted {
  color: #d3ddf7;
  background: rgba(104, 124, 171, 0.14);
  border-color: rgba(135, 156, 206, 0.18);
}

.accounts-table__mono,
.accounts-table__balance {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.accounts-table__mono {
  font-family: inherit;
}

.accounts-table__link-value {
  color: var(--text);
}

.accounts-table__link-value--missing {
  color: #f7d79f;
}

.accounts-table__detail-text {
  display: block;
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounts-table__server,
.accounts-table__balance {
  color: var(--text-soft);
}

.accounts-table__balance {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
}

.accounts-type {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.accounts-type--demo {
  color: #69d87f;
}

.accounts-type--live {
  color: #84a7ff;
}

.accounts-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.accounts-platform-badge__label {
  display: none;
}

.accounts-platform-badge__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.accounts-platform-badge__mark--image img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.accounts-table__platform-cell {
  text-align: center;
}

.accounts-table__platform-cell .accounts-platform-badge {
  display: inline-flex;
  min-width: 2.1rem;
  width: auto;
  justify-content: center;
  margin: 0;
}

.accounts-table th:nth-child(6) {
  text-align: center;
}

.accounts-table th:nth-child(6) .accounts-sort-btn {
  justify-content: center;
}

.accounts-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.accounts-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.accounts-action:hover,
.accounts-action:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.accounts-action svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.accounts-action--compact {
  width: 1.6rem;
  height: 1.6rem;
}

.accounts-action--status {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  cursor: help;
}

.accounts-action--good {
  color: #69d87f;
  background: rgba(49, 144, 86, 0.12);
  border-color: rgba(73, 184, 114, 0.22);
}

.accounts-action--warn {
  color: #f7d79f;
  background: rgba(181, 121, 26, 0.12);
  border-color: rgba(217, 156, 54, 0.22);
}

.accounts-action--bad {
  color: #f2b3b7;
  background: rgba(170, 49, 61, 0.12);
  border-color: rgba(214, 84, 97, 0.22);
}

.accounts-action--neutral {
  color: #88a9ff;
}

.accounts-action--muted {
  color: var(--text-muted);
}

.accounts-action--sync {
  color: #f0c25d;
}

.accounts-action--label {
  width: auto;
  gap: 0.35rem;
  padding: 0 0.6rem;
  border: 1px solid rgba(217, 156, 54, 0.22);
  background: rgba(181, 121, 26, 0.12);
}

.accounts-action--label span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.accounts-action--danger {
  color: #f08b91;
}

.accounts-empty-state {
  padding: 2.2rem 1rem 1rem;
  text-align: center;
}

.accounts-checkbox {
  width: 1rem;
  height: 1rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(7, 12, 23, 0.35);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.accounts-checkbox:hover {
  border-color: rgba(143, 174, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.accounts-checkbox:focus-visible {
  outline: none;
  border-color: rgba(116, 148, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(79, 128, 255, 0.18),
    inset 0 0 0 1px rgba(7, 12, 23, 0.2);
}

.accounts-checkbox:checked {
  border-color: rgba(116, 148, 255, 0.4);
  background-color: #4f80ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.72rem 0.72rem;
}

.accounts-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.accounts-empty-state__content {
  max-width: 28rem;
  margin: 0 auto;
}

.accounts-empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.36);
  font-size: 2.2rem;
  line-height: 1;
}

.accounts-empty-state h3 {
  font-size: 1.55rem;
  color: var(--text);
  margin: 0;
}

.accounts-empty-state p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.accounts-empty-state__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.accounts-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 1.4rem;
}

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

.accounts-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.accounts-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
}

.accounts-modal__panel {
  position: relative;
  width: min(100%, 62rem);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  background: rgba(11, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.accounts-modal__panel--compact {
  width: min(100%, 34rem);
}

.accounts-modal__panel--wide {
  width: min(100%, 48rem);
}

.accounts-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accounts-modal__header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.accounts-modal__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.accounts-modal__back-link:hover,
.accounts-modal__back-link:focus-visible {
  color: var(--text);
}

.accounts-connect-note {
  display: grid;
  gap: 0.42rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.accounts-connect-note strong {
  font-size: 0.95rem;
  color: var(--text);
}

.accounts-connect-note p {
  margin: 0;
  color: rgba(180, 192, 219, 0.95);
  font-size: 0.84rem;
  line-height: 1.55;
}

.accounts-connect-technical {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.accounts-connect-technical summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-soft);
}

.accounts-connect-technical p {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.accounts-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.accounts-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.accounts-modal__close:hover,
.accounts-modal__close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.accounts-modal__close span {
  font-size: 1.4rem;
  line-height: 1;
}

.accounts-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.accounts-modal input,
.accounts-modal select,
.accounts-modal textarea {
  color-scheme: dark;
}

.accounts-modal select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #8ea3d6 50%),
    linear-gradient(135deg, #8ea3d6 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
}

.accounts-modal select::-ms-expand {
  display: none;
}

.accounts-modal select option,
.accounts-modal select optgroup {
  background: #0b1220;
  color: #e7eefc;
}

.accounts-platform-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.accounts-platform-picker__item {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.accounts-platform-picker__item:hover,
.accounts-platform-picker__item:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.accounts-platform-picker__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.accounts-platform-picker__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.accounts-platform-picker__icon img {
  width: auto;
  height: auto;
  max-width: 2.05rem;
  max-height: 2.05rem;
  object-fit: contain;
  display: block;
  padding: 0;
}

.accounts-platform-picker__label {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.accounts-mt-choice {
  /* Span all columns of the parent .accounts-platform-picker grid */
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
}

.accounts-mt-choice__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.accounts-mt-choice__card {
  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.accounts-mt-choice__card:hover,
.accounts-mt-choice__card:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.accounts-mt-choice__card--recommended {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(12, 18, 35, 0.96));
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.14), 0 12px 30px rgba(5, 150, 105, 0.16);
}

.accounts-mt-choice__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.accounts-mt-choice__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.accounts-mt-choice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.accounts-mt-choice__icon--recommended {
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.accounts-mt-choice__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
}

.accounts-mt-choice__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.accounts-mt-choice__subtitle {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.accounts-mt-choice__tag {
  flex-shrink: 0;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.15);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.accounts-mt-choice__bullets {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(205, 215, 235, 0.92);
  font-size: 0.92rem;
}

.accounts-mt-choice__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.accounts-mt-choice__bullets--recommended {
  color: #f1f5f9;
}

.accounts-mt-choice__dot {
  flex-shrink: 0;
  width: 0.38rem;
  height: 0.38rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.accounts-mt-choice__dot--recommended {
  background: #86efac;
}

.accounts-connect {
  display: grid;
  gap: 1rem;
}

.accounts-connect__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.accounts-connect__back:hover,
.accounts-connect__back:focus-visible {
  color: var(--text);
}

.accounts-connect__back::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.accounts-connect__form {
  display: grid;
  gap: 0.95rem;
}

.accounts-connect__grid {
  display: grid;
  gap: 0.95rem;
}

.accounts-connect__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounts-connect__field {
  display: grid;
  gap: 0.45rem;
}

.accounts-connect__field label {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.accounts-connect__field input,
.accounts-connect__field select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(7, 11, 22, 0.92);
  color: var(--text);
  font: inherit;
}

.accounts-connect__field select {
  background-color: rgba(7, 11, 22, 0.92);
}

.accounts-connect__field input:focus,
.accounts-connect__field select:focus {
  outline: 0;
  border-color: rgba(116, 148, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 128, 255, 0.14);
}

.accounts-connect__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.accounts-connect__card {
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.accounts-connect__card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.25;
}

.accounts-connect__card p,
.accounts-connect__card li,
.accounts-connect__card strong {
  font-size: 0.84rem;
}

.accounts-connect__card p {
  margin: 0;
  color: var(--text-soft);
}

.accounts-connect__card ul,
.accounts-connect__card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.accounts-connect__card--warn {
  background: rgba(171, 117, 33, 0.14);
  border-color: rgba(217, 156, 54, 0.24);
}

.accounts-connect__card--info {
  background: rgba(56, 104, 214, 0.12);
  border-color: rgba(98, 145, 255, 0.2);
}

.accounts-connect__card--success {
  background: rgba(49, 144, 86, 0.12);
  border-color: rgba(73, 184, 114, 0.22);
}

.accounts-connect__badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.accounts-connect__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(217, 156, 54, 0.14);
  border: 1px solid rgba(217, 156, 54, 0.22);
  color: #f7d79f;
  font-size: 0.72rem;
  font-weight: 700;
}

.accounts-connect__requirements {
  display: grid;
  gap: 0.75rem;
}

.accounts-connect__requirement {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.accounts-connect__requirement input {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  accent-color: #4f80ff;
}

.accounts-connect__requirement strong {
  display: block;
  font-size: 0.84rem;
}

.accounts-connect__requirement p {
  margin: 0.22rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.accounts-connect__terminal-list,
.accounts-connect__channel-list,
.accounts-connect__session-list {
  display: grid;
  gap: 0.75rem;
}

.accounts-connect__terminal {
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.accounts-connect__terminal-top,
.accounts-connect__terminal-bottom,
.accounts-connect__session,
.accounts-connect__channel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.accounts-connect__terminal-top {
  margin-bottom: 0.8rem;
}

.accounts-connect__terminal-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.accounts-connect__terminal-path {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
}

.accounts-connect__terminal-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.accounts-connect__terminal-actions,
.accounts-connect__footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.accounts-connect__terminal-actions {
  margin-left: auto;
}

.accounts-connect__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.8rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.accounts-connect__status-pill--good {
  color: #69d87f;
  background: rgba(49, 144, 86, 0.12);
  border: 1px solid rgba(73, 184, 114, 0.22);
}

.accounts-connect__status-pill--warn {
  color: #f7d79f;
  background: rgba(181, 121, 26, 0.12);
  border: 1px solid rgba(217, 156, 54, 0.22);
}

.accounts-connect__button,
.accounts-connect__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.62rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.accounts-connect__button:hover,
.accounts-connect__button:focus-visible,
.accounts-connect__link:hover,
.accounts-connect__link:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.accounts-connect__button--primary {
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.22), rgba(79, 128, 255, 0.15));
  border-color: rgba(116, 148, 255, 0.22);
}

.accounts-connect__button--secondary {
  background: rgba(255, 255, 255, 0.025);
}

.accounts-connect__button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.accounts-connect__footer {
  justify-content: space-between;
  padding-top: 0.25rem;
}

.accounts-connect__footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.accounts-connect__waiting {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 1rem 0 0.4rem;
  text-align: center;
}

.accounts-connect__spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(116, 148, 255, 0.2);
  border-top-color: #84a7ff;
  border-radius: 50%;
  transform: translateZ(0);
  will-change: transform;
  -webkit-animation: accounts-spin 0.9s linear infinite;
  animation: accounts-spin 0.9s linear infinite;
}

.accounts-connect__waiting p {
  margin: 0;
  color: var(--text-soft);
}

.accounts-connect__waiting strong {
  font-size: 1rem;
}

.accounts-modal__footer--spread {
  justify-content: space-between;
  align-items: center;
}

.accounts-mt-terminal-list,
.accounts-mt-detected-list {
  display: grid;
  gap: 0.9rem;
}

.accounts-mt-terminal-card,
.accounts-mt-account-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.accounts-mt-terminal-card__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.accounts-mt-terminal-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.accounts-mt-terminal-card__logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.accounts-mt-terminal-card__copy,
.accounts-mt-account-card__main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.accounts-mt-terminal-card__copy strong,
.accounts-mt-account-card__main strong {
  font-size: 0.98rem;
}

.accounts-mt-terminal-card__copy span,
.accounts-mt-account-card__main span {
  color: var(--text-soft);
  word-break: break-word;
}

.accounts-mt-terminal-card__actions,
.accounts-mt-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.accounts-mt-terminal-card__actions {
  flex-wrap: wrap;
}

.accounts-mt-terminal-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.accounts-mt-terminal-card__badge--good {
  color: #b2f3c8;
  background: rgba(35, 107, 64, 0.28);
  border-color: rgba(85, 196, 129, 0.25);
}

.accounts-mt-terminal-card__badge--warn {
  color: #f0d788;
  background: rgba(111, 87, 18, 0.26);
  border-color: rgba(230, 182, 55, 0.24);
}

.accounts-mt-account-card--selected {
  border-color: rgba(116, 148, 255, 0.35);
  background: rgba(83, 116, 220, 0.12);
}

.accounts-task-selection--mt {
  display: grid;
  gap: 0.9rem;
}

@keyframes accounts-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .accounts-table-card__header {
    flex-direction: column;
  }

  .accounts-modal__panel {
    width: min(100%, 56rem);
  }

  .accounts-platform-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .accounts-mt-choice__grid {
    grid-template-columns: 1fr;
  }

  .accounts-connect__grid--two {
    grid-template-columns: 1fr;
  }

  .copiers-stats {
    grid-template-columns: 1fr;
  }

  .copiers-alert {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .accounts-toolbar {
    align-items: stretch;
  }

  .accounts-toolbar__actions {
    width: 100%;
  }

  .accounts-search,
  .accounts-select,
  .accounts-secondary-action,
  .accounts-primary-action {
    width: 100%;
  }

  .accounts-summary {
    grid-template-columns: 1fr;
  }

  .accounts-summary-platforms {
    justify-content: start;
  }

  .accounts-connect-form__fields {
    grid-template-columns: 1fr;
  }

  .accounts-summary {
    flex-wrap: wrap;
  }

  .accounts-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .accounts-summary-platforms {
    flex-wrap: wrap;
  }

  .accounts-field--full,
  .accounts-connect-note--inline {
    grid-column: auto;
  }

  .accounts-modal__footer {
    flex-direction: column;
  }

  .accounts-platform-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-filter-panel__grid {
    grid-template-columns: 1fr;
  }

  .accounts-connect__terminal-top,
  .accounts-connect__terminal-bottom,
  .accounts-connect__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .accounts-connect__terminal-actions,
  .accounts-connect__footer-actions {
    margin-left: 0;
    width: 100%;
  }

  .accounts-connect__button,
  .accounts-connect__link {
    width: 100%;
  }

  .copiers-toolbar {
    justify-content: stretch;
  }

  .copiers-toolbar__actions {
    width: 100%;
  }

  .copiers-button {
    width: 100%;
  }

  .copiers-modal-footer {
    flex-direction: column;
  }

  .copiers-create-grid,
  .copiers-create-grid--thirds,
  .copiers-create-checkbox-grid,
  .copiers-flow__grid,
  .copiers-flow__stats,
  .copiers-flow__stats--triple,
  .copiers-flow__stats--quad {
    grid-template-columns: 1fr;
  }

  .copiers-create-inline-field,
  .copiers-flow__inline {
    grid-template-columns: 1fr;
  }

  .copiers-create-callout,
  .copiers-flow__split {
    grid-template-columns: 1fr;
  }
}

.app-page--help {
  max-width: 72rem;
}

.help-page {
  display: grid;
  gap: 1.35rem;
}

.help-page .help-card--support-chat-widget-host {
  justify-self: start;
}

.help-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.92), rgba(12, 17, 30, 0.95)),
    var(--panel);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

.help-card--hero {
  overflow: hidden;
}

.help-card--assistant {
  margin-bottom: 1rem;
}

.help-chatbot {
  padding: 1.25rem 1.35rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.help-chatbot__head {
  display: grid;
  gap: 0.35rem;
}

.help-chatbot__title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.help-chatbot__subtitle {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
}

.help-chatbot__messages {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.35);
}

.help-chatbot__msg {
  display: grid;
  gap: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.help-chatbot__msg-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.95);
}

.help-chatbot__msg--user .help-chatbot__msg-body {
  color: rgba(248, 250, 252, 0.95);
}

.help-chatbot__msg--assistant .help-chatbot__msg-body {
  color: rgba(226, 232, 240, 0.92);
}

.help-chatbot__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.help-chatbot__input {
  flex: 1 1 220px;
  min-height: 2.75rem;
  resize: vertical;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.45);
  color: inherit;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.help-chatbot__offer {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(14, 165, 233, 0.06);
}

.help-chatbot__offer-title {
  margin: 0;
  font-size: 1rem;
}

.help-chatbot__offer-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.82);
}

.help-chatbot__preview {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.help-chatbot__missing,
.help-chatbot__error {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(251, 191, 36, 0.95);
}

.help-chatbot__success {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(52, 211, 153, 0.95);
}

.help-card--support-chat-slot {
  margin-bottom: 1.1rem;
}

.help-card--support-chat-widget-host {
  max-width: min(100%, 880px);
  width: 100%;
  padding: 0;
  overflow: visible;
  border-radius: 1.08rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.12) 45%, rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 0 0 1px rgba(2, 6, 23, 0.65),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 8px 32px rgba(56, 189, 248, 0.07);
}

.help-support-chat--widget {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 1px;
  border-radius: calc(1.08rem - 1px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(32, 44, 72, 0.99), rgba(17, 24, 39, 0.995)),
    var(--panel);
}

.help-support-chat__notice--widget {
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(59, 130, 246, 0.12);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.help-support-chat__widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.35);
}

.help-support-chat__widget-header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
}

.help-support-chat__widget-header-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.help-support-chat__avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: rgba(224, 242, 254, 0.95);
}

.help-support-chat__avatar-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.help-support-chat__widget-titles {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.help-support-chat__widget-brand {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: rgba(248, 250, 252, 0.96);
}

.help-support-chat__widget-sub {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.92);
}

.help-support-chat__ghost-btn--widget {
  flex-shrink: 0;
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  cursor: pointer;
}

.help-support-chat__ghost-btn--widget:hover {
  background: rgba(255, 255, 255, 0.1);
}

.help-support-chat__widget-body {
  flex: 1;
  min-height: 0;
  padding: 0.5rem 0.65rem 0.35rem;
}

.help-support-chat__thread {
  min-height: 220px;
  height: 280px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.5rem 0.45rem;
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.help-support-chat__empty-hint {
  margin: 0.35rem 0.65rem 0.15rem;
  padding: 0 0.15rem;
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.78);
  text-align: center;
}

.help-support-chat__empty-hint[hidden] {
  display: none;
}

.help-support-chat__turn {
  display: flex;
  width: 100%;
}

.help-support-chat__turn--assistant {
  justify-content: flex-start;
}

.help-support-chat__turn--user {
  justify-content: flex-end;
}

.help-support-chat__bubble {
  max-width: 70%;
  border-radius: 0.95rem;
  padding: 0.5rem 0.72rem;
}

.help-support-chat__bubble--assistant {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-bottom-left-radius: 0.28rem;
}

.help-support-chat__bubble--user {
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.42), rgba(2, 132, 199, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-bottom-right-radius: 0.28rem;
}

.help-support-chat__bubble--typing {
  padding: 0.55rem 0.85rem;
}

.help-support-chat__bubble-meta {
  margin: 0 0 0.2rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.help-support-chat__bubble-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(248, 250, 252, 0.95);
}

.help-support-chat__bubble--assistant .help-support-chat__bubble-body {
  color: rgba(241, 245, 249, 0.94);
}

.help-support-chat__bubble-footnote {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
}

.help-support-chat__typing-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  padding: 0.1rem 0;
}

.help-support-chat__typing-dots span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.75);
  animation: help-support-chat-typing 1.1s ease-in-out infinite;
}

.help-support-chat__typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.help-support-chat__typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes help-support-chat-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.help-support-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem 0.45rem;
}

.help-support-chat__chip--widget {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.help-support-chat__chip--widget:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.26);
}

.help-support-chat__composer--widget {
  padding: 0.4rem 0.65rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 6, 23, 0.25);
}

.help-support-chat__composer-row--widget {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-support-chat__input--widget {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 0.4rem 0.2rem;
}

.help-support-chat__input--widget:focus {
  outline: none;
}

.help-support-chat__input--widget::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.help-support-chat__send--widget {
  flex-shrink: 0;
  align-self: flex-end;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.help-support-chat__widget-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0.65rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 6, 23, 0.35);
}

.help-support-chat__restore-note {
  flex: 1 1 100%;
  order: -1;
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: rgba(100, 116, 139, 0.82);
}

.help-support-chat__disclaimer {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.88);
}

.help-support-chat__widget-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.help-support-chat__footer-stuck {
  font-size: 0.72rem;
  color: rgba(186, 198, 214, 0.92);
}

.help-support-chat__support-link {
  margin: 0;
  padding: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(56, 189, 248, 0.98);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.help-support-chat__support-link:hover {
  color: rgba(186, 230, 253, 1);
}

.help-support-chat__history-bar {
  padding: 0.35rem 0.65rem 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.25);
}

.help-support-chat__history-toggle {
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-support-chat__history-toggle:hover {
  color: rgba(224, 242, 254, 0.95);
}

.help-support-chat__history-panel {
  margin-top: 0.45rem;
  max-height: 9rem;
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(203, 213, 225, 0.92);
}

.help-support-chat__history-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.help-support-chat__history-row:last-child {
  border-bottom: 0;
}

.help-support-chat__history-date {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.help-support-chat__history-meta {
  color: rgba(148, 163, 184, 0.95);
}

.help-support-chat__history-loading,
.help-support-chat__history-empty,
.help-support-chat__history-error {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.95);
}

.help-support-chat__outcome {
  margin: 0.35rem 0 0 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
}

.help-support-chat__outcome-question {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.help-support-chat__outcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.help-support-chat__outcome-btn {
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
}

.help-support-chat__outcome-btn:hover {
  border-color: rgba(125, 211, 252, 0.45);
  color: rgba(224, 242, 254, 1);
}

.help-support-chat__outcome-btn--yes {
  border-color: rgba(52, 211, 153, 0.35);
}

.help-support-chat__outcome-btn--no {
  border-color: rgba(251, 191, 36, 0.35);
}

.help-support-chat__outcome-done {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(167, 243, 208, 0.95);
}

.help-support-chat__resolved-notice {
  margin: 0.5rem 0 0 0.15rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(12, 30, 45, 0.55);
  max-width: 100%;
}

.help-support-chat__resolved-notice-text {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(224, 242, 254, 0.92);
}

.help-support-chat__resolved-notice-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 0.35rem;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(14, 55, 80, 0.5);
  color: rgba(224, 242, 254, 0.98);
  cursor: pointer;
}

.help-support-chat__resolved-notice-btn:hover {
  border-color: rgba(125, 211, 252, 0.65);
}

.help-support-chat__escalation-card {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(45, 32, 8, 0.35);
  max-width: 100%;
}

.help-support-chat__escalation-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(254, 243, 199, 0.98);
}

.help-support-chat__escalation-card-body {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(253, 230, 138, 0.88);
}

.help-support-chat__escalation-card-btn {
  margin: 0;
  padding: 0.38rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 0.35rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(80, 55, 12, 0.45);
  color: rgba(255, 251, 235, 0.98);
  cursor: pointer;
}

.help-support-chat__escalation-card-btn:hover {
  border-color: rgba(253, 224, 71, 0.55);
}

@media (max-width: 560px) {
  .help-support-chat__thread {
    min-height: 240px;
    height: min(320px, 42vh);
    max-height: 340px;
  }

  .help-support-chat__bubble {
    max-width: 88%;
  }

  .help-support-chat__composer-row--widget {
    flex-direction: column;
    align-items: stretch;
  }

  .help-support-chat__send--widget {
    width: 100%;
    align-self: stretch;
  }

  .help-support-chat__chip--widget {
    white-space: normal;
    text-align: left;
  }

  .help-support-chat__widget-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.help-wizard {
  overflow: hidden;
}

.help-wizard__panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.help-wizard__header {
  display: grid;
  gap: 0.95rem;
}

.help-wizard__header h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.help-wizard__header p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.help-wizard__intro-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.help-wizard__body {
  display: grid;
  gap: 0.9rem;
}

.help-wizard__stepper {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.help-wizard__step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.help-wizard__step.is-current {
  color: #f4f7ff;
}

.help-wizard__step.is-complete {
  color: #8fb1ff;
}

.help-wizard__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.help-wizard__step.is-current .help-wizard__dot {
  border-color: rgba(116, 148, 255, 0.42);
  background: rgba(47, 104, 255, 0.12);
  color: #9fc1ff;
}

.help-wizard__step.is-complete .help-wizard__dot {
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(47, 104, 255, 0.95), rgba(35, 87, 222, 0.95));
  color: #fff;
}

.help-wizard__connector {
  width: 1.35rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.help-ticket-options--tight {
  gap: 0.5rem;
}

.help-wizard__category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.help-wizard__category-card {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(7, 12, 23, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.help-wizard__category-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.help-wizard__category-card.is-selected {
  border-color: rgba(116, 148, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(30, 52, 112, 0.18), rgba(10, 15, 28, 0.5)),
    rgba(10, 15, 28, 0.34);
  box-shadow: inset 0 1px 0 rgba(159, 193, 255, 0.06);
}

.help-wizard__category-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.help-wizard__category-body {
  display: grid;
  gap: 0.38rem;
  padding: 0.95rem 1rem;
}

.help-wizard__category-label {
  color: #f4f7ff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.help-wizard__category-text {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.help-wizard__category-meta {
  color: #8fb1ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.help-wizard__issue-panel {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(10, 15, 28, 0.32);
}

.help-wizard__issue-panel-header {
  display: grid;
  gap: 0.22rem;
}

.help-wizard__issue-panel-header h4 {
  margin: 0;
  color: #f4f7ff;
  font-size: 1rem;
  line-height: 1.35;
}

.help-wizard__issue-panel-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.help-ticket-option--issue {
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(7, 12, 23, 0.45);
  align-items: flex-start;
}

.help-ticket-option--issue.is-selected {
  border-color: rgba(116, 148, 255, 0.28);
  background: rgba(18, 30, 63, 0.45);
}

.help-ticket-option--issue:hover {
  background: rgba(255, 255, 255, 0.04);
}

.help-wizard__issue-option-body {
  display: grid;
  gap: 0.2rem;
}

.help-wizard__issue-option-title {
  color: #f4f7ff;
  font-weight: 700;
  line-height: 1.4;
}

.help-wizard__issue-option-text {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.help-wizard__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(10, 15, 28, 0.34);
  color: #e7eefc;
}

.help-ticket-options--checks {
  gap: 0.9rem;
}

.help-wizard__check-group {
  display: grid;
  gap: 0.45rem;
}

.help-wizard__check-group-label {
  color: #dce7fb;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.help-wizard__check-group-label--secondary {
  color: var(--text-dim);
}

.help-wizard__check--required {
  border-color: rgba(151, 177, 255, 0.2);
  background: rgba(10, 15, 28, 0.42);
}

.help-wizard__check--recommended {
  background: rgba(10, 15, 28, 0.24);
  color: #d5dceb;
}

.help-wizard__check--recommended .help-wizard__check-title {
  color: #e6ecf8;
}

.help-wizard__check--recommended .help-wizard__check-text {
  color: var(--text-dim);
}

.help-wizard__check--status {
  align-items: center;
  background: rgba(10, 15, 28, 0.2);
  color: #d5dceb;
}

.help-wizard__check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.help-wizard__check-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.3rem;
  background: rgba(148, 163, 184, 0.7);
}

.help-wizard__check-status-dot.is-complete {
  background: #34d399;
}

.help-wizard__check-status-dot.is-incomplete {
  background: #f59e0b;
}

.obs-runtime-services {
  display: grid;
  gap: 0.65rem;
}

.obs-runtime-service {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.obs-runtime-service__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.obs-runtime-service__dot.is-online {
  background: #34d399;
}

.obs-runtime-service__dot.is-offline {
  background: #f87171;
}

.obs-runtime-service__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.obs-runtime-service__label {
  font-weight: 600;
  color: #e2e8f0;
}

.obs-runtime-service__detail {
  font-size: 0.92rem;
}

.help-wizard__check-body {
  display: grid;
  gap: 0.24rem;
  flex: 1;
  min-width: 0;
}

.help-wizard__check-title {
  color: #f4f7ff;
  font-weight: 700;
  line-height: 1.4;
}

.help-wizard__check-text {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.help-wizard__check-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: #edf2fe;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.help-wizard__check-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #dbe4f6;
  font-size: 0.72rem;
  white-space: nowrap;
}

.help-wizard__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.help-wizard__technical {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.help-wizard__technical summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-soft);
}

.help-wizard__technical-pre {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.help-wizard__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.help-wizard__field {
  display: grid;
  gap: 0.2rem;
}

.help-wizard__field-label {
  color: #dce7fb;
  font-size: 0.8rem;
  font-weight: 700;
}

.help-wizard__field-help {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.help-wizard__field-error {
  color: #f0a8b7;
  font-size: 0.74rem;
  line-height: 1.4;
}

.help-wizard__support-layout {
  display: grid;
  gap: 0.8rem;
}

.help-wizard__section-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(10, 15, 28, 0.28);
}

.help-wizard__section-card--optional {
  background: rgba(10, 15, 28, 0.18);
}

.help-wizard__section-card--final {
  border-color: rgba(116, 148, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 25, 49, 0.42), rgba(10, 15, 28, 0.34)),
    rgba(10, 15, 28, 0.34);
}

.help-wizard__section-head {
  display: grid;
  gap: 0.16rem;
}

.help-wizard__section-title {
  color: #f4f7ff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.help-wizard__section-copy {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.help-wizard__section-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.help-wizard__field-row,
.help-wizard__review-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.help-wizard__review-summary {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.9rem;
  background: rgba(7, 12, 23, 0.45);
}

.help-wizard__review-summary-item {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.help-wizard__review-summary-item span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

.help-wizard__review-summary-item strong {
  color: #f8fbff;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
}

.help-wizard__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.help-wizard__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
}

.help-wizard__footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.help-wizard__helper,
.help-wizard__error {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.help-wizard__helper {
  max-width: 22rem;
  text-align: right;
  line-height: 1.35;
}

.help-wizard__issue-summary {
  border-color: rgba(116, 148, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(30, 52, 112, 0.22), rgba(10, 15, 28, 0.5)),
    rgba(10, 15, 28, 0.34);
  box-shadow: inset 0 1px 0 rgba(159, 193, 255, 0.06);
}

.help-wizard__issue-summary-label {
  margin-bottom: 0.45rem;
  color: #8fb1ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-wizard__issue-summary-text {
  color: #f3f7ff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.help-wizard__issue-summary + .help-inline-link {
  display: inline-block;
  margin-top: 0.45rem;
}

.help-wizard__spacer-sm {
  height: 0.8rem;
}

.help-followup--success {
  background: rgba(8, 46, 35, 0.28);
  border-color: rgba(52, 211, 153, 0.24);
}

.help-hero {
  display: grid;
  gap: 1.2rem;
  padding: 1.45rem;
}

.help-hero__header,
.help-diagnosis__header,
.help-link-card__top,
.help-modal__header,
.help-modal__footer,
.help-panel__actions,
.help-panel__actions-group,
.help-link-card__actions,
.help-finding {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.help-hero__header h2,
.help-modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.help-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.help-close svg,
.help-button__icon svg,
.help-collect-item__icon svg {
  width: 1rem;
  height: 1rem;
}

.help-panel,
.help-followup,
.help-diagnosis {
  padding: 1.3rem;
}

.help-panel {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  background: rgba(10, 15, 28, 0.26);
  display: grid;
  gap: 0.9rem;
}

.help-panel h3,
.help-followup h3,
.help-diagnosis h3,
.help-findings h4,
.help-modal__section h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
}

.help-panel p,
.help-followup p,
.help-diagnosis p,
.help-modal__section p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.help-panel__muted,
.help-page__privacy {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.help-panel__actions {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.help-panel__actions-group {
  align-items: stretch;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.help-panel__actions > .help-button {
  width: 100%;
  justify-self: stretch;
}

.help-inline-link,
.help-text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #9fc1ff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  cursor: pointer;
}

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7ff;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.help-button--primary,
.help-button--cta {
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(47, 104, 255, 0.95), rgba(35, 87, 222, 0.95));
  color: #fff;
  box-shadow: 0 12px 28px rgba(34, 87, 222, 0.28);
}

.help-button--secondary-strong {
  border-color: rgba(140, 166, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 30, 52, 0.92), rgba(16, 22, 39, 0.94)),
    rgba(255, 255, 255, 0.04);
  color: rgba(240, 245, 255, 0.96);
  font-weight: 600;
}

.help-button--secondary {
  background: rgba(255, 255, 255, 0.045);
}

.help-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.help-button--secondary-strong:not(:disabled):hover {
  border-color: rgba(140, 166, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(28, 39, 68, 0.96), rgba(18, 27, 47, 0.98)),
    rgba(255, 255, 255, 0.06);
}

.help-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.help-button__icon,
.help-collect-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-collect {
  margin-top: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.1rem 0;
  background: transparent;
}

.help-collect__label,
.help-diagnosis__time,
.help-diagnosis__group-label,
.help-evidence__label,
.help-finding__severity,
.help-preview span,
.help-modal__warning {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.help-collect__grid,
.help-link-card__evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.help-collect__panel,
.help-link-card,
.help-followup,
.help-findings,
.help-modal__section,
.help-preview,
.help-followup__notice {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  background: rgba(10, 15, 28, 0.34);
}

.help-collect__panel,
.help-findings,
.help-modal__section,
.help-preview,
.help-followup__notice {
  padding: 1rem;
}

.help-collect__label {
  padding: 0 0.95rem;
}

.help-collect__grid {
  padding: 0.65rem 0.95rem 0;
}

.help-collect__panel {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.help-collect__panel h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f4f7ff;
}

.help-collect-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-collect-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #c6d3ee;
  font-size: 0.86rem;
  line-height: 1.5;
}

.help-collect-item + .help-collect-item {
  margin-top: 0.28rem;
}

.help-link-card__notes {
  display: grid;
  gap: 0.48rem;
}

.help-collect-item.is-running {
  color: #dbe6ff;
}

.help-page__privacy {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
}

.help-diagnosis__header {
  margin-bottom: 1rem;
}

.help-diagnosis__group-label {
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-link-card {
  padding: 0.95rem 1rem;
}

.help-link-card__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.help-link-card__hint {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.help-link-card__body {
  margin-top: 0.55rem;
  max-width: 42rem;
  color: #edf2fe;
  font-size: 0.96rem;
  line-height: 1.65;
}

.help-link-card__actions {
  margin-top: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.help-badge--review {
  border-color: rgba(255, 183, 76, 0.45);
  background: rgba(255, 171, 33, 0.12);
  color: #ffd88a;
}

.help-badge--blocked {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.14);
  color: #ffb0b0;
}

.help-badge--warning {
  border-color: rgba(95, 184, 255, 0.45);
  background: rgba(95, 184, 255, 0.12);
  color: #a8dbff;
}

.help-badge--ready {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
  color: #b7f7c6;
}

.help-link-card__details {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.help-evidence {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.help-evidence__value {
  margin-top: 0.25rem;
  color: #e5edff;
  font-size: 0.92rem;
}

.help-findings {
  margin-top: 0.85rem;
}

.help-findings p {
  margin-bottom: 0.8rem;
}

.help-finding {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.help-finding__title {
  color: #edf2fe;
  font-weight: 700;
}

.help-finding__text {
  margin-top: 0.3rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.help-followup__actions {
  margin-top: 1rem;
}

.help-followup__notice {
  margin-top: 0.95rem;
  color: #d9e5ff;
}

.help-followup__notice strong {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: #f4f7ff;
  font-size: 0.92rem;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.help-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.help-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 41rem);
  max-height: min(92vh, 58rem);
  margin: 3vh auto;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(18, 25, 44, 0.98), rgba(12, 17, 30, 0.98));
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.58);
}

.help-modal__header,
.help-modal__footer {
  padding: 1rem 1.1rem;
}

.help-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 21, 37, 0.96);
}

.help-modal__body {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
}

.help-ticket-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.help-ticket-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #e7eefc;
}

.help-input,
.help-textarea {
  width: 100%;
  margin-top: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: rgba(7, 12, 23, 0.8);
  color: #edf2fe;
  font: inherit;
  padding: 0.8rem 0.95rem;
}

.help-textarea {
  resize: vertical;
}

.help-preview {
  display: grid;
  gap: 0.55rem;
  color: #d6e2fb;
  font-size: 0.92rem;
}

.help-preview strong {
  color: #f8fbff;
}

.help-preview__attachments ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.help-preview__attachments li + li {
  margin-top: 0.35rem;
}

.help-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(203, 215, 255, 0.24);
  border-top-color: #cfe0ff;
  border-radius: 50%;
  animation: help-spin 0.85s linear infinite;
}

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

@media (max-width: 820px) {
  .help-collect__grid,
  .help-link-card__evidence,
  .help-wizard__results {
    grid-template-columns: 1fr;
  }

  .help-wizard__form-grid {
    grid-template-columns: 1fr;
  }

  .help-wizard__field-row,
  .help-wizard__review-summary-grid {
    grid-template-columns: 1fr;
  }

  .help-hero__header,
  .help-diagnosis__header,
  .help-link-card__top,
  .help-modal__footer,
  .help-link-card__actions,
  .help-finding {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-panel__actions {
    grid-template-columns: 1fr;
  }

  .help-wizard__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .help-wizard__footer-right {
    align-items: stretch;
  }

  .help-wizard__category-grid {
    grid-template-columns: 1fr;
  }

  .help-badge {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .help-hero,
  .help-panel,
  .help-diagnosis,
  .help-followup,
  .help-wizard__panel,
  .help-modal__body,
  .help-modal__header,
  .help-modal__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .help-button {
    width: 100%;
  }

  .help-panel__actions-group {
    width: 100%;
  }

  .help-wizard__check {
    flex-direction: column;
  }

  .help-wizard__check-action {
    width: 100%;
  }

  .help-modal__panel {
    width: min(100% - 1rem, 41rem);
    margin-top: 1vh;
  }
}

.app-page--billing {
  max-width: 76rem;
}

.billing-page {
  display: grid;
  gap: 1.15rem;
}

.billing-status-card,
.billing-card,
.billing-plan-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.92), rgba(12, 17, 30, 0.95)),
    var(--panel);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

.billing-status-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(116, 148, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 33, 58, 0.98), rgba(13, 18, 32, 0.98)),
    var(--panel);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.28);
}

.billing-status-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 1.1rem 0 0 1.1rem;
  background: linear-gradient(180deg, rgba(116, 148, 255, 0.9), rgba(79, 128, 255, 0.22));
}

.billing-status-card__content,
.billing-card,
.billing-plan-card {
  padding: 1.05rem;
}

.billing-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
  align-items: start;
}

.billing-card__head,
.billing-status-card__heading,
.billing-plan-card__top,
.billing-plan-card__name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.billing-status-card__eyebrow,
.billing-card__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-status-card h2,
.billing-card h3,
.billing-plan-card h4 {
  margin: 0;
}

.billing-status-card h2 {
  font-size: 1.4rem;
}

.billing-card h3 {
  font-size: 1.05rem;
}

.billing-card--actions {
  position: relative;
  border-color: rgba(116, 148, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 31, 56, 0.97), rgba(13, 18, 32, 0.98)),
    var(--panel);
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.28);
}

.billing-card--actions::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 1.1rem 0 0 1.1rem;
  background: linear-gradient(180deg, rgba(116, 148, 255, 0.9), rgba(79, 128, 255, 0.25));
}

.billing-card--details {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(16, 23, 41, 0.88), rgba(11, 16, 29, 0.94)),
    var(--panel);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.14);
}

.billing-card--details .billing-card__eyebrow,
.billing-card--plans .billing-card__eyebrow {
  color: rgba(168, 184, 214, 0.8);
}

.billing-card__subtitle,
.billing-status-card__text,
.billing-status-card__helper,
.billing-actions__text,
.billing-plan-card__subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.billing-status-card__helper {
  color: #d6e4ff;
}

.billing-status-card__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.billing-status-card__highlight {
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.billing-status-card__highlight span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.billing-status-card__highlight strong {
  display: block;
  margin-top: 0.45rem;
  color: #edf4ff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.billing-card__subtitle--emphasis {
  color: #dce8ff;
}

.billing-status-badge,
.billing-plan-card__current {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.billing-status-badge.is-active,
.billing-plan-card__current {
  border-color: rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.2);
  color: #cff6dc;
}

.billing-status-badge.is-trialing {
  border-color: rgba(116, 148, 255, 0.24);
  background: rgba(79, 128, 255, 0.16);
  color: #dfe8ff;
}

.billing-status-badge.is-past-due {
  border-color: rgba(255, 183, 76, 0.4);
  background: rgba(255, 171, 33, 0.14);
  color: #ffd88a;
}

.billing-status-badge.is-canceling,
.billing-status-badge.is-incomplete {
  border-color: rgba(244, 196, 95, 0.34);
  background: rgba(244, 196, 95, 0.12);
  color: #f5dd97;
}

.billing-status-badge.is-canceled {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(100, 116, 139, 0.14);
  color: #dbe5f3;
}

.billing-status-badge.is-unpaid,
.billing-status-badge.is-incomplete-expired {
  border-color: rgba(214, 84, 97, 0.24);
  background: rgba(170, 49, 61, 0.16);
  color: #ffd7db;
}

.billing-inline-notice {
  margin-top: 0.85rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(116, 148, 255, 0.22);
  border-radius: 0.9rem;
  background: rgba(79, 128, 255, 0.08);
  color: #dfe8ff;
}

.billing-inline-notice.is-warning {
  border-color: rgba(255, 183, 76, 0.32);
  background: rgba(255, 171, 33, 0.1);
  color: #ffe0a4;
}

.billing-details-list {
  display: grid;
  gap: 0.2rem;
  margin: 0.8rem 0 0;
}

.billing-details-list__row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.68rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.billing-details-list__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.billing-details-list dt {
  color: rgba(168, 184, 214, 0.78);
  font-size: 0.88rem;
}

.billing-details-list dd {
  margin: 0;
  color: rgba(231, 238, 252, 0.96);
  font-weight: 550;
}

.billing-empty-points {
  margin: 0.95rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.billing-empty-points li + li {
  margin-top: 0.45rem;
}

.billing-actions__buttons,
.billing-plan-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.billing-actions__priority {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(255, 183, 76, 0.28);
  border-radius: 999px;
  background: rgba(255, 171, 33, 0.1);
  color: #ffd88a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-actions__buttons--priority .billing-button--primary {
  min-width: 12rem;
  padding-inline: 1.15rem;
}

.billing-actions__buttons--priority .billing-button--secondary {
  background: rgba(255, 255, 255, 0.018);
}

.billing-actions__buttons--priority.is-helper-only {
  margin-top: 0;
}

.billing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.billing-button--primary {
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.22), rgba(79, 128, 255, 0.14));
  color: #f4f7ff;
}

.billing-button--secondary {
  background: rgba(255, 255, 255, 0.025);
}

.billing-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.billing-card--plans {
  margin-top: 0.35rem;
  padding-bottom: 1.1rem;
  border-color: rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(13, 19, 34, 0.72), rgba(10, 15, 27, 0.86)),
    var(--panel);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.09);
}

.billing-card__head--plans {
  margin-bottom: 0.8rem;
}

.billing-card__head--plans.is-secondary {
  opacity: 0.8;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.billing-plan-grid.is-secondary {
  opacity: 0.8;
}

.billing-plan-card {
  display: grid;
  gap: 0.8rem;
  border-color: rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(16, 23, 40, 0.76), rgba(11, 16, 29, 0.88)),
    var(--panel);
  box-shadow: none;
}

.billing-plan-grid.is-secondary .billing-plan-card {
  background:
    linear-gradient(180deg, rgba(16, 23, 40, 0.78), rgba(11, 16, 29, 0.88)),
    var(--panel);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.billing-plan-card.is-current {
  border-color: rgba(80, 191, 123, 0.2);
}

.billing-plan-card__copy {
  max-width: 18rem;
}

.billing-plan-card__price {
  text-align: right;
}

.billing-plan-card__price strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.billing-plan-card__price span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .billing-grid,
  .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .billing-status-card__highlights {
    grid-template-columns: 1fr;
  }

  .billing-card--actions::before {
    width: 100%;
    height: 3px;
    inset: 0 0 auto 0;
    border-radius: 1.1rem 1.1rem 0 0;
  }
}

@media (max-width: 640px) {
  .billing-status-card__heading,
  .billing-card__head,
  .billing-plan-card__top,
  .billing-plan-card__name-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .billing-details-list__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .billing-button {
    width: 100%;
  }

  .billing-plan-card__price {
    text-align: left;
  }
}

.app-page--license {
  max-width: 72rem;
}

.license-page {
  display: grid;
  gap: 1.15rem;
}

.license-status-card,
.license-card,
.license-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.05rem;
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.92), rgba(12, 17, 30, 0.95)),
    var(--panel);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.18);
}

.license-status-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(116, 148, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 33, 58, 0.98), rgba(13, 18, 32, 0.98)),
    var(--panel);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.28);
}

.license-status-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 1.05rem 0 0 1.05rem;
  background: linear-gradient(180deg, rgba(116, 148, 255, 0.9), rgba(79, 128, 255, 0.2));
}

.license-card {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(16, 23, 41, 0.92), rgba(11, 16, 29, 0.96)),
    var(--panel);
}

.license-note {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.license-status-card__content,
.license-card,
.license-note {
  padding: 1.1rem;
}

.license-status-card__content,
.license-status-card__heading,
.license-card__head,
.license-activation-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.license-status-card__eyebrow,
.license-card__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.license-status-card h2,
.license-card h3 {
  margin: 0;
}

.license-status-card h2 {
  font-size: 1.35rem;
}

.license-card h3 {
  font-size: 1rem;
}

.license-card__subtle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.license-status-card__text,
.license-note p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.license-status-card__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.license-status-card__highlight {
  padding: 0.8rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.license-status-card__highlight span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.license-status-card__highlight strong {
  display: block;
  margin-top: 0.45rem;
  color: #edf4ff;
  font-size: 0.95rem;
  line-height: 1.45;
}

.license-status-card__date {
  min-width: 10.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(116, 148, 255, 0.16);
  background: rgba(79, 128, 255, 0.08);
  text-align: right;
}

.license-status-card__aside {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.license-status-card__date--devices {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.license-status-card__date span,
.license-status-card__date small,
.license-card__meta,
.license-activation-row__main span,
.license-activation-row__status small {
  color: var(--text-muted);
}

.license-status-card__date span,
.license-status-card__date small {
  display: block;
}

.license-status-card__date strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 1.1rem;
}

.license-status-badge,
.license-activation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.license-status-badge.is-active,
.license-activation-chip.is-active {
  border-color: rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.2);
  color: #cff6dc;
}

.license-status-badge.is-trial {
  border-color: rgba(116, 148, 255, 0.24);
  background: rgba(79, 128, 255, 0.16);
  color: #dfe8ff;
}

.license-status-badge.is-expired {
  border-color: rgba(214, 84, 97, 0.24);
  background: rgba(170, 49, 61, 0.16);
  color: #ffd7db;
}

.license-status-badge.is-action-needed {
  border-color: rgba(255, 183, 76, 0.38);
  background: rgba(255, 171, 33, 0.14);
  color: #ffd88a;
}

.license-card__head {
  margin-bottom: 1.1rem;
  align-items: flex-end;
}

.license-card__head-copy {
  max-width: 40rem;
}

.license-card__description {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.license-activation-list {
  display: grid;
  gap: 0.8rem;
}

.license-activation-row {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.license-activation-row:first-child {
  padding-top: 1rem;
}

.license-activation-row__main {
  display: grid;
  gap: 0.55rem;
}

.license-activation-row__identity {
  display: grid;
  gap: 0.2rem;
}

.license-activation-row__details {
  display: grid;
  gap: 0.38rem;
}

.license-activation-row__id {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}

.license-activation-row__version {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.license-activation-update-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 76, 0.28);
  background: rgba(255, 171, 33, 0.12);
  color: #ffd88a;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.license-activation-row__status {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  min-width: 11rem;
}

.license-activation-row__seen {
  max-width: 16rem;
  text-align: right;
}

.license-activation-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.license-activation-action:hover:not(:disabled) {
  border-color: rgba(116, 148, 255, 0.32);
  background: rgba(79, 128, 255, 0.12);
  color: #dfe8ff;
}

.license-activation-action:disabled {
  opacity: 0.6;
  cursor: default;
}

.license-activation-chip.is-muted {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(100, 116, 139, 0.14);
  color: #dbe5f3;
}

.license-note {
  padding: 0.95rem 1.1rem;
}

.license-note p {
  margin: 0;
  color: rgba(203, 214, 239, 0.72);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .license-status-card__highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .license-status-card__content,
  .license-status-card__heading,
  .license-card__head,
  .license-activation-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .license-status-card__date,
  .license-activation-row__status {
    min-width: 0;
    text-align: left;
    justify-items: start;
  }

  .license-activation-row__seen {
    text-align: left;
  }
}

.app-page--agent-download {
  max-width: 74rem;
}

.app-page--trial-intro {
  max-width: 56rem;
}

.trial-intro-page {
  display: grid;
  gap: 1.1rem;
}

.trial-intro-hero {
  padding: 1.95rem 1.95rem 1.8rem;
  border-color: rgba(116, 148, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(79, 128, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(20, 29, 52, 0.99), rgba(12, 18, 33, 0.99)),
    var(--panel);
  box-shadow:
    0 34px 72px rgba(2, 6, 23, 0.34),
    0 0 0 1px rgba(116, 148, 255, 0.12) inset;
}

.trial-intro-hero h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.04;
}

.trial-intro-hero .agent-download-card__lead {
  max-width: 38rem;
  font-size: 1.08rem;
}

.trial-intro-hero .agent-download-card__text {
  max-width: 34rem;
}

.trial-intro-hero__timing {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  color: #f4f7ff;
  font-size: 0.96rem;
  font-weight: 700;
}

.trial-intro-hero__timing::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle, #9ec1ff 0%, #6d96ff 58%, rgba(109, 150, 255, 0.22) 100%);
  box-shadow:
    0 0 0 4px rgba(109, 150, 255, 0.12),
    0 0 16px rgba(109, 150, 255, 0.28);
  flex: 0 0 auto;
}

.trial-intro-hero__actions {
  margin-top: 1.1rem;
}

.trial-intro-section {
  padding: 1rem 1.1rem 1.05rem;
  border-color: rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(180deg, rgba(13, 19, 33, 0.84), rgba(9, 14, 25, 0.9)),
    var(--panel);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.12);
}

.trial-intro-section__head {
  margin-bottom: 0.9rem;
}

.trial-intro-section__head h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.trial-intro-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.trial-intro-step {
  min-width: 0;
  padding: 0.9rem 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.018);
}

.trial-intro-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 148, 255, 0.2);
  background: rgba(79, 128, 255, 0.14);
  color: #e6eeff;
  font-size: 0.86rem;
  font-weight: 800;
}

.trial-intro-step h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.trial-intro-step p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.trial-intro-note-panel {
  max-width: 34rem;
  padding: 0.85rem 0.95rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.014);
  box-shadow: none;
}

.trial-intro-note-panel__head {
  margin-bottom: 0.45rem;
}

.trial-intro-note-panel__head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.trial-intro-note-panel__body {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.trial-intro-inline-link {
  display: inline-flex;
  margin-top: 0.55rem;
  color: #9db7ff;
  font-weight: 600;
  text-decoration: none;
}

.trial-intro-inline-link:hover,
.trial-intro-inline-link:focus-visible {
  color: #bdd0ff;
  text-decoration: underline;
}

@media (max-width: 920px) {
  .trial-intro-step-grid {
    grid-template-columns: 1fr;
  }
}

.agent-download-page {
  display: grid;
  gap: 1.5rem;
}

.agent-download-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
}

.agent-download-grid--hero {
  align-items: stretch;
}

.agent-download-grid--body {
  align-items: start;
}

.agent-download-sidebar-stack {
  display: grid;
  gap: 1rem;
}

.agent-download-card,
.agent-download-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.05rem;
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.92), rgba(12, 17, 30, 0.95)),
    var(--panel);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.18);
}

.agent-download-card,
.agent-download-note {
  padding: 1.18rem;
}

.agent-download-card--primary {
  border-color: rgba(116, 148, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(79, 128, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(22, 31, 56, 0.98), rgba(13, 18, 32, 0.98)),
    var(--panel);
  box-shadow:
    0 22px 52px rgba(2, 6, 23, 0.24),
    0 0 0 1px rgba(116, 148, 255, 0.06) inset;
  padding: 1.25rem 1.4rem 1.3rem;
}

.agent-download-card--compact {
  padding: 0.95rem 1rem;
}

.agent-download-card--runtime-summary {
  align-self: start;
}

.agent-download-card__head,
.agent-download-runtime-list__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.agent-download-card__head--hero {
  align-items: flex-start;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-download-hero__top {
  gap: 1.5rem;
}

.agent-download-hero__copy {
  min-width: 0;
}

.agent-download-card__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-download-card h2,
.agent-download-card h3,
.agent-download-card h4 {
  margin: 0;
}

.agent-download-card h2 {
  font-size: 1.55rem;
  line-height: 1.14;
}

.agent-download-card h3 {
  font-size: 1rem;
}

.agent-download-card h4 {
  font-size: 1.02rem;
}

.agent-download-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.56rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 148, 255, 0.2);
  background: rgba(79, 128, 255, 0.12);
  color: #dfe8ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-download-card__lead,
.agent-download-card__text,
.agent-download-note p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.agent-download-card__lead {
  margin-top: 0.6rem;
  color: #edf2ff;
  font-size: 1rem;
  max-width: 40rem;
}

.agent-download-card__lead--hero {
  margin-top: 0.55rem;
  max-width: 34rem;
}

.agent-download-card__text--compact {
  font-size: 0.88rem;
}

.agent-download-primary-panel {
  margin-top: 1.2rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.02rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 24, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.agent-download-secondary-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 11, 22, 0.36);
}

.agent-download-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.agent-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.agent-download-button:hover,
.agent-download-button:focus-visible {
  border-color: rgba(144, 169, 235, 0.24);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.agent-download-button--primary {
  min-width: 14rem;
  border-color: rgba(116, 148, 255, 0.24);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.34), rgba(79, 128, 255, 0.18));
  color: #f4f7ff;
  box-shadow: 0 16px 34px rgba(28, 48, 96, 0.32);
}

.agent-download-button--primary:hover,
.agent-download-button--primary:focus-visible {
  border-color: rgba(140, 167, 255, 0.36);
  background: linear-gradient(180deg, rgba(99, 142, 255, 0.4), rgba(79, 128, 255, 0.2));
  box-shadow: 0 18px 40px rgba(28, 48, 96, 0.38);
}

.agent-download-button--accent {
  border-color: rgba(31, 187, 214, 0.24);
  background: linear-gradient(180deg, rgba(20, 176, 208, 0.28), rgba(17, 156, 188, 0.18));
  color: #effdff;
}

.agent-download-button--video {
  gap: 0.55rem;
  border-color: rgba(255, 209, 102, 0.3);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.26), rgba(255, 138, 61, 0.16));
  color: #fff6df;
  box-shadow: 0 14px 30px rgba(86, 52, 20, 0.28);
}

.agent-download-button--video:hover,
.agent-download-button--video:focus-visible {
  border-color: rgba(255, 221, 140, 0.42);
  background: linear-gradient(180deg, rgba(255, 196, 97, 0.34), rgba(255, 146, 68, 0.2));
  box-shadow: 0 18px 36px rgba(86, 52, 20, 0.34);
}

.agent-download-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.agent-download-button__icon svg {
  width: 100%;
  height: 100%;
}

.agent-download-button--inline {
  min-height: 2.4rem;
  white-space: nowrap;
}

.agent-download-button--support {
  min-width: 7.5rem;
  margin-top: 1rem;
}

.agent-download-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.agent-download-facts__item {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
}

.agent-download-facts dt {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.agent-download-facts dd {
  margin: 0.28rem 0 0;
  color: #f2f6ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.agent-download-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-download-facts--inline {
  flex: 1 1 auto;
  gap: 0.55rem;
}

.agent-download-facts--inline .agent-download-facts__item {
  padding: 0.55rem 0.7rem;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
}

.agent-download-facts--inline dt {
  font-size: 0.75rem;
}

.agent-download-facts--inline dd {
  margin-top: 0.18rem;
  font-size: 0.88rem;
}

.agent-download-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.agent-download-disconnect {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
}

.app-confirm-modal__message {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.app-confirm-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.agent-download-version,
.agent-download-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.34rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.agent-download-version {
  border-color: rgba(116, 148, 255, 0.2);
  background: rgba(79, 128, 255, 0.1);
  color: #dfe8ff;
}

.agent-download-status.is-connected {
  border-color: rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.2);
  color: #cff6dc;
}

.agent-download-status.is-good {
  border-color: rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.2);
  color: #cff6dc;
}

.agent-download-status.is-warn {
  border-color: rgba(255, 183, 76, 0.34);
  background: rgba(181, 121, 26, 0.16);
  color: #ffd88a;
}

.agent-download-status.is-bad {
  border-color: rgba(214, 84, 97, 0.28);
  background: rgba(170, 49, 61, 0.16);
  color: #ffd7db;
}

.agent-download-pairing-box {
  margin-top: 0;
  padding: 0.72rem 0.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(116, 148, 255, 0.18);
  background: rgba(79, 128, 255, 0.08);
}

.agent-download-conflict-box {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(214, 166, 84, 0.28);
  background:
    linear-gradient(180deg, rgba(34, 27, 16, 0.96), rgba(20, 15, 10, 0.96)),
    linear-gradient(180deg, rgba(214, 166, 84, 0.08), transparent 70%);
}

.agent-download-conflict-box strong {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
}

.agent-download-conflict-box p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.55;
}

.agent-download-actions--conflict {
  margin-top: 0.9rem;
}

.agent-download-conflict-box__footnote {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.agent-download-token-section {
  margin-top: 0.9rem;
}

.agent-download-note--compact {
  padding: 0.85rem 0.95rem;
  border-radius: 0.88rem;
  background: rgba(255, 255, 255, 0.028);
}

.agent-download-token-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.agent-download-pairing-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.agent-download-pairing-box strong {
  font-size: 0.94rem;
}

.agent-download-pairing-box code {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(8, 12, 24, 0.65);
  color: #eff4ff;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.agent-download-pairing-box p,
.agent-download-inline-message {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.agent-download-connect-note {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.agent-download-connect-note strong {
  color: var(--text);
  font-size: 0.94rem;
}

.agent-download-inline-button {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.agent-download-inline-button--quiet {
  min-height: 2.15rem;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.agent-download-inline-button--quiet:hover,
.agent-download-inline-button--quiet:focus-visible {
  border-color: rgba(214, 84, 97, 0.2);
  background: rgba(214, 84, 97, 0.08);
  color: #ffe5e7;
}

.agent-download-runtime-list {
  display: grid;
  gap: 0.2rem;
  margin: 0.85rem 0 0;
}

.agent-download-runtime-list__row {
  padding: 0.68rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.agent-download-runtime-list__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.agent-download-runtime-list dt {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.agent-download-runtime-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.agent-download-checklist {
  display: grid;
  gap: 0.78rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.agent-download-checklist__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #deebff;
  font-size: 0.89rem;
}

.agent-download-checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  color: #4ad3ee;
  font-size: 0.82rem;
  font-weight: 800;
}

.agent-download-card--steps {
  padding: 1.55rem 1.6rem 1.65rem;
  border-color: rgba(116, 148, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 24, 42, 0.96), rgba(11, 16, 29, 0.98)),
    linear-gradient(180deg, rgba(79, 128, 255, 0.05), transparent 72%);
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.22);
}

.agent-download-steps__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.agent-download-steps__head h3,
.agent-download-faq__head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.agent-download-steps__head p,
.agent-download-faq__head p {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.agent-download-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.agent-download-step-card {
  position: relative;
  padding: 1.05rem 1.05rem 1.1rem;
  border: 1px solid rgba(116, 148, 255, 0.12);
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.agent-download-step-card:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 1.1rem;
  right: -0.7rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #10182d;
  border: 1px solid rgba(116, 148, 255, 0.14);
  color: rgba(166, 190, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.agent-download-step-card__label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.agent-download-step-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  background: rgba(63, 118, 255, 0.95);
  color: #f6f9ff;
  font-size: 0.84rem;
  font-weight: 800;
}

.agent-download-step-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.agent-download-step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.agent-download-step-card__bullets {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.agent-download-step-card__bullets li + li {
  margin-top: 0.45rem;
}

.agent-download-card--faq {
  padding: 1.3rem 1.45rem 1.45rem;
  border-color: rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(13, 18, 31, 0.94), rgba(9, 13, 24, 0.98)),
    var(--panel);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
}

.agent-download-faq__head h3 {
  font-size: 1.28rem;
}

.agent-download-faq-list {
  margin-top: 1rem;
}

.agent-download-faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-download-faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-download-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  list-style: none;
  cursor: pointer;
  color: #f2f6ff;
  font-weight: 700;
}

.agent-download-faq-item summary::-webkit-details-marker {
  display: none;
}

.agent-download-faq-item__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.agent-download-faq-item__icon::before,
.agent-download-faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 1px;
  background: rgba(220, 232, 255, 0.72);
  transform: translate(-50%, -50%);
}

.agent-download-faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.agent-download-faq-item[open] .agent-download-faq-item__icon::after {
  opacity: 0;
}

.agent-download-faq-item p {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.agent-download-support-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.agent-download-support-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.022);
}

.agent-download-support-card p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.agent-download-support-card__meta {
  margin-top: 0.95rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.agent-download-requirements {
  display: grid;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
}

.agent-download-requirements__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  align-items: start;
}

.agent-download-requirements dt {
  color: #eef3ff;
  font-weight: 700;
}

.agent-download-requirements dd {
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .agent-download-grid,
  .agent-download-support-grid,
  .agent-download-steps-grid {
    grid-template-columns: 1fr;
  }

  .agent-download-grid--hero {
    grid-template-columns: 1fr;
  }

  .agent-download-step-card::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .agent-download-card__head,
  .agent-download-steps__head,
  .agent-download-runtime-list__row,
  .agent-download-pairing-box__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-download-runtime-list dd {
    text-align: left;
  }

  .agent-download-button {
    width: 100%;
  }

  .agent-download-facts {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .agent-download-meta-strip,
  .agent-download-secondary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-download-card--steps,
  .agent-download-card--faq {
    padding: 1.1rem;
  }

  .agent-download-card--primary {
    padding: 1.2rem 1.1rem;
  }

  .agent-download-primary-panel,
  .agent-download-secondary-panel {
    padding: 0.95rem;
  }
}

.app-page--my-account {
  max-width: 56rem;
}

.app-admin-impersonation {
  padding: 0 1.4rem;
}

.app-admin-impersonation__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(214, 95, 112, 0.3);
  background: linear-gradient(180deg, rgba(84, 25, 37, 0.92), rgba(41, 14, 23, 0.96));
}

.app-admin-impersonation__content strong {
  display: block;
  color: #fff2f5;
}

.app-admin-impersonation__content span {
  display: block;
  margin-top: 0.22rem;
  color: rgba(244, 210, 217, 0.84);
}

.app-admin-impersonation__button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef3ff;
  padding: 0.72rem 1rem;
  font: inherit;
  cursor: pointer;
}

.app-agent-update-banner {
  padding: 0 1.4rem;
}

.app-agent-update-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(240, 191, 87, 0.2);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(65, 47, 15, 0.5), rgba(31, 22, 8, 0.6));
  color: rgba(255, 237, 191, 0.86);
  font-size: 0.82rem;
  line-height: 1.35;
}

.app-agent-update-banner__content strong {
  color: #fff6da;
  font-size: 0.82rem;
}

.app-agent-update-banner__content span {
  flex: 1 1 auto;
}

.app-agent-update-banner__link {
  color: #ffe6a6;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.app-agent-update-banner__link:hover,
.app-agent-update-banner__link:focus-visible {
  text-decoration: underline;
}

.app-readonly-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(240, 191, 87, 0.22);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(65, 47, 15, 0.84), rgba(31, 22, 8, 0.92));
}

.app-readonly-notice strong {
  color: #fff6da;
}

.app-readonly-notice span {
  color: rgba(255, 237, 191, 0.82);
}

.is-readonly-blocked {
  opacity: 0.6;
  cursor: not-allowed;
}

.app-workspace-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(34rem, calc(100vh - 12rem));
  padding: 1.5rem 0;
}

.app-workspace-state__panel {
  width: min(100%, 42rem);
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.92), rgba(12, 17, 30, 0.95)),
    var(--panel);
  box-shadow: 0 18px 50px rgba(3, 7, 18, 0.22);
}

.app-workspace-state__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  background: rgba(79, 128, 255, 0.14);
  border: 1px solid rgba(116, 148, 255, 0.22);
  color: #cdd9ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-workspace-state__panel h2 {
  margin: 0.9rem 0 0;
}

.app-workspace-state__panel p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.app-workspace-state__detail {
  color: var(--text-soft);
}

.app-workspace-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

@media (max-width: 820px) {
  .app-admin-impersonation {
    padding: 0 1rem;
  }

  .app-agent-update-banner {
    padding: 0 1rem;
  }

  .app-admin-impersonation__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-agent-update-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.my-account-page {
  display: grid;
  gap: 1rem;
}

.my-account-summary,
.my-account-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.05rem;
  background:
    linear-gradient(180deg, rgba(18, 25, 44, 0.92), rgba(12, 17, 30, 0.95)),
    var(--panel);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.16);
}

.my-account-summary,
.my-account-card {
  padding: 1.05rem 1.1rem;
}

.my-account-summary {
  border-color: rgba(116, 148, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(79, 128, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(22, 31, 56, 0.97), rgba(13, 18, 32, 0.97)),
    var(--panel);
}

.my-account-summary__content,
.my-account-card__head,
.my-account-list__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.my-account-summary__content {
  align-items: center;
}

.my-account-summary__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.my-account-card__eyebrow {
  margin: 0 0 0.42rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-account-summary h2,
.my-account-card h3 {
  margin: 0;
}

.my-account-summary h2 {
  font-size: 1.4rem;
}

.my-account-card h3 {
  font-size: 1rem;
}

.my-account-summary__email {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.my-account-summary__lede {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.my-account-summary__meta {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.my-account-summary__meta-card {
  min-width: 10.5rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.18rem;
  text-align: right;
}

.my-account-summary__meta-card span {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.my-account-summary__meta-card strong {
  color: var(--text);
  font-size: 0.92rem;
}

.my-account-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 191, 123, 0.24);
  background: rgba(40, 143, 83, 0.18);
  color: #d6f8e0;
  font-size: 0.78rem;
  font-weight: 700;
}

.my-account-summary__joined {
  display: grid;
  gap: 0.1rem;
  text-align: right;
}

.my-account-summary__joined span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.my-account-summary__joined strong {
  color: var(--text);
  font-size: 0.88rem;
}

.my-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.my-account-card {
  position: relative;
}

.my-account-card--security {
  border-color: rgba(116, 148, 255, 0.14);
}

.my-account-card--utility {
  background:
    linear-gradient(180deg, rgba(15, 22, 40, 0.92), rgba(10, 15, 28, 0.96)),
    var(--panel);
}

.my-account-list {
  display: grid;
  gap: 0.15rem;
  margin: 0.9rem 0 0;
}

.my-account-list__row {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.my-account-list__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.my-account-list dt {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.my-account-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}

.my-account-card__text,
.my-account-utility__workspace {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.my-account-card__text--head {
  margin-top: 0.45rem;
}

.my-account-card__text--danger {
  color: #ffbcbc;
}

.my-account-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.my-account-action-row__hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.my-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.62rem 0.98rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.my-account-button:hover,
.my-account-button:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.my-account-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.my-account-button--primary {
  border-color: rgba(116, 148, 255, 0.26);
  background: linear-gradient(180deg, rgba(79, 128, 255, 0.22), rgba(79, 128, 255, 0.14));
}

.my-account-button--secondary {
  background: rgba(255, 255, 255, 0.025);
}

.my-account-button--danger {
  border-color: rgba(255, 107, 107, 0.28);
  background: linear-gradient(180deg, rgba(168, 54, 54, 0.22), rgba(132, 34, 34, 0.14));
  color: #ffe0e0;
}

.my-account-button--danger:hover,
.my-account-button--danger:focus-visible {
  background: linear-gradient(180deg, rgba(182, 62, 62, 0.28), rgba(146, 38, 38, 0.18));
}

.my-account-feedback {
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.my-account-feedback--success {
  border-color: rgba(80, 191, 123, 0.22);
  background: rgba(40, 143, 83, 0.12);
  color: #daf8e5;
}

.my-account-feedback--error {
  border-color: rgba(255, 123, 123, 0.22);
  background: rgba(176, 52, 52, 0.12);
  color: #ffd7d7;
}

.my-account-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.my-account-utility__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
}

.my-account-utility__actions .my-account-button {
  width: 100%;
}

.my-account-utility__actions a.my-account-button {
  text-decoration: none;
}

.my-account-utility__workspace {
  margin-top: 0.65rem;
}

.my-account-utility__workspace strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .my-account-grid {
    grid-template-columns: 1fr;
  }

  .my-account-utility {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-account-utility__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .my-account-summary__content,
  .my-account-card__head,
  .my-account-list__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-account-summary__meta,
  .my-account-summary__joined,
  .my-account-summary__meta-card,
  .my-account-list dd {
    justify-items: start;
    text-align: left;
  }

  .my-account-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .my-account-action-row__hint {
    width: 100%;
  }

  .my-account-utility__actions {
    grid-template-columns: 1fr;
  }
}

.app-mobile-nav-shell {
  display: none;
}

.app-mobile-nav {
  display: none;
}

@media (max-width: 820px) {
  .app-body--mobile-app-mode .app-main {
    min-width: 0;
  }

  .app-body--mobile-app-mode .app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.9rem 1rem;
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(14px);
  }

  .app-body--mobile-app-mode .app-topbar__toggle,
  .app-body--mobile-app-mode .app-topbar__eyebrow,
  .app-body--mobile-app-mode .app-topbar__subtitle,
  .app-body--mobile-app-mode .app-topbar__support {
    display: none;
  }

  .app-body--mobile-app-mode .app-topbar__start {
    min-width: 0;
  }

  .app-body--mobile-app-mode .app-topbar h1 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .app-body--mobile-app-mode .app-page {
    padding: 0.95rem 0.95rem calc(6.7rem + env(safe-area-inset-bottom));
  }

  .app-body--mobile-app-mode .app-sidebar {
    inset: auto 0 0 0;
    top: auto;
    bottom: 0;
    z-index: 70;
    width: auto;
    height: auto;
    max-height: min(76dvh, 38rem);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(105%);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.42);
  }

  .app-body--mobile-app-mode .app-sidebar.is-open {
    transform: translateY(0);
  }

  .app-body--mobile-app-mode .app-sidebar__brand {
    padding-bottom: 0.55rem;
  }

  .app-body--mobile-app-mode .app-sidebar__brand img {
    max-height: 2rem;
  }

  .app-body--mobile-app-mode .app-sidebar__section {
    gap: 0.55rem;
  }

  .app-body--mobile-app-mode .app-sidebar__footer {
    padding-bottom: 0;
  }

  .app-body--mobile-app-mode .app-nav {
    gap: 0.3rem;
  }

  .app-body--mobile-app-mode .app-nav__link {
    min-height: 2.9rem;
    border-radius: 0.9rem;
    padding-inline: 0.9rem;
  }

  .app-mobile-nav-shell {
    display: block;
  }

  .app-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.38rem 0.75rem calc(0.38rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 30, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
  }

  .app-mobile-nav__item {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    min-height: 3.45rem;
    padding: 0.45rem 0.35rem;
    border: 0;
    border-radius: 0.95rem;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
  }

  .app-mobile-nav__item:hover,
  .app-mobile-nav__item:focus-visible,
  .app-mobile-nav__item.is-current {
    background: rgba(79, 128, 255, 0.12);
    color: #eef4ff;
  }

  .app-mobile-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
  }

  .app-mobile-nav__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
  }

  .app-mobile-nav__label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .accounts-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .accounts-modal__panel,
  .accounts-modal__panel--compact,
  .accounts-modal__panel--wide,
  .copiers-modal .accounts-modal__panel--wide {
    width: 100%;
    max-height: none;
    height: 100dvh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .accounts-modal__header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 1rem 1rem 0.9rem;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(14px);
  }

  .accounts-modal__body {
    padding: 1rem 1rem calc(6.8rem + env(safe-area-inset-bottom));
  }

  .accounts-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(11, 16, 32, 0.98);
  }

  .copiers-create-footer {
    gap: 0.5rem;
    padding: 0.7rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    margin: 0.35rem -1rem calc(-1rem - env(safe-area-inset-bottom));
  }

  .copiers-create-footer__left,
  .copiers-create-footer__right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .copiers-create-footer .accounts-primary-action,
  .copiers-create-footer .accounts-secondary-action {
    width: 100%;
    min-height: 2.45rem;
    padding: 0.52rem 0.75rem;
    font-size: 0.88rem;
  }

  .accounts-toolbar,
  .copiers-toolbar,
  .statistics-toolbar,
  .calendar-header,
  .calendar-filters,
  .log-tabs-card,
  .log-toolbar-card {
    position: sticky;
    z-index: 12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(14px);
  }

  .accounts-toolbar,
  .copiers-toolbar,
  .statistics-toolbar,
  .calendar-header,
  .log-tabs-card {
    top: 4.5rem;
  }

  .calendar-filters,
  .log-toolbar-card {
    top: 9.35rem;
  }

  .accounts-toolbar,
  .copiers-toolbar,
  .statistics-toolbar,
  .calendar-header {
    padding: 0.6rem;
    border-radius: 1rem;
  }

  .log-tabs-card,
  .log-toolbar-card {
    border-radius: 1rem;
  }

  .log-stream-card,
  .calendar-meta,
  .calendar-table-card,
  .statistics-section .statistics-card {
    scroll-margin-top: 10.5rem;
  }

  .accounts-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    overflow: visible;
  }

  .accounts-toolbar {
    top: 4.35rem;
  }

  .copiers-toolbar {
    top: 4.35rem;
  }

  .accounts-toolbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
  }

  .copiers-toolbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
  }

  .accounts-toolbar__actions > #trading-accounts-add,
  .accounts-toolbar__actions > #trading-accounts-delete-selected {
    grid-column: 1 / -1;
  }

  .copiers-toolbar__actions > #copiers-create-connection {
    grid-column: 1 / -1;
  }

  .accounts-primary-action,
  .accounts-secondary-action,
  .copiers-button {
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.82rem;
    font-size: 0.92rem;
  }

  .accounts-button__icon {
    width: 0.95rem;
    height: 0.95rem;
    margin-right: 0.45rem;
  }

  .accounts-summary-card,
  .accounts-summary-card--summary-main,
  .accounts-summary-card--summary-portfolio,
  .accounts-summary-card--platform {
    flex: initial;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .accounts-table-wrap,
  .copiers-table-wrap {
    overflow: visible;
  }

  .accounts-table,
  .copiers-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .accounts-table thead,
  .copiers-table thead {
    display: none;
  }

  .accounts-table tbody,
  .copiers-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .accounts-table tr,
  .copiers-table tr {
    position: relative;
    display: block;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
  }

  .accounts-table td,
  .copiers-table td {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
    border-bottom: 0;
    text-align: left;
  }

  .accounts-table td::before,
  .copiers-table td::before {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  .accounts-table td:first-child {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: block;
    width: auto;
    padding: 0;
  }

  .accounts-table td:first-child::before {
    display: none;
    content: "";
  }

  .accounts-table td:nth-child(2),
  .copiers-table td:nth-child(1) {
    display: block;
    padding-top: 0;
    padding-right: 2.2rem;
    padding-bottom: 0.4rem;
  }

  .accounts-table td:nth-child(2)::before,
  .copiers-table td:nth-child(1)::before {
    display: none;
    content: "";
  }

  .accounts-table td:nth-child(3)::before {
    content: "Account";
  }

  .accounts-table td:nth-child(4)::before {
    content: "Server";
  }

  .accounts-table td:nth-child(5)::before {
    content: "Type";
  }

  .accounts-table td:nth-child(6)::before {
    content: "Platform";
  }

  .accounts-table td:nth-child(7)::before {
    content: "Balance";
  }

  .accounts-table td:nth-child(8)::before {
    content: "Actions";
  }

  .accounts-table td:nth-child(8),
  .copiers-table td:nth-child(7) {
    display: block;
    padding-top: 0.85rem;
  }

  .accounts-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.7rem;
    row-gap: 0.7rem;
    align-items: start;
  }

  .accounts-table td:nth-child(2),
  .accounts-table td:nth-child(7),
  .accounts-table td:nth-child(8) {
    grid-column: 1 / -1;
  }

  .accounts-table td:nth-child(3),
  .accounts-table td:nth-child(4),
  .accounts-table td:nth-child(5),
  .accounts-table td:nth-child(6) {
    height: 100%;
    margin: 0;
  }

  .accounts-table__identity-row {
    align-items: flex-start;
    gap: 0.35rem 0.45rem;
    padding-right: 0.35rem;
  }

  .accounts-table__account-meta,
  .accounts-table__account-link {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .accounts-table__account strong {
    font-size: 1rem;
    line-height: 1.28;
  }

  .accounts-table td:nth-child(3),
  .accounts-table td:nth-child(4),
  .accounts-table td:nth-child(5),
  .accounts-table td:nth-child(6) {
    min-height: 4.1rem;
    padding: 0.8rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .accounts-table td:nth-child(7) {
    padding: 0.95rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(79, 128, 255, 0.12), rgba(79, 128, 255, 0.05));
    border: 1px solid rgba(116, 148, 255, 0.16);
  }

  .accounts-table td:nth-child(8) {
    margin-top: 0.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .accounts-table__balance {
    font-size: 1.05rem;
    font-weight: 700;
    color: #dce7ff;
  }

  .accounts-table td:nth-child(7) .accounts-table__account-meta span {
    color: #bdd0ff;
  }

  .accounts-table__platform-cell {
    text-align: left;
  }

  .accounts-table__platform-cell .accounts-platform-badge {
    width: auto;
    justify-content: flex-start;
    margin-left: 0;
    gap: 0.6rem;
  }

  .accounts-platform-badge__label {
    display: inline;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .accounts-platform-badge__mark {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 0.7rem;
  }

  .accounts-actions,
  .copiers-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .accounts-actions {
    width: 100%;
    gap: 0.55rem;
  }

  .accounts-action,
  .copiers-action {
    min-height: 2.7rem;
  }

  .accounts-action--label {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 2.85rem;
    padding-inline: 0.85rem;
    border-radius: 0.8rem;
  }

  .accounts-action--status,
  .accounts-action--danger {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
  }

  .accounts-checkbox {
    width: 1.05rem;
    height: 1.05rem;
  }

  .copiers-table__row--master {
    background: rgba(40, 69, 136, 0.14);
  }

  .copiers-table__row--receiver {
    background: rgba(255, 255, 255, 0.03);
  }

  .copiers-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.7rem;
    row-gap: 0.7rem;
    align-items: start;
  }

  .copiers-account-cell {
    min-width: 0;
  }

  .copiers-account--receiver {
    padding-left: 0;
  }

  .copiers-table td:nth-child(1),
  .copiers-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .copiers-table td:nth-child(2)::before {
    content: "Role";
  }

  .copiers-table td:nth-child(3)::before {
    content: "Platform";
  }

  .copiers-table td:nth-child(4)::before {
    content: "Type";
  }

  .copiers-table td:nth-child(5)::before {
    content: "Status";
  }

  .copiers-table td:nth-child(6)::before {
    content: "Safe Mode";
  }

  .copiers-table td:nth-child(7)::before {
    content: "Actions";
  }

  .copiers-table td:nth-child(2),
  .copiers-table td:nth-child(3),
  .copiers-table td:nth-child(4),
  .copiers-table td:nth-child(5),
  .copiers-table td:nth-child(6) {
    height: 100%;
    margin: 0;
  }

  .copiers-table td:nth-child(2),
  .copiers-table td:nth-child(3),
  .copiers-table td:nth-child(4),
  .copiers-table td:nth-child(5),
  .copiers-table td:nth-child(6) {
    min-height: 4.1rem;
    padding: 0.8rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .copiers-table td:nth-child(5) {
    padding: 0.95rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(79, 128, 255, 0.12), rgba(79, 128, 255, 0.05));
    border: 1px solid rgba(116, 148, 255, 0.16);
  }

  .copiers-table td:nth-child(7) {
    margin-top: 0.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .copiers-account {
    align-items: flex-start;
    gap: 0.3rem 0.55rem;
  }

  .copiers-account__name {
    font-size: 1rem;
    line-height: 1.28;
  }

  .copiers-table td:nth-child(3) {
    text-align: left;
  }

  .copiers-table__platform {
    width: auto;
    height: auto;
    margin-inline: 0;
    gap: 0.6rem;
  }

  .copiers-table__platform img {
    width: 1.95rem;
    height: 1.95rem;
    padding: 0.18rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.045);
  }

  .copiers-status-inline {
    gap: 0.5rem;
  }

  .copiers-table td:nth-child(5) .copiers-status-note {
    color: #bfd1ff;
  }

  .copiers-toggle-row {
    align-items: center;
    gap: 0.7rem;
  }

  .copiers-toggle-label {
    font-size: 0.82rem;
    color: var(--text-soft);
  }

  .copiers-table td[colspan] {
    display: block;
    grid-template-columns: none;
  }

  .copiers-table td[colspan]::before {
    display: none;
    content: "";
  }

  .copiers-status-inline,
  .copiers-toggle-row {
    justify-content: flex-start;
  }

  .copiers-status-inline {
    align-items: flex-start;
  }

  .copiers-pill {
    white-space: normal;
  }

  .copiers-action {
    min-height: 2.45rem;
  }

  .copiers-action--text {
    flex: 0 1 auto;
    justify-content: flex-start;
    min-height: 2.45rem;
    padding-inline: 0.25rem 0.45rem;
    border-radius: 0.8rem;
  }

  .copiers-action--danger {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
  }

  .copiers-actions {
    width: auto;
    gap: 0.55rem;
    align-items: center;
  }

  .copiers-table td[colspan] {
    grid-column: 1 / -1;
  }

  .copiers-symbol-map-footer {
    gap: 0.5rem;
    padding: 0.7rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    margin-top: 0.35rem;
  }

  .copiers-symbol-map-footer__group,
  .copiers-symbol-map-footer__group--right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin-left: 0;
    justify-content: initial;
  }

  .copiers-symbol-map-footer .accounts-primary-action,
  .copiers-symbol-map-footer .accounts-secondary-action {
    width: 100%;
    min-height: 2.45rem;
    padding: 0.52rem 0.75rem;
    font-size: 0.88rem;
  }

  .copiers-symbol-map-table__head {
    display: none;
  }

  .copiers-symbol-map-table__rows {
    gap: 0.8rem;
  }

  .copiers-symbol-map-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .copiers-symbol-map-row__master::before,
  .copiers-symbol-map-row__receiver::before {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  .copiers-symbol-map-row__master::before {
    content: "Master Symbol";
  }

  .copiers-symbol-map-row__receiver::before {
    content: "Receiver Symbol";
  }

  .tg-tabs,
  .tg-receiver-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .tg-tab,
  .tg-receiver-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    text-align: center;
  }

  .tg-kw-grid,
  .tg-receiver-editor-grid {
    grid-template-columns: 1fr;
  }

  .tg-receiver-presets {
    display: grid;
    gap: 0.6rem;
  }

  .tg-receiver-pill-group,
  .tg-chip-list,
  .tg-receiver-variables__grid {
    gap: 0.45rem;
  }

  .copiers-symbol-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copiers-tv-grid {
    grid-template-columns: 1fr;
  }

  .copiers-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .copiers-stat {
    padding: 0.8rem 0.75rem;
    min-width: 0;
  }

  .copiers-stat__label {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .copiers-stat strong {
    margin-top: 0.18rem;
    font-size: 1.35rem;
  }

  @media (max-width: 430px) {
    .copiers-table tr {
      grid-template-columns: 1fr;
    }

    .copiers-table td:nth-child(1),
    .copiers-table td:nth-child(7) {
      grid-column: auto;
    }

    .copiers-table td[colspan] {
      grid-column: auto;
    }
  }

  .copiers-modal-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -1rem -1rem 1rem;
    padding: 0.95rem 1rem;
    background: rgba(11, 16, 32, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
  }

  .copiers-execution-summary {
    padding: 0.95rem 1rem;
  }

  .copiers-modal-toolbar--execution {
    gap: 0.9rem;
  }

  .copiers-modal-toolbar--execution .copiers-modal-toolbar__group {
    width: 100%;
  }

  .copiers-modal-toolbar__group--filters {
    align-items: end;
  }

  .copiers-modal-select {
    flex: 1 1 0;
    min-width: 0;
  }

  .copiers-modal-toolbar--execution .accounts-primary-action {
    min-width: 7.5rem;
  }

  .copiers-modal-table-wrap {
    overflow: visible;
  }

  .copiers-health-table,
  .copiers-execution-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .copiers-health-table thead,
  .copiers-execution-table thead {
    display: none;
  }

  .copiers-health-table tbody,
  .copiers-execution-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .copiers-health-table tr,
  .copiers-execution-table tr {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
  }

  .copiers-health-table td,
  .copiers-execution-table td {
    display: grid;
    grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
    gap: 0.8rem;
    width: 100%;
    padding: 0.35rem 0;
    border-bottom: 0;
  }

  .copiers-health-table td::before,
  .copiers-execution-table td::before,
  .statistics-table td::before,
  .calendar-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  .copiers-health-table td[colspan],
  .copiers-execution-table td[colspan] {
    display: block;
  }

  .copiers-health-table td[colspan]::before,
  .copiers-execution-table td[colspan]::before {
    display: none;
    content: "";
  }

  .copiers-execution-table td[data-label="Reason"] .copiers-status-note,
  .copiers-health-table td[data-label="Status"] .copiers-status-note {
    margin-top: 0.35rem;
  }

  .log-page {
    gap: 0.85rem;
  }

  .log-tabs-card,
  .log-toolbar-card,
  .log-stream-card {
    padding: 0.9rem;
  }

  .log-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.8rem;
    scrollbar-width: none;
  }

  .log-tabs::-webkit-scrollbar {
    display: none;
  }

  .log-tab {
    white-space: nowrap;
  }

  .log-toolbar {
    gap: 0.6rem;
  }

  .log-toolbar__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
  }

  .log-toolbar__controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    align-items: center;
  }

  .log-toolbar__controls .log-filter-group {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
  }

  .log-toolbar__controls .log-filter-group label,
  .log-toolbar__controls .log-filter-group > span:first-child {
    flex-shrink: 0;
    font-size: 0.75rem;
    white-space: nowrap;
    color: var(--text-muted);
  }

  .log-toolbar__controls .log-select {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .log-pill-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .log-pill-row::-webkit-scrollbar {
    display: none;
  }

  .log-pill {
    flex-shrink: 0;
    min-height: 1.8rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
  }

  .log-toolbar__row > .log-button {
    width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
  }

  .log-button--primary {
    margin-left: 0;
  }

  .log-entry__head,
  .log-entry__meta {
    align-items: flex-start;
  }

  .log-stream {
    max-height: none;
    overflow: visible;
  }

  .statistics-toolbar__group {
    width: 100%;
  }

  .statistics-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .statistics-hero .statistics-card:last-child {
    grid-column: 1 / -1;
  }

  .statistics-split,
  .statistics-distribution-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .statistics-card {
    gap: 0.75rem;
    padding: 0.95rem;
  }

  .statistics-card__title {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .statistics-card__value {
    font-size: 1.55rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .statistics-card__meta,
  .statistics-card__note,
  .statistics-section__text {
    line-height: 1.45;
  }

  .statistics-kpi-grid,
  .statistics-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.9rem;
    width: 100%;
  }

  .statistics-kpi {
    min-width: 0;
  }

  .statistics-kpi__value {
    font-size: 1.05rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .statistics-inline-note {
    gap: 0.5rem 0.8rem;
  }

  .statistics-chip-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .statistics-chip-group::-webkit-scrollbar {
    display: none;
  }

  .statistics-table-wrap,
  .calendar-table-wrap {
    overflow: visible;
  }

  .statistics-table,
  .calendar-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .statistics-table thead,
  .calendar-table thead,
  .statistics-calendar__weekday-row {
    display: none;
  }

  .statistics-table tbody,
  .calendar-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .statistics-table tr,
  .calendar-table tr {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
  }

  .statistics-table td,
  .calendar-table td {
    display: grid;
    grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
    gap: 0.8rem;
    width: 100%;
    padding: 0.35rem 0;
    border-bottom: 0;
    text-align: left;
  }

  .statistics-table td.is-right,
  .statistics-table th.is-right {
    text-align: left;
  }

  .calendar-table__event span {
    max-width: none;
    white-space: normal;
  }

  .calendar-table td[colspan] {
    display: block;
  }

  .calendar-table td[colspan]::before {
    display: none;
    content: "";
  }

  .statistics-calendar__month {
    justify-content: space-between;
  }

  .calendar-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: start;
  }

  .calendar-table td {
    display: block;
    width: 100%;
    padding: 0.8rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .calendar-table td::before {
    display: block;
    margin-bottom: 0.28rem;
  }

  .calendar-table td:nth-child(4) {
    order: -1;
    grid-column: 1 / -1;
    min-height: 0;
  }

  .calendar-table td[data-label="Impact"] .calendar-impact {
    width: auto;
    justify-content: flex-start;
  }

  .calendar-table td[data-label="Currency"] span {
    display: block;
    margin-top: 0.2rem;
  }

  .calendar-table__event span {
    display: block;
  }

  .statistics-calendar__grid {
    grid-template-columns: 1fr;
  }

  .statistics-calendar__cell,
  .statistics-calendar__blank {
    min-height: 0;
  }

  .statistics-calendar__blank {
    display: none;
  }

  @media (max-width: 430px) {
    .statistics-hero,
    .statistics-kpi-grid,
    .statistics-mini-grid,
    .log-toolbar__row,
    .calendar-table tr {
      grid-template-columns: 1fr;
    }

    .statistics-hero .statistics-card:last-child {
      grid-column: auto;
    }

    .accounts-table tr {
      grid-template-columns: 1fr;
    }

    .accounts-table td:nth-child(2),
    .accounts-table td:nth-child(7),
    .accounts-table td:nth-child(8) {
      grid-column: auto;
    }

    .copiers-create-footer__left,
    .copiers-create-footer__right {
      grid-template-columns: 1fr;
    }

    .copiers-symbol-map-footer__group,
    .copiers-symbol-map-footer__group--right {
      grid-template-columns: 1fr;
    }

    .tg-tabs,
    .tg-receiver-tabs {
      grid-template-columns: 1fr;
    }

    .copiers-modal-toolbar__group--filters {
      align-items: stretch;
    }

    .copiers-modal-toolbar__group--filters .accounts-primary-action {
      width: 100%;
      min-width: 0;
    }
  }
}
