/* Professional watchlist page â mobile-parity investor cards */

.wl-page .lw-tool-head {
  align-items: flex-start;
}

.wl-page-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.wl-market-chip {
  min-width: 88px;
  padding: 8px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
}

.wl-market-chip span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-market-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  color: #0a2540;
}

.wl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
}

.wl-toolbar.wl-sort-market-row {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

@media (max-width: 768px) {
  .wl-toolbar.wl-sort-market-row {
    flex-wrap: wrap;
  }

  .wl-toolbar-right {
    width: 100%;
    justify-content: flex-end;
  }
}

.wl-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.wl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.wl-market-chip--status {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
}

.wl-market-chip--status strong {
  font-size: 0.88rem;
}

.wl-view-toggle-mobile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.wl-view-toggle-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.wl-view-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.wl-view-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.wl-view-switch-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.wl-view-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}

.wl-view-switch input:checked + .wl-view-switch-track {
  background: #2563eb;
}

.wl-view-switch input:checked + .wl-view-switch-track::after {
  transform: translateX(18px);
}

.wl-view-toggle-mobile.is-on .wl-view-toggle-text {
  color: #00568a;
}

.wl-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wl-bell-hint {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.wl-bell-hint .fa-bell {
  color: #d97706;
  margin: 0 2px;
}

.wl-view-toggle--desktop {
  display: inline-flex;
}

.wl-list.is-compact-view {
  gap: 0;
}

.wl-compact-list {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.wl-compact-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 8px 8px 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  box-sizing: border-box;
}

.wl-compact-row:last-child {
  border-bottom: 0;
}

.wl-compact-row.is-up {
  box-shadow: inset 3px 0 0 #10b981;
}

.wl-compact-row.is-down {
  box-shadow: inset 3px 0 0 #ef4444;
}

.wl-compact-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wl-compact-left {
  flex: 0 1 38%;
  max-width: 38%;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.wl-compact-sym {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #00568a;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-compact-sector {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}

.wl-compact-left .wl-annc-cluster {
  max-width: 100%;
  flex-wrap: wrap;
}

.wl-compact-left .wl-annc-bell {
  font-size: 0.72rem;
}

.wl-compact-left .wl-annc-tag,
.wl-compact-left .kse-nc-badge {
  font-size: 0.55rem;
  padding: 1px 4px;
}

.wl-compact-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.wl-compact-price {
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}

.wl-compact-change-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
}

.wl-compact-chg {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.wl-compact-pct {
  font-size: 0.68rem;
  font-weight: 600;
}

.wl-compact-vol {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wl-compact-menu {
  flex: 0 0 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wl-compact-menu .wl-menu-btn--compact {
  width: 36px;
  height: 36px;
}

.wl-compact-menu .wl-menu-panel {
  right: 0;
  left: auto;
}

.wl-page.wl-view-compact .wl-card-name {
  display: none;
}

.wl-toolbar-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.wl-sort-select {
  min-width: 200px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.84rem;
  color: #0f172a;
}

.wl-updated {
  margin: 0 0 0 auto;
  font-size: 0.75rem;
  color: #94a3b8;
}

.wl-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 0;
  gap: 2px;
}

.wl-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wl-view-btn + .wl-view-btn {
  border-left: 0;
}

.wl-view-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.wl-view-btn:not(.is-active):hover {
  color: #334155;
}

.wl-index-collapse {
  margin-bottom: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.wl-index-collapse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.wl-index-collapse.is-collapsed .wl-index-collapse-head {
  border-bottom: 0;
}

.wl-index-collapse-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-index-toggle {
  border: 0;
  background: transparent;
  color: #00568a;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.wl-index-toggle:hover {
  background: #e8f0fe;
}

.wl-index-collapse-body {
  padding: 8px 10px 10px;
}

.wl-index-collapse-body[hidden] {
  display: none !important;
}

/* Mobile watchlist .market_index â four index cards above stock list */
.wl-index-rail {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.wl-index-card {
  flex: 1 1 0;
  min-width: 108px;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.wl-index-card:hover,
a.wl-index-card:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(0, 86, 138, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.wl-index-name {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00568a;
}

.wl-index-value {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.15;
}

.wl-index-change {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wl-index-vol {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.wl-index-value.is-up,
.wl-index-change.is-up {
  color: #059669;
}

.wl-index-value.is-down,
.wl-index-change.is-down {
  color: #dc2626;
}

.wl-index-value.is-flat,
.wl-index-change.is-flat {
  color: #64748b;
}

.wl-index-card.is-up {
  border-color: #86efac;
}

.wl-index-card.is-down {
  border-color: #fca5a5;
}

.wl-list.is-table-view {
  gap: 0;
}

.wl-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.wl-dense-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.wl-dense-table thead th {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.wl-dense-table thead th.num,
.wl-dense-table tbody td.num {
  text-align: right;
}

.wl-dense-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.wl-dense-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.wl-dense-row:hover {
  background: #f8fafc;
}

.wl-dense-row.is-expanded {
  background: #f1f5f9;
}

.wl-dense-row.is-expanded:hover {
  background: #eef2f7;
}

.wl-dense-row:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.wl-dense-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  margin-right: 4px;
  color: #94a3b8;
  font-size: 0.62rem;
  flex-shrink: 0;
}

.wl-dense-row.is-expanded .wl-dense-chevron {
  color: #64748b;
}

.wl-dense-sym {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px 8px;
  min-width: 140px;
}

.wl-dense-detail-row td {
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wl-dense-detail-panel {
  padding: 12px 14px 14px;
  border-top: 1px dashed #e2e8f0;
  animation: wl-detail-in 0.18s ease-out;
}

@keyframes wl-detail-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wl-dense-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wl-dense-detail-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.wl-dense-detail-quote {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00568a;
  text-decoration: none;
  white-space: nowrap;
}

.wl-dense-detail-quote:hover {
  text-decoration: underline;
}

.wl-metrics--dense {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.wl-dense-table tbody tr:last-child td {
  border-bottom: 0;
}

.wl-dense-table tbody tr.wl-dense-detail-row:last-child td {
  border-bottom: 0;
}

.wl-dense-table tbody tr:not(.wl-dense-detail-row):hover + .wl-dense-detail-row td,
.wl-dense-detail-row:hover td {
  background: #f8fafc;
}

.wl-dense-uin.is-high {
  color: #059669;
  font-weight: 700;
}

.wl-dense-uin.is-mid {
  color: #d97706;
  font-weight: 700;
}

.wl-dense-uin.is-low {
  color: #dc2626;
  font-weight: 700;
}

.wl-dense-row.is-up {
  box-shadow: inset 3px 0 0 #10b981;
}

.wl-dense-row.is-down {
  box-shadow: inset 3px 0 0 #ef4444;
}

.wl-dense-actions {
  width: 48px;
  text-align: right;
  position: relative;
  overflow: visible;
  cursor: default;
}

.wl-dense-actions .wl-menu-panel {
  z-index: 40;
}

.wl-dense-th-actions {
  width: 48px;
  text-align: right !important;
}

.wl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-card {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.wl-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.wl-card.is-up {
  border-left: 4px solid #10b981;
}

.wl-card.is-down {
  border-left: 4px solid #ef4444;
}

.wl-card.is-flat {
  border-left: 4px solid #94a3b8;
}

.wl-card.is-highlighted,
.wl-compact-row.is-highlighted,
.wl-dense-row.is-highlighted {
  background: #fef9c3 !important;
  box-shadow: inset 0 0 0 2px #facc15;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.wl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wl-card-identity {
  min-width: 0;
}

.wl-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wl-card-sector-row {
  margin-top: 4px;
}

.wl-card-sector-row .wl-card-sector {
  display: inline-block;
}

.wl-card-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
  min-width: 0;
}

.wl-card-sym {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #00568a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.wl-card-sym:hover {
  background: #d2e3fc;
}

.kse-sharia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  color: #16805b;
  width: 16px;
  height: 16px;
  line-height: 1;
  vertical-align: middle;
}

.kse-sharia-badge img {
  display: block;
  width: 100%;
  height: 100%;
}

.wl-card-sector {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wl-dense-sym-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.wl-dense-sym-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.wl-dense-sector {
  font-size: 0.65rem;
}

.wl-dense-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
  min-width: 0;
}

.wl-dense-detail-title .wl-card-sym {
  flex-shrink: 0;
}

.wl-dense-detail-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  min-width: 0;
}

.wl-card-price-block {
  text-align: right;
  flex-shrink: 0;
}

.wl-card-last {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0a2540;
  line-height: 1.1;
}

.wl-card-chg {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wl-card-chg.lw-up,
.wl-card-chg.kse-up {
  color: #059669;
}

.wl-card-chg.lw-down,
.wl-card-chg.kse-down {
  color: #dc2626;
}

.wl-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.wl-metric {
  min-width: 0;
}

.wl-metric span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-metric strong {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.wl-spark-wrap {
  margin-top: 10px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  overflow: hidden;
}

.wl-spark-wrap svg {
  display: block;
  width: 100%;
  height: 44px;
}

.wl-spark-pending,
.wl-spark-empty {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.72rem;
}

.wl-uin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  font-size: 0.78rem;
}

.wl-uin-label {
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.wl-uin-pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wl-uin-pct.is-high {
  color: #059669;
}

.wl-uin-pct.is-mid {
  color: #d97706;
}

.wl-uin-pct.is-low {
  color: #dc2626;
}

.wl-uin-meta {
  color: #64748b;
}

.wl-uin-link {
  margin-left: auto;
  font-weight: 700;
  color: #00568a;
  text-decoration: none;
  font-size: 0.72rem;
}

.wl-uin-link:hover {
  text-decoration: underline;
}

.wl-card-aside {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}

.wl-menu {
  position: relative;
}

.wl-menu-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wl-menu-btn--compact {
  width: 28px;
  height: 28px;
}

.wl-menu-btn i {
  font-size: 0.95rem;
  pointer-events: none;
}

.wl-menu-btn:hover,
.wl-menu.is-open .wl-menu-btn {
  background: rgba(100, 116, 139, 0.12);
  color: #334155;
}

.wl-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 200px;
  padding: 6px;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.wl-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wl-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.wl-menu-item.wl-menu-danger {
  color: #b91c1c;
}

.wl-menu-item.wl-menu-danger:hover {
  background: #fef2f2;
}

.wl-modal-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
}

.wl-modal {
  position: fixed;
  z-index: 81;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 24px));
  transform: translate(-50%, -50%);
  border: 1px solid #d7e1ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.wl-modal-head,
.wl-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}

.wl-modal-head {
  border-bottom: 1px solid #e2e8f0;
}

.wl-modal-foot {
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.wl-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0a2540;
  text-transform: none;
  letter-spacing: 0;
}

.wl-add-modal {
  width: min(440px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wl-add-modal-head {
  align-items: flex-start;
}

.wl-add-modal-titles {
  min-width: 0;
}

.wl-add-modal-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.wl-add-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 16px;
  min-height: 0;
}

.wl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wl-add-search {
  position: relative;
  display: flex;
  align-items: center;
}

.wl-add-search > .fa-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

.wl-add-search-input.wl-field-input {
  margin-bottom: 0;
  padding: 11px 12px 11px 36px;
  border-color: #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.95rem;
}

.wl-add-search-input.wl-field-input:focus {
  outline: none;
  border-color: #005a8f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 90, 143, 0.12);
}

.wl-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.wl-modal-body {
  padding: 14px 16px 8px;
}

.wl-modal-sym {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.88rem;
}

.wl-field-label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-field-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 9px 10px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
}

.wl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wl-modal-hint {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.wl-modal-msg {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.wl-modal-msg.is-ok {
  color: #15803d;
}

.wl-modal-msg.is-err {
  color: #b91c1c;
}

.wl-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.wl-btn-ghost {
  border: 1px solid #d7e1ee;
  background: #fff;
  color: #475569;
}

.wl-btn-primary {
  border: 1px solid #1a73e8;
  background: #1a73e8;
  color: #fff;
}

.wl-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wl-fab,
.wl-add-fab {
  position: fixed;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #005a8f;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wl-fab .fa,
.wl-add-fab .fa {
  pointer-events: none;
}

.wl-fab:hover,
.wl-add-fab:hover {
  background: #004a75;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.wl-fab:active,
.wl-add-fab:active {
  transform: scale(0.96);
}

.wl-list-head {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
}

.wl-list-market-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  line-height: 1.35;
}

.wl-list-market-main {
  flex: 1 1 auto;
  min-width: 0;
}

.wl-list-market-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  --wl-head-control-h: 38px;
}

.wl-list-market-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  width: min(240px, 28vw);
  max-width: 280px;
  height: var(--wl-head-control-h);
}

.wl-list-market-sort .wl-toolbar-label {
  display: flex;
  align-items: center;
  height: var(--wl-head-control-h);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.wl-list-market-sort .wl-sort-select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: var(--wl-head-control-h);
  min-height: var(--wl-head-control-h);
  max-height: var(--wl-head-control-h);
  margin: 0;
  padding: 0 2rem 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.2;
  box-sizing: border-box;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.wl-list-market-view.wl-view-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: var(--wl-head-control-h);
  min-height: var(--wl-head-control-h);
  max-height: var(--wl-head-control-h);
  padding: 4px;
  box-sizing: border-box;
}

.wl-list-market-view .wl-view-btn {
  height: calc(var(--wl-head-control-h) - 8px);
  min-height: calc(var(--wl-head-control-h) - 8px);
  max-height: calc(var(--wl-head-control-h) - 8px);
  padding: 0 12px;
  box-sizing: border-box;
  align-items: center;
}

.wl-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: var(--wl-head-control-h);
  min-height: var(--wl-head-control-h);
  max-height: var(--wl-head-control-h);
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #005a8f;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.wl-add-btn .fa {
  font-size: 0.85rem;
  line-height: 1;
}

.wl-add-btn:hover,
.wl-add-btn:focus {
  background: #004a75;
  color: #fff;
  outline: none;
}

.wl-list-market-status .wl-view-toggle--desktop {
  flex-shrink: 0;
}

.wl-list-market-line {
  display: block;
  font-size: 0.82rem;
  color: #334155;
}

.wl-list-market-line b {
  font-weight: 700;
}

#wlMarketStatusLabel {
  font-weight: 700;
}

#wlMarketStatusLabel.wl-market-open {
  color: #16a34a;
}

#wlMarketStatusLabel.wl-market-closed {
  color: #dc2626;
}

.wl-page .wl-list {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.wl-search-field {
  position: relative;
}

.wl-search-field .wl-field-input {
  margin-bottom: 0;
}

.wl-suggest-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  min-height: 120px;
  max-height: min(360px, 48vh);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.wl-suggest-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 16px;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.4;
}

.wl-suggest-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}

.wl-suggest-item:hover:not(:disabled),
.wl-suggest-item:focus:not(:disabled) {
  background: #eff6ff;
  outline: none;
}

.wl-suggest-item.is-added,
.wl-suggest-item:disabled {
  cursor: default;
  opacity: 0.72;
}

.wl-suggest-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wl-suggest-item strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.wl-suggest-item span {
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-suggest-meta {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-suggest-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #005a8f;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.wl-suggest-add .fa {
  font-size: 0.75rem;
  line-height: 1;
}

.wl-suggest-item:hover:not(:disabled) .wl-suggest-add {
  background: #004a75;
}

@media (max-width: 900px) {
  .wl-page .lw-tool-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wl-page-head-meta {
    width: 100%;
  }

  .wl-market-chip {
    flex: 1 1 88px;
  }

  .wl-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wl-updated {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wl-page .lw-tool-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  .wl-page .lw-tool-head h1 {
    margin-bottom: 0;
    font-size: 1.2rem;
  }

  .wl-page .lw-tool-sub {
    display: none;
  }

  .wl-page-head-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wl-market-chip {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .wl-market-chip strong {
    font-size: 0.9rem;
  }

  .wl-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .wl-card-aside {
    width: auto;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .wl-card-price-block {
    text-align: right;
  }

  .wl-uin-link {
    margin-left: 0;
    width: 100%;
    margin-top: 2px;
  }

  .wl-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    background: #e7edf5;
    overflow: hidden;
  }

  .wl-metric {
    min-height: 52px;
    padding: 8px;
    background: #f8fafc;
  }

  .wl-metric:last-child {
    grid-column: span 2;
  }

  .wl-metric span {
    font-size: 0.58rem;
  }

  .wl-metric strong {
    font-size: 0.8rem;
  }

  .wl-card-last {
    font-size: 1.1rem;
  }

  .wl-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .wl-toolbar-label {
    display: none;
  }

  .wl-view-toggle {
    width: auto;
  }

  .wl-view-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .wl-view-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wl-sort-select {
    width: 100%;
    min-width: 0;
    height: 42px;
  }

  .wl-updated {
    grid-column: 1 / -1;
    width: auto;
    margin: -2px 2px 0;
    font-size: 0.68rem;
  }

  .wl-index-collapse {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .wl-index-collapse-head {
    padding: 4px 2px 7px;
    border-bottom: 0;
    background: transparent;
  }

  .wl-index-collapse-body {
    padding: 0;
  }

  .wl-index-rail {
    width: calc(100% + 12px);
    margin-right: -12px;
    padding-right: 12px;
    gap: 8px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .wl-index-rail::-webkit-scrollbar {
    display: none;
  }

  .wl-index-card {
    flex: 0 0 126px;
    min-width: 126px;
    padding: 9px 10px;
    border-radius: 12px;
    text-align: left;
    scroll-snap-align: start;
  }

  .wl-index-value {
    font-size: 0.95rem;
  }

  .wl-card {
    padding: 12px;
    border-radius: 14px;
  }

  .wl-card-title-row {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .wl-card-sym {
    padding: 4px 9px;
    font-size: 0.78rem;
  }

  .wl-card-name {
    display: block;
    margin-top: 5px;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wl-card-last {
    font-size: 1rem;
  }

  .wl-card-chg {
    margin-top: 2px;
    font-size: 0.75rem;
  }

  .wl-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
  }

  .wl-spark-wrap {
    height: 38px;
    margin-top: 8px;
  }

  .wl-spark-wrap svg,
  .wl-spark-pending,
  .wl-spark-empty {
    height: 38px;
  }

  .wl-uin-row {
    margin-top: 8px;
    padding: 8px;
  }

  .wl-uin-link {
    width: auto;
    margin-top: 0;
    margin-left: auto;
  }

  .wl-menu-panel {
    position: fixed;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    top: auto;
    min-width: 0;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
  }

  .wl-menu-item {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .wl-modal,
  .wl-annc-popup {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88vh;
    transform: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .wl-add-modal {
    max-height: min(92vh, 640px);
  }

  .wl-add-modal .wl-suggest-list {
    min-height: 160px;
    max-height: none;
    flex: 1 1 auto;
  }

  .wl-add-modal-body {
    flex: 1 1 auto;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .wl-page .lw-shell-main {
    min-width: 0;
  }

  .wl-list-head {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  }

  .wl-list-market-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 46vw);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    align-items: start;
  }

  .wl-list-market-actions {
    display: contents;
  }

  .wl-list-market-main {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .wl-list-market-line {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .wl-list-market-sort {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }

  .wl-list-market-sort .wl-toolbar-label {
    display: none;
  }

  .wl-list-market-sort .wl-sort-select {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 1.75rem 0 10px;
    font-size: 0.8rem;
  }

  .wl-list-market-view.wl-view-toggle {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 3px;
  }

  .wl-list-market-view .wl-view-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0;
    justify-content: center;
    position: relative;
  }

  .wl-list-market-view .wl-view-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wl-add-btn {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .wl-toolbar-meta {
    margin-bottom: 8px;
  }

  .wl-toolbar-meta .wl-updated {
    margin-left: 0;
    width: 100%;
  }

  .wl-toolbar-meta .wl-bell-hint {
    width: 100%;
  }

  .wl-index-collapse {
    margin-bottom: 10px;
    border: 0;
    background: transparent;
  }

  .wl-index-collapse-head {
    padding: 2px 0 6px;
  }

  .wl-page .wl-list {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

.wl-annc-bell-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  cursor: pointer;
  vertical-align: middle;
}

.wl-annc-bell {
  font-size: 0.85rem;
  line-height: 1;
  color: #d97706;
}

.wl-annc-tags {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.wl-annc-popup[hidden],
.wl-modal-screen[hidden],
.wl-modal[hidden] {
  display: none !important;
}

.wl-annc-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.wl-annc-tag-bm {
  background: #2563eb;
}

.wl-annc-tag-fr {
  background: #0f766e;
}

.wl-annc-tag-xd {
  background: #7c3aed;
}

.wl-annc-tag-po,
.wl-annc-tag-mg,
.wl-annc-tag-in,
.wl-annc-tag-ot {
  background: #64748b;
}

.wl-annc-cluster .kse-nc-badge {
  margin: 0;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
  background: #b91c1c;
  color: #fff;
}

.kse-nc-badge {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
  cursor: pointer;
  text-transform: none;
}

.kse-quote-title + .kse-nc-badge,
#kseQuoteSummaryTitle .kse-nc-badge {
  margin-left: 8px;
  font-size: 0.7rem;
  padding: 3px 8px;
  vertical-align: middle;
}

.kse-nc-popup-screen {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 99998;
}

.kse-nc-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
  z-index: 99999;
  padding: 0;
}

.kse-nc-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

.kse-nc-popup-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.kse-nc-popup-content {
  padding: 12px 14px 16px;
}

.kse-nc-rules {
  margin: 0;
  padding-left: 1.1rem;
}

.kse-nc-rules li {
  margin: 0 0 0.55rem;
  line-height: 1.35;
}

.kse-nc-raw,
.kse-nc-empty {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.wl-tooltip-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.wl-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 30;
  min-width: 140px;
  max-width: 260px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.wl-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #0f172a;
}

.wl-annc-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.wl-tooltip-wrap:hover > .wl-tooltip,
.wl-tooltip-wrap:focus-within > .wl-tooltip {
  opacity: 1;
  visibility: visible;
}

.wl-annc-bell-tip .wl-tooltip {
  min-width: 180px;
}

/* Surprise movement icon — full colour while unseen, dimmed after viewing */
.wl-sx-tip {
  display: inline-flex;
}

.wl-sx-icon {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1;
  color: #f59e0b;
  cursor: pointer;
  animation: wl-sx-pulse 1.6s ease-in-out infinite;
  transition: opacity 0.2s;
}

.wl-sx-icon.is-seen {
  opacity: 0.4;
  animation: none;
}

.wl-sx-icon.is-seen:hover {
  opacity: 0.75;
}

@keyframes wl-sx-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .wl-sx-icon { animation: none; }
}

.wl-sx-tabs {
  display: flex;
  gap: 4px;
  margin: -4px 0 12px;
  border-bottom: 1px solid #e2e8f0;
}

.wl-sx-tab {
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.wl-sx-tab.is-active {
  color: #6d28d9;
  border-bottom-color: #6d28d9;
}

.wl-sx-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wl-sx-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}

.wl-sx-item.is-up { border-left-color: #0b8a4b; }
.wl-sx-item.is-down { border-left-color: #c62828; }

.wl-sx-item-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
  color: #0a2540;
}

.wl-sx-mag {
  font-weight: 700;
  color: #6d28d9;
}

.wl-sx-item-head time {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748b;
}

.wl-sx-detail {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #334155;
}

.wl-annc-tag-wrap {
  display: inline-flex;
}

.wl-annc-popup {
  position: fixed;
  z-index: 85;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 24px));
  max-height: 85vh;
  transform: translate(-50%, -50%);
  border: 1px solid #d7e1ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

/* Watchlist / portfolio announcement dialog â above site header */
#wlAnncPopupScreen {
  z-index: 99998;
}

#wlAnncPopup {
  z-index: 99999;
  max-height: min(85vh, calc(100dvh - 88px));
}

.wl-annc-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
}

.wl-annc-popup-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0a2540;
}

.wl-annc-popup-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.wl-annc-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.wl-annc-popup-content .kse-annc-card {
  margin-bottom: 10px;
}

.wl-annc-popup-content .kse-annc-card:last-child {
  margin-bottom: 0;
}

.wl-empty-state {
  padding: 36px 16px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
}

.wl-empty-state h3 {
  margin: 0 0 6px;
  color: #0a2540;
  font-size: 1rem;
}

.wl-empty-state p {
  margin: 0;
  font-size: 0.84rem;
}

.wl-hidden-form {
  display: none;
}

/* Live quote tick flash — price cell only */
.kse-live-price.kse-tick-up,
.kse-live-price.kse-tick-down,
.kse-live-price.kse-tick-volume {
  border-radius: 4px;
}
.kse-live-price.kse-tick-up {
  background-color: #b7f07a !important;
  animation: kseTickUpFlash 1.5s ease forwards;
}
.kse-live-price.kse-tick-down {
  background-color: #e1846e !important;
  animation: kseTickDownFlash 1.5s ease forwards;
}
.kse-live-price.kse-tick-volume {
  background-color: #9ec5fe !important;
  animation: kseTickVolumeFlash 1.5s ease forwards;
}
@keyframes kseTickUpFlash {
  from { background-color: #b7f07a; }
  to { background-color: transparent; }
}
@keyframes kseTickDownFlash {
  from { background-color: #e1846e; }
  to { background-color: transparent; }
}
@keyframes kseTickVolumeFlash {
  from { background-color: #9ec5fe; }
  to { background-color: transparent; }
}
