/* ==========================================================================
   SteamIsolation — Custom Component Layer Over TailAdmin HTML Pro v2.5.2
   BiDi Technical Token Isolation | 2FA Pills | Flagship Phone Notifications UI
   ========================================================================== */

:root {
  --font-mono-stack: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  /* Light Mode Phone & Custom Tokens (Default when html:not(.dark)) */
  --bg-skeleton-1: rgba(16, 24, 40, 0.06);
  --bg-skeleton-2: rgba(16, 24, 40, 0.12);

  --code-pill-bg: rgba(70, 95, 255, 0.08);
  --code-pill-border: rgba(70, 95, 255, 0.28);
  --code-pill-text: #3641f5;
  --code-pill-hover-bg: #465fff;
  --code-pill-hover-text: #ffffff;

  --phone-shell-bg: linear-gradient(145deg, #e4e7ec 0%, #cfd5df 48%, #dde2eb 100%);
  --phone-shell-shadow: 0 28px 64px rgba(16, 24, 40, 0.28), 0 0 0 1px rgba(16, 24, 40, 0.14), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  --phone-side-btn: linear-gradient(180deg, #98a2b3, #667085);
  --phone-frame-bg: #f9fafb;
  --phone-frame-border: #98a2b3;
  --phone-status-bg: #ffffff;
  --phone-status-text: #101828;
  --phone-status-sub: #344054;
  --phone-battery-border: rgba(16, 24, 40, 0.45);
  --phone-header-bg: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  --phone-header-border: #e4e7ec;
  --phone-title-text: #101828;
  --phone-icon-bg: #f2f4f7;
  --phone-icon-border: #e4e7ec;
  --phone-icon-text: #344054;
  --phone-filterbar-bg: #f9fafb;
  --phone-filterbar-border: #e4e7ec;
  --phone-seg-bg: #eef2f6;
  --phone-seg-border: #e4e7ec;
  --phone-seg-text: #475467;
  --phone-seg-hover-text: #101828;
  --phone-seg-hover-bg: rgba(255, 255, 255, 0.75);
  --phone-seg-count-bg: rgba(16, 24, 40, 0.08);
  --phone-seg-count-text: #1d2939;
  --phone-body-bg: #f2f4f7;
  --phone-section-text: #667085;
  --phone-section-urgent: #b45309;
  --phone-section-count-bg: rgba(16, 24, 40, 0.08);
  --phone-section-count-text: #475467;
  --phone-card-bg: #ffffff;
  --phone-card-border: #e4e7ec;
  --phone-card-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 4px 10px rgba(16, 24, 40, 0.04);
  --phone-card-auth-bg: linear-gradient(160deg, #fffdf7 0%, #fffbeb 100%);
  --phone-card-conf-bg: linear-gradient(160deg, #fffefb 0%, #fefce8 100%);
  --phone-card-title: #101828;
  --phone-card-body: #475467;
  --phone-cat-bg: #f2f4f7;
  --phone-cat-text: #344054;
  --phone-cat-border: #e4e7ec;
  --phone-cat-amber-bg: rgba(217, 119, 6, 0.12);
  --phone-cat-amber-text: #b45309;
  --phone-cat-amber-border: rgba(217, 119, 6, 0.28);
  --phone-meta-bg: #f9fafb;
  --phone-meta-border: #e4e7ec;
  --phone-meta-label: #667085;
  --phone-meta-val: #344054;
  --phone-meta-strong: #101828;
  --phone-deny-bg: rgba(220, 38, 38, 0.08);
  --phone-deny-border: rgba(220, 38, 38, 0.28);
  --phone-deny-text: #b91c1c;
  --phone-deny-hover-bg: #dc2626;
  --phone-deny-hover-text: #ffffff;
  --phone-empty-bg: #ffffff;
  --phone-empty-border: #e4e7ec;
  --phone-empty-title: #101828;
  --phone-empty-sub: #475467;
  --phone-notice-bg: rgba(217, 119, 6, 0.1);
  --phone-notice-border: rgba(217, 119, 6, 0.3);
  --phone-notice-text: #92400e;
  --phone-notice-retry-text: #92400e;
  --phone-home-bg: #f2f4f7;
  --phone-home-pill: rgba(16, 24, 40, 0.22);

  --tone-info: #0284c7;
  --tone-success: #059669;
  --tone-warning: #b45309;
  --tone-danger: #dc2626;
  --tone-muted: #667085;
}

html.dark {
  --bg-skeleton-1: rgba(255, 255, 255, 0.06);
  --bg-skeleton-2: rgba(255, 255, 255, 0.12);

  --code-pill-bg: rgba(70, 95, 255, 0.15);
  --code-pill-border: rgba(117, 146, 255, 0.36);
  --code-pill-text: #9cb9ff;
  --code-pill-hover-bg: #465fff;
  --code-pill-hover-text: #ffffff;

  --phone-shell-bg: linear-gradient(145deg, #344054 0%, #182230 48%, #263142 100%);
  --phone-shell-shadow: 0 32px 72px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  --phone-side-btn: linear-gradient(180deg, #475467, #1d2939);
  --phone-frame-bg: #0c111d;
  --phone-frame-border: #05080f;
  --phone-status-bg: #101828;
  --phone-status-text: #f2f4f7;
  --phone-status-sub: #d0d5dd;
  --phone-battery-border: rgba(255, 255, 255, 0.45);
  --phone-header-bg: linear-gradient(180deg, #162033 0%, #101828 100%);
  --phone-header-border: rgba(255, 255, 255, 0.08);
  --phone-title-text: #f9fafb;
  --phone-icon-bg: rgba(255, 255, 255, 0.06);
  --phone-icon-border: rgba(255, 255, 255, 0.11);
  --phone-icon-text: #d0d5dd;
  --phone-filterbar-bg: #0f1624;
  --phone-filterbar-border: rgba(255, 255, 255, 0.07);
  --phone-seg-bg: #080d17;
  --phone-seg-border: rgba(255, 255, 255, 0.08);
  --phone-seg-text: #98a2b3;
  --phone-seg-hover-text: #e4e7ec;
  --phone-seg-hover-bg: rgba(255, 255, 255, 0.05);
  --phone-seg-count-bg: rgba(255, 255, 255, 0.12);
  --phone-seg-count-text: #e4e7ec;
  --phone-body-bg: #0c111d;
  --phone-section-text: #667085;
  --phone-section-urgent: #fbbf24;
  --phone-section-count-bg: rgba(255, 255, 255, 0.08);
  --phone-section-count-text: #98a2b3;
  --phone-card-bg: linear-gradient(180deg, #162032 0%, #101828 100%);
  --phone-card-border: rgba(255, 255, 255, 0.08);
  --phone-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  --phone-card-auth-bg: linear-gradient(160deg, #1d283a 0%, #131b29 100%);
  --phone-card-conf-bg: linear-gradient(160deg, #1a2435 0%, #111826 100%);
  --phone-card-title: #f9fafb;
  --phone-card-body: #98a2b3;
  --phone-cat-bg: rgba(152, 162, 179, 0.14);
  --phone-cat-text: #d0d5dd;
  --phone-cat-border: rgba(152, 162, 179, 0.22);
  --phone-cat-amber-bg: rgba(245, 158, 11, 0.15);
  --phone-cat-amber-text: #fbbf24;
  --phone-cat-amber-border: rgba(245, 158, 11, 0.3);
  --phone-meta-bg: rgba(8, 13, 23, 0.6);
  --phone-meta-border: rgba(255, 255, 255, 0.07);
  --phone-meta-label: #98a2b3;
  --phone-meta-val: #d0d5dd;
  --phone-meta-strong: #f2f4f7;
  --phone-deny-bg: rgba(239, 68, 68, 0.14);
  --phone-deny-border: rgba(239, 68, 68, 0.35);
  --phone-deny-text: #fca5a5;
  --phone-deny-hover-bg: rgba(239, 68, 68, 0.28);
  --phone-deny-hover-text: #ffffff;
  --phone-empty-bg: rgba(255, 255, 255, 0.025);
  --phone-empty-border: rgba(255, 255, 255, 0.07);
  --phone-empty-title: #f2f4f7;
  --phone-empty-sub: #98a2b3;
  --phone-notice-bg: rgba(245, 158, 11, 0.12);
  --phone-notice-border: rgba(245, 158, 11, 0.3);
  --phone-notice-text: #fbbf24;
  --phone-notice-retry-text: #fde68a;
  --phone-home-bg: #0c111d;
  --phone-home-pill: rgba(255, 255, 255, 0.26);

  --tone-info: #38bdf8;
  --tone-success: #34d399;
  --tone-warning: #fbbf24;
  --tone-danger: #f87171;
  --tone-muted: #98a2b3;
}

/* BiDi Technical Token Isolation */
.ltr-token {
  direction: ltr;
  unicode-bidi: isolate;
}

.ltr-inline {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Visual masking for sensitive numeric fields (Card PAN / CVV) without triggering password-manager DOM warnings */
.secret-mask {
  -webkit-text-security: disc;
}

/* Arabic Typography Joining Protection */
html[dir="rtl"] body {
  line-height: 1.55;
}

html[dir="rtl"] th,
html[dir="rtl"] .steam-section-header,
html[dir="rtl"] .steam-header-title,
html[dir="rtl"] .ta-no-tracking {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

[dir="rtl"] .rtl-flip {
  display: inline-block;
  transform: scaleX(-1);
}

/* Native Select Chevron Logical RTL / LTR Alignment (@tailwindcss/forms override) */
html:not([dir="rtl"]) select:not([multiple]):not([size]) {
  background-position: right 0.65rem center !important;
  padding-right: 2.25rem !important;
}

html[dir="rtl"] select:not([multiple]):not([size]) {
  background-position: left 0.65rem center !important;
  padding-left: 2.25rem !important;
  padding-right: 0.85rem !important;
}

/* ============================================================================
   MODERN WEB GUIDANCE — LOGICAL SCROLLING, SUB-TABS & CONTAINER-QUERY TABLES
   ============================================================================ */
.custom-scrollbar {
  scrollbar-width: thin;
}

.ta-modal .custom-scrollbar {
  overscroll-behavior: contain;
}

.ta-subtabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ta-subtabs-scroll::-webkit-scrollbar {
  display: none;
}

.ta-subtabs-scroll > [role="tab"] {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
  outline-offset: -2px;
}

/* Responsive Container-Query Data Tables (Desktop Table -> Mobile Cards) */
.ta-resp-table-wrap {
  container-type: inline-size;
  overflow-x: auto;
  max-inline-size: 100%;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.ta-resp-table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}

.ta-resp-table-wrap thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

@container (width < 760px) {
  .ta-resp-table-wrap {
    overflow-x: visible;
  }

  .ta-resp-table-wrap table,
  .ta-resp-table-wrap tbody,
  .ta-resp-table-wrap tr,
  .ta-resp-table-wrap td {
    display: block;
    width: 100%;
  }

  .ta-resp-table-wrap thead {
    display: none;
  }

  .ta-resp-table-wrap tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .ta-resp-table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 0.75rem;
    padding: 0.875rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
  }

  html.dark .ta-resp-table-wrap tbody tr {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
  }

  .ta-resp-table-wrap tbody tr.ta-empty-row {
    display: block;
    border-style: dashed;
    text-align: center;
  }

  .ta-resp-table-wrap tbody td {
    padding: 0 !important;
    white-space: normal !important;
    min-inline-size: 0;
    border: 0 !important;
    text-align: start !important;
  }

  /* Vaults Table Card Grid Mapping */
  #accountsMainTable tbody td[data-col="index"]   { grid-column: 1 / -1; grid-row: 1; }
  #accountsMainTable tbody td[data-col="index"]:has(.ta-dash-empty) { display: none; }
  #accountsMainTable tbody td[data-col="account"] { grid-column: 1 / 2; grid-row: 2; }
  #accountsMainTable tbody td[data-col="power"]   { grid-column: 2 / 3; grid-row: 2; align-self: start; }
  #accountsMainTable tbody td[data-col="wallet"]  { grid-column: 1 / 2; grid-row: 3; }
  #accountsMainTable tbody td[data-col="status"]  { grid-column: 2 / 3; grid-row: 3; justify-self: end; }
  #accountsMainTable tbody td[data-col="totp"]       { grid-column: 1 / -1; grid-row: 4; }
  #accountsMainTable tbody td[data-col="totp"]:has(.ta-dash-empty) { display: none; }
  #accountsMainTable tbody td[data-col="last_login"] { grid-column: 1 / -1; grid-row: 5; }
  #accountsMainTable tbody td[data-col="last_login"]:has(.ta-dash-empty) { display: none; }
  #accountsMainTable tbody td[data-col="last_login"] > div { flex-direction: row; align-items: center; gap: 0.5rem; }
  #accountsMainTable tbody td[data-col="device"]     { grid-column: 1 / -1; grid-row: 6; padding-top: 0.35rem !important; border-top: 1px solid rgba(148, 163, 184, 0.14) !important; }
  #accountsMainTable tbody td[data-col="proxy"]      { grid-column: 1 / -1; grid-row: 7; }
  #accountsMainTable tbody td[data-col="actions"]    { grid-column: 1 / -1; grid-row: 8; padding-top: 0.5rem !important; border-top: 1px solid rgba(148, 163, 184, 0.14) !important; }
  #accountsMainTable tbody td[data-col="actions"] > div { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
  #accountsMainTable tbody td[data-col="actions"] button { justify-content: center; width: 100%; padding-block: 0.45rem; }

  /* Automation Pipeline Table Card Grid Mapping */
  #autoVaultsTable tbody td[data-col="check"]   { display: none; }
  #autoVaultsTable tbody td[data-col="account"] { grid-column: 1 / 2; grid-row: 1; }
  #autoVaultsTable tbody td[data-col="status"]  { grid-column: 2 / 3; grid-row: 1; justify-self: end; text-align: end !important; }
  #autoVaultsTable tbody td[data-col="billing"] { grid-column: 1 / 2; grid-row: 2; }
  #autoVaultsTable tbody td[data-col="wallet"]  { grid-column: 2 / 3; grid-row: 2; justify-self: end; text-align: end !important; }
  #autoVaultsTable tbody td[data-col="stage"]   { grid-column: 1 / -1; grid-row: 3; }
  #autoVaultsTable tbody td[data-col="stage"] select { width: 100% !important; }
  #autoVaultsTable tbody td[data-col="next"]    { grid-column: 1 / -1; grid-row: 4; font-size: 0.72rem; }
  #autoVaultsTable tbody td[data-col="actions"] { grid-column: 1 / -1; grid-row: 5; padding-top: 0.5rem !important; border-top: 1px solid rgba(148, 163, 184, 0.14) !important; }
  #autoVaultsTable tbody td[data-col="actions"] > div { width: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem; }
  #autoVaultsTable tbody td[data-col="actions"] > div > button:not(:last-child) { flex: 1 1 0%; justify-content: center; height: 2rem; }
}

/* Compact Split-Pane Data Tables (stays crisp table on Desktop >=480px, stacks on narrow mobile) */
.ta-compact-table-wrap {
  container-type: inline-size;
  overflow-x: auto;
  max-inline-size: 100%;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.ta-compact-table-wrap thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

@container (width < 460px) {
  .ta-compact-table-wrap {
    overflow-x: visible;
  }

  .ta-compact-table-wrap thead {
    display: none;
  }

  .ta-compact-table-wrap table,
  .ta-compact-table-wrap tbody,
  .ta-compact-table-wrap tr,
  .ta-compact-table-wrap td {
    display: block;
    width: 100%;
  }

  .ta-compact-table-wrap tbody {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .ta-compact-table-wrap tbody tr {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.96);
  }

  html.dark .ta-compact-table-wrap tbody tr {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
  }

  .ta-compact-table-wrap tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.35rem 0 !important;
    border: 0 !important;
    text-align: end !important;
    white-space: normal !important;
  }

  .ta-compact-table-wrap tbody td + td {
    border-top: 1px dashed rgba(148, 163, 184, 0.16) !important;
  }

  .ta-compact-table-wrap tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #9ca3af;
    flex: 0 0 auto;
    text-align: start;
  }

  .ta-compact-table-wrap tbody td[colspan] {
    display: block;
    text-align: center !important;
    padding: 1.5rem 0.75rem !important;
  }

  .ta-compact-table-wrap tbody td[colspan]::before {
    display: none;
  }
}

/* Semantic Status Text Tones */
.status-tone-info { color: var(--tone-info) !important; }
.status-tone-success { color: var(--tone-success) !important; }
.status-tone-warning { color: var(--tone-warning) !important; }
.status-tone-danger { color: var(--tone-danger) !important; }
.status-tone-muted { color: var(--tone-muted) !important; }

/* Tab Panels & Visibility Helpers */
.d-none { display: none !important; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Pulse Dot & Inline Spinner */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: inline-block;
  flex-shrink: 0;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.92); }
}

.ta-spinner {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  animation: taSpin 0.7s linear infinite;
  vertical-align: -0.125em;
}

@keyframes taSpin {
  to { transform: rotate(360deg); }
}

/* Skeleton Shimmer */
.skeleton-bar {
  display: inline-block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-skeleton-1) 25%, var(--bg-skeleton-2) 50%, var(--bg-skeleton-1) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.35s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Running Vault Row Accent */
tr.row-running {
  background-color: rgba(16, 185, 129, 0.07) !important;
  box-shadow: inset 3px 0 0 #10b981;
}

[dir="rtl"] tr.row-running {
  box-shadow: inset -3px 0 0 #10b981;
}

html.dark tr.row-running {
  background-color: rgba(16, 185, 129, 0.09) !important;
}

/* Vault Issue Row Accents (Error = Red, Warning = Amber) */
tr.row-issue-error {
  background-color: rgba(239, 68, 68, 0.055) !important;
  box-shadow: inset 3px 0 0 #ef4444;
}

[dir="rtl"] tr.row-issue-error {
  box-shadow: inset -3px 0 0 #ef4444;
}

html.dark tr.row-issue-error {
  background-color: rgba(239, 68, 68, 0.08) !important;
}

tr.row-issue-warn {
  background-color: rgba(245, 158, 11, 0.055) !important;
  box-shadow: inset 3px 0 0 #f59e0b;
}

[dir="rtl"] tr.row-issue-warn {
  box-shadow: inset -3px 0 0 #f59e0b;
}

html.dark tr.row-issue-warn {
  background-color: rgba(245, 158, 11, 0.075) !important;
}

/* QR Code Dropzone & Row Drag-Over Highlight */
.qr-dropzone.is-dragover {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

tr.is-qr-dragover {
  background-color: rgba(16, 185, 129, 0.14) !important;
  outline: 2px dashed #10b981;
  outline-offset: -2px;
}

.btn-qr-action.is-dragover {
  border-color: #10b981 !important;
  background-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
}

/* 2FA Code Pill */
.code-pill {
  font-family: var(--font-mono-stack);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--code-pill-text);
  background: var(--code-pill-bg);
  border: 1px solid var(--code-pill-border);
  padding: 2px 6px;
  border-radius: 7px;
  cursor: pointer;
  user-select: all;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.code-pill:hover {
  background: var(--code-pill-hover-bg);
  border-color: var(--code-pill-hover-bg);
  color: var(--code-pill-hover-text);
}

.code-pill.is-copied,
.is-copied {
  border-color: #10b981 !important;
  color: var(--tone-success) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.big-2fa-code {
  font-family: var(--font-mono-stack);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--code-pill-text);
  cursor: pointer;
}

/* JSON Console */
.json-pre {
  padding: 14px 16px;
  font-family: var(--font-mono-stack);
  font-size: 0.76rem;
  line-height: 1.5;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  direction: ltr;
  text-align: left;
}

/* TailAdmin Modal System (Vanilla Bridge Compatible) */
.ta-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.ta-modal.show {
  display: flex;
}

.ta-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

html.dark .ta-modal-backdrop {
  background: rgba(3, 7, 18, 0.72);
}

/* Native TailAlert Spring Pop & Animated Icon Ring */
.ta-modal.show .ta-alert-dialog {
  animation: taAlertPop 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ta-modal.show .ta-alert-icon-ring {
  animation: taRingPop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes taAlertPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes taRingPop {
  0% { transform: scale(0.7); opacity: 0; }
  65% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Native TailToast Multi-Toast Stack & Countdown Progress Bar */
.ta-toast-card {
  position: relative;
  overflow: hidden;
  animation: taToastIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ta-toast-card.is-leaving {
  animation: taToastOut 0.2s ease-in forwards;
}

.ta-toast-progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation: taToastCountdown var(--toast-duration, 4200ms) linear forwards;
}

[dir="rtl"] .ta-toast-progress {
  transform-origin: right center;
}

.ta-toast-card:hover .ta-toast-progress {
  animation-play-state: paused;
}

@keyframes taToastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes taToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
}

@keyframes taToastCountdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==========================================================================
   Phone Emulator Modal — Flagship Android Steam Mobile Notifications UI
   ========================================================================== */

.phone-modal-dialog {
  width: 100%;
  max-width: 396px;
  margin: auto;
}

.phone-outer-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 44px;
  background: var(--phone-shell-bg);
  box-shadow: var(--phone-shell-shadow);
}

.phone-side-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: var(--phone-side-btn);
  pointer-events: none;
}

.phone-btn-vol-up { left: -3px; top: 118px; height: 46px; }
.phone-btn-vol-down { left: -3px; top: 174px; height: 46px; }
.phone-btn-power { right: -3px; top: 146px; height: 62px; }

.phone-device-frame {
  width: 100%;
  min-width: 0;
  background: var(--phone-frame-bg) !important;
  border: 2px solid var(--phone-frame-border) !important;
  border-radius: 38px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: min(740px, 88vh, calc(100vh - 2.5rem));
  min-height: 0;
}

.phone-status-bar {
  background: var(--phone-status-bg);
  padding: 10px 20px 6px;
  font-size: 0.72rem;
  color: var(--phone-status-text);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex-shrink: 0;
  direction: ltr;
}

.phone-status-clock {
  justify-self: start;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.phone-punch-hole {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.95);
}

.phone-punch-lens {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #465fff 0%, #0f172a 60%, #020408 100%);
}

.phone-status-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--phone-status-sub);
}

.phone-net-badge {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.phone-battery-pill {
  width: 19px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--phone-battery-border);
  padding: 1.5px;
  display: inline-flex;
  align-items: center;
}

.phone-battery-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: #22c55e;
}

.steam-mobile-header {
  background: var(--phone-header-bg);
  padding: 10px 14px;
  border-bottom: 1px solid var(--phone-header-border);
  flex-shrink: 0;
}

.steam-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.steam-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.steam-mobile-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #465fff 0%, #2a31d8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  box-shadow: 0 3px 10px rgba(70, 95, 255, 0.32);
  flex-shrink: 0;
}

.steam-header-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.steam-header-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--phone-title-text);
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.steam-unread-pill {
  background: #465fff;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.phone-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.phone-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--phone-icon-border);
  background: var(--phone-icon-bg);
  color: var(--phone-icon-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.14s ease;
}

.phone-icon-btn:hover:not(:disabled) {
  background: rgba(70, 95, 255, 0.16);
  border-color: rgba(70, 95, 255, 0.45);
  color: #465fff;
}

html.dark .phone-icon-btn:hover:not(:disabled) {
  color: #ffffff;
}

.phone-icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.phone-icon-btn.is-spinning i {
  animation: taSpin 0.85s linear infinite;
}

.phone-icon-close:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ef4444 !important;
}

.steam-mobile-filterbar {
  background: var(--phone-filterbar-bg);
  padding: 8px 12px;
  border-bottom: 1px solid var(--phone-filterbar-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.steam-seg-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--phone-seg-bg);
  border: 1px solid var(--phone-seg-border);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.steam-seg-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  border: 0;
  border-radius: 7px;
  padding: 6px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--phone-seg-text);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.steam-seg-btn:hover:not(.active) {
  color: var(--phone-seg-hover-text);
  background: var(--phone-seg-hover-bg);
}

.steam-seg-btn.active {
  background: #465fff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(70, 95, 255, 0.32);
}

.steam-seg-count {
  font-size: 0.61rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--phone-seg-count-bg);
  color: var(--phone-seg-count-text);
  font-variant-numeric: tabular-nums;
}

.steam-seg-count.is-amber {
  background: var(--phone-cat-amber-bg);
  color: var(--phone-cat-amber-text);
}

.steam-seg-count.is-blue {
  background: rgba(70, 95, 255, 0.14);
  color: #465fff;
}

html.dark .steam-seg-count.is-blue {
  color: #9cb9ff;
}

.steam-seg-btn.active .steam-seg-count {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.steam-network-notice {
  font-size: 0.69rem;
  line-height: 1.35;
  color: var(--phone-notice-text);
  background: var(--phone-notice-bg);
  border: 1px solid var(--phone-notice-border);
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.steam-notice-retry {
  appearance: none;
  border: 1px solid var(--phone-notice-border);
  background: var(--phone-notice-bg);
  color: var(--phone-notice-retry-text);
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
}

.steam-mobile-body {
  background: var(--phone-body-bg);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steam-mobile-body.is-empty {
  justify-content: safe center;
  padding: 16px 12px;
}

.steam-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--phone-section-text);
  padding: 2px 3px 0;
}

.steam-section-header.is-urgent { color: var(--phone-section-urgent); }

.steam-section-count {
  background: var(--phone-section-count-bg);
  color: var(--phone-section-count-text);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.61rem;
}

.steam-notif-card {
  background: var(--phone-card-bg);
  border: 1px solid var(--phone-card-border);
  border-radius: 13px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  box-shadow: var(--phone-card-shadow);
}

.steam-notif-card.is-unread {
  border-color: rgba(70, 95, 255, 0.35);
  box-shadow: inset 3px 0 0 #465fff, var(--phone-card-shadow);
}

.steam-notif-card.is-read { opacity: 0.85; }

.steam-notif-card.is-auth-request {
  background: var(--phone-card-auth-bg);
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: inset 3px 0 0 #f59e0b, 0 6px 18px rgba(245, 158, 11, 0.08);
}

.steam-notif-card.is-conf-request {
  background: var(--phone-card-conf-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: inset 3px 0 0 #fbbf24, 0 5px 15px rgba(245, 158, 11, 0.06);
}

[dir="rtl"] .steam-notif-card.is-unread {
  box-shadow: inset -3px 0 0 #465fff, var(--phone-card-shadow);
}

[dir="rtl"] .steam-notif-card.is-auth-request {
  box-shadow: inset -3px 0 0 #f59e0b, 0 6px 18px rgba(245, 158, 11, 0.08);
}

[dir="rtl"] .steam-notif-card.is-conf-request {
  box-shadow: inset -3px 0 0 #fbbf24, 0 5px 15px rgba(245, 158, 11, 0.06);
}

.steam-notif-title { color: var(--phone-card-title); overflow-wrap: anywhere; }
.steam-notif-body { color: var(--phone-card-body); overflow-wrap: anywhere; }

.steam-notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--phone-icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.steam-notif-icon.is-amber { background: rgba(245, 158, 11, 0.14); }
.steam-notif-icon.is-blue { background: rgba(70, 95, 255, 0.12); }

.steam-cat-pill {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--phone-cat-bg);
  color: var(--phone-cat-text);
  border: 1px solid var(--phone-cat-border);
}

.steam-cat-pill.is-amber {
  background: var(--phone-cat-amber-bg);
  color: var(--phone-cat-amber-text);
  border-color: var(--phone-cat-amber-border);
}

.steam-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #465fff;
  box-shadow: 0 0 6px rgba(70, 95, 255, 0.65);
  display: inline-block;
  flex-shrink: 0;
}

.notif-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
  background: var(--phone-meta-bg);
  border: 1px solid var(--phone-meta-border);
  border-radius: 9px;
  padding: 7px 9px;
  margin-top: 8px;
  font-size: 0.71rem;
  color: var(--phone-meta-val);
}

.notif-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.notif-meta-row span:first-child { color: var(--phone-meta-label); flex-shrink: 0; }
.notif-meta-val { min-width: 0; text-align: end; overflow-wrap: anywhere; }
.notif-meta-strong { color: var(--phone-meta-strong); }

.notif-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.btn-notif-approve,
.btn-notif-deny {
  appearance: none;
  font-family: inherit;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.14s ease;
}

.btn-notif-approve {
  border: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn-notif-approve:hover:not(:disabled) { filter: brightness(1.08); }

.btn-notif-deny {
  border: 1px solid var(--phone-deny-border);
  background: var(--phone-deny-bg);
  color: var(--phone-deny-text);
}

.btn-notif-deny:hover:not(:disabled) {
  background: var(--phone-deny-hover-bg);
  color: var(--phone-deny-hover-text);
}

.phone-empty-card {
  margin: 0 4px;
  background: var(--phone-empty-bg);
  border: 1px solid var(--phone-empty-border);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--phone-card-shadow);
}

.phone-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(70, 95, 255, 0.1);
  color: #465fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

html.dark .phone-empty-icon { color: #9cb9ff; }

.phone-empty-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--phone-empty-title);
  margin-bottom: 4px;
}

.phone-empty-sub {
  font-size: 0.73rem;
  color: var(--phone-empty-sub);
  line-height: 1.48;
  max-width: 265px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.phone-home-indicator {
  background: var(--phone-home-bg);
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-home-pill {
  width: 112px;
  height: 4px;
  border-radius: 999px;
  background: var(--phone-home-pill);
}

@media (max-width: 420px) {
  .ta-modal#phoneAppModal { padding: 0.5rem; }
}

@media (max-height: 500px) {
  .phone-status-bar, .phone-home-indicator { display: none; }
  .phone-outer-shell { border-radius: 24px; padding: 4px; }
  .phone-device-frame { border-radius: 20px !important; height: clamp(220px, calc(100vh - 1.5rem), 740px); }
}

/* ============================================================================
   UNIVERSAL TAILADMIN PROGRESS SYSTEM (TailProgress)
   ============================================================================ */
.ta-progress-bar {
  position: relative;
  overflow: hidden;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
  will-change: width;
}

.ta-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: taProgressShimmer 1.35s ease-in-out infinite;
}

.ta-progress-bar.is-complete::after {
  animation: none;
  opacity: 0;
}

@keyframes taProgressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(180%); }
}

