#us-today-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 12px 16px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--bg);
  gap: 10px;
  background: var(--bg);
}

#us-today-workspace::-webkit-scrollbar { width: 7px; }
#us-today-workspace::-webkit-scrollbar-track { background: var(--bg); }
#us-today-workspace::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }

#us-today-workspace[hidden] {
  display: none !important;
}

.ust-view-seg button[aria-pressed="true"] {
  background: #0f766e;
  color: #ffffff;
}

.ust-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font: 600 11.5px/1.3 Manrope, sans-serif;
  color: var(--text);
}

.ust-sync-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.ust-sync-bar {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.ust-sync-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.25s ease;
}

.ft-row.ust-row {
  grid-template-columns: 14px 26px minmax(0, 1fr) 50px minmax(88px, auto);
}

.ft-row.ust-row-vol {
  grid-template-columns: 14px 26px minmax(0, 1fr) minmax(104px, auto);
}

.ft-row.ust-row .ft-sub,
.ft-row.ust-row-vol .ft-sub {
  margin-bottom: 0;
}

.ft-row.ust-row .ft-rval,
.ft-row.ust-row-vol .ft-rval {
  min-width: 0;
  max-width: 148px;
}

.ft-row.ust-row .ft-rval small,
.ft-row.ust-row-vol .ft-rval small {
  display: block;
  font: 600 10px/1.25 Manrope, sans-serif;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ust-logo-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--panel2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font: 800 9.5px/1 Manrope, sans-serif;
  color: #93c5fd;
}

.ust-logo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ust-spark {
  width: 50px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.ust-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font: 800 9px/1.2 Manrope, sans-serif;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.ust-badge.etf {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.32);
}

.ust-badge.watch {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.34);
}

.ust-rvol-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  font: 800 10.5px/1.2 Manrope, sans-serif;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text);
}

.ust-rvol-badge.hot {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.ust-rvol-badge.extreme {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.38);
}

.ust-rsi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 2px 7px;
  border-radius: 5px;
  font: 800 11px/1.2 Manrope, sans-serif;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
}

.ust-rsi-pill.buy-zone {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.ust-rsi-pill.hot-zone {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.ust-sig-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 5px;
  font: 800 10px/1.2 Manrope, sans-serif;
  white-space: nowrap;
}

.ust-sig-pill.buy {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.ust-sig-pill.sell {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ust-sig-pill.neutral {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

/* Screener Table View (Seçenek 3) — isolate from global table.css ellipsis rules */
.ust-table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ust-table-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  font: 600 11px/1.25 Manrope, sans-serif;
  color: var(--muted);
}

.ust-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 68dvh;
}

.ust-table {
  table-layout: auto !important;
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font: 600 12px/1.3 Manrope, sans-serif;
  color: var(--text);
}

.ust-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  padding: 9px 9px;
  font: 800 10px/1.25 Manrope, sans-serif;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.ust-table thead th.num {
  text-align: right;
}

.ust-th-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}

.ust-th-btn:hover,
.ust-th-btn.active {
  color: #fbbf24;
}

.ust-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.ust-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.09);
}

.ust-table tbody td {
  padding: 7px 9px;
  vertical-align: middle;
  white-space: nowrap;
  max-width: none !important;
  width: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.ust-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ust-td-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  max-width: 290px;
}

.ust-td-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ust-td-name b {
  font: 800 12px/1.2 Manrope, sans-serif;
  color: var(--text);
}

.ust-td-name small {
  font: 600 10.5px/1.2 Manrope, sans-serif;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ust-open-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: #93c5fd;
  font: 700 11px/1.1 Manrope, sans-serif;
  cursor: pointer;
}

.ust-table tbody tr:hover .ust-open-link,
.ust-open-link:hover {
  border-color: #3b82f6;
  color: #dbeafe;
}

.ust-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel2);
  font: 600 11.5px/1.2 Manrope, sans-serif;
  color: var(--muted);
}

.ust-pager-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Light theme overrides */
html[data-theme="light"] .ust-sync-banner {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0f172a;
}

html[data-theme="light"] .ust-badge.etf {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #d8b4fe;
}

html[data-theme="light"] .ust-badge.watch {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

html[data-theme="light"] .ust-rvol-badge.hot {
  background: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
}

html[data-theme="light"] .ust-rvol-badge.extreme {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

html[data-theme="light"] .ust-rsi-pill.buy-zone,
html[data-theme="light"] .ust-sig-pill.buy {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

html[data-theme="light"] .ust-rsi-pill.hot-zone,
html[data-theme="light"] .ust-sig-pill.sell {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

html[data-theme="light"] .ust-open-link {
  color: #1d4ed8;
}

@media (max-width: 680px) {
  #us-today-workspace {
    padding: 10px 10px 14px;
  }
  .ft-row.ust-row {
    grid-template-columns: 14px 24px minmax(0, 1fr) minmax(82px, auto);
  }
  .ft-row.ust-row .ust-spark {
    display: none;
  }
  .ust-sync-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