.ta-progress-card {
  animation: taProgressIn 210ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ta-progress-card.is-leaving {
  animation: taProgressOut 200ms ease-in forwards;
}

@keyframes taProgressIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes taProgressOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-8px) scale(0.97); }
}

.ta-inline-progress {
  animation: taProgressIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.phone-sync-progress {
  margin-top: 7px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--phone-seg-bg);
  border: 1px solid var(--phone-seg-border);
}

.phone-sync-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--phone-title-color);
  margin-bottom: 5px;
}

.phone-sync-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.phone-sync-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #465fff 0%, #38bdf8 100%);
}

.phone-sync-progress-fill.is-done {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.phone-sync-progress-fill.is-fail {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* ============================================================================
   AI COMMAND CHAT — MARKDOWN TYPOGRAPHY, MESSAGE MOTION & TYPING INDICATOR
   ============================================================================ */
.ai-msg-enter {
  animation: aiMsgIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #465fff;
  animation: aiTypingBounce 1.15s infinite ease-in-out;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.ai-md {
  font-family: inherit, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: 0.82rem;
  line-height: 1.65;
  word-break: break-word;
  text-align: right;
  direction: rtl;
}

.ai-md-p,
.ai-md-h,
.ai-md-ul li,
.ai-md-ol li,
.ai-md-quote,
.ai-md-table th,
.ai-md-table td {
  text-align: right !important;
}

.ai-md > :first-child { margin-top: 0 !important; }
.ai-md > :last-child { margin-bottom: 0 !important; }

.ai-md-p {
  margin: 0.45rem 0;
}

.ai-md-h {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: inherit;
}

.ai-md-ul,
.ai-md-ol {
  margin: 0.45rem 0;
  padding-inline-start: 1.25rem;
}

.ai-md-ul { list-style-type: disc; }
.ai-md-ol { list-style-type: decimal; }

.ai-md-ul li,
.ai-md-ol li {
  margin: 0.22rem 0;
}

.ai-md-ul li::marker,
.ai-md-ol li::marker {
  color: #6366f1;
  font-weight: 600;
}

.ai-md-code {
  display: inline-block;
  font-family: var(--font-mono-stack);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.08rem 0.38rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.09);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.16);
  direction: ltr;
  unicode-bidi: isolate;
}

html.dark .ai-md-code {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.25);
}

.ai-md-pre {
  margin: 0.55rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--font-mono-stack);
  font-size: 0.74rem;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
  direction: ltr;
}

.ai-md-quote {
  margin: 0.5rem 0;
  padding: 0.35rem 0.75rem;
  border-inline-start: 3px solid #465fff;
  background: rgba(70, 95, 255, 0.06);
  border-radius: 6px;
  font-size: 0.79rem;
}

html.dark .ai-md-quote {
  background: rgba(70, 95, 255, 0.12);
}

.ai-md-hr {
  margin: 0.65rem 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.ai-md-table-wrap {
  margin: 0.55rem 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.ai-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.ai-md-table th,
.ai-md-table td {
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: start;
}

.ai-md-table thead th {
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
}

.ai-md-table tbody tr:last-child td {
  border-bottom: 0;
}

.ai-md-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.05);
}

.ai-tools-details > summary {
  list-style: none;
  cursor: pointer;
}

.ai-tools-details > summary::-webkit-details-marker {
  display: none;
}

.ai-tools-details[open] .ai-tools-chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot, .skeleton-bar, .ta-spinner, .phone-icon-btn.is-spinning i,
  .ta-toast-card, .ta-toast-progress, .ta-alert-dialog, .ta-alert-icon-ring,
  .ta-progress-bar::after, .ta-progress-card, .ta-inline-progress,
  .ai-msg-enter, .ai-typing-dots span {
    animation: none !important;
  }
}
