/**
 * Logged-in user workspace dashboard — dense enterprise style.
 */
.kse-dashboard-page .site-main {
  padding-top: 0;
  background: #f2f5fa;
}

.kse-dashboard-page .site-header.kse-dashboard-shell {
  background: #fff;
  margin-bottom: 0;
  border-bottom: 1px solid #d9e3ee;
  box-shadow: 0 1px 0 rgba(12, 31, 54, 0.05);
}

.kse-dashboard-page .site-header.kse-dashboard-shell .site-header-inner {
  min-height: 62px;
}

.kse-dashboard-page .site-header.kse-dashboard-shell .kse-actions {
  gap: 8px;
}

.kse-dashboard-page .site-header.kse-dashboard-shell .kse-search {
  min-width: 260px;
}

/* Sticky ticker + header on logged-in dashboard (same as home). */
body.kse-dashboard-page .kse-site-top {
  position: sticky;
  top: 0;
  z-index: 900;
}

body.kse-dashboard-page .kse-site-top .site-header {
  position: static;
  top: auto;
}

.lw-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.lw-shell--public {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 28px;
  padding-bottom: 48px;
}

.lw-app-sidebar {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.lw-mobile-nav,
.lw-mobile-sidebar-head,
.lw-sidebar-screen {
  display: none;
}

.lw-side-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.lw-side-link i {
  flex-shrink: 0;
  width: 1.1rem;
  font-size: 0.95rem;
  text-align: center;
}

.lw-side-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lw-side-link:hover {
  background: #f1f6fc;
  color: #00568a;
}

.lw-side-link.is-active,
.lw-side-link.is-scroll-active {
  background: #e8f2ff;
  color: #00568a;
  border-left-color: #00568a;
}

/** PWA install control in workspace sidebar (button styled like nav links). */
button.lw-side-link.lw-pwa-install {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.lw-side-link.lw-pwa-install.is-visible {
  display: flex;
}

button.lw-side-link.lw-pwa-install[hidden] {
  display: none !important;
}

/** Dismissible desktop PWA install banner (logged-in clients). */
.kse-pwa-banner {
  position: sticky;
  top: 0;
  z-index: 10050;
  background: linear-gradient(90deg, #0a2540 0%, #00568a 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.18);
}

.kse-pwa-banner.is-visible {
  display: block;
}

.kse-pwa-banner[hidden] {
  display: none !important;
}

.kse-pwa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.kse-pwa-banner-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.kse-pwa-banner-copy .fa-desktop {
  font-size: 1.35rem;
  margin-top: 2px;
  opacity: 0.92;
}

.kse-pwa-banner-copy strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.kse-pwa-banner-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.kse-pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kse-pwa-banner-actions .kse-btn-soft {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.kse-pwa-banner-actions .kse-btn-signup {
  background: #fff;
  color: #0a2540;
  border-color: #fff;
}

/** Post-install taskbar pin hint (Windows PWA, one-time). */
.kse-pwa-pin-banner {
  background: linear-gradient(90deg, #065f46 0%, #047857 100%);
}

.kse-pwa-pin-banner .kse-pwa-banner-copy .fa-thumb-tack {
  font-size: 1.25rem;
  margin-top: 3px;
  opacity: 0.92;
}

.kse-pwa-pin-banner .kse-pwa-banner-copy p strong {
  display: inline;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 991px) {
  .kse-pwa-banner {
    display: none !important;
  }
}

/** Offline strip for installed PWA when network is unavailable. */
.kse-pwa-offline-banner {
  position: sticky;
  top: 0;
  z-index: 10060;
  background: #7f1d1d;
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
}

.lw-side-divider {
  height: 1px;
  margin: 4px 6px;
  background: #e6edf6;
}

.lw-side-group-label {
  margin: 8px 6px 2px;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: left;
  line-height: 1.2;
}

.lw-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lw-tool-head--stacked .lw-tool-head-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.lw-tool-head--stacked .lw-tool-eyebrow {
  display: block;
  width: 100%;
  margin: 0 0 6px;
}

.lw-tool-head--stacked h1 {
  display: block;
  width: 100%;
}

.lw-tool-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.lw-tool-head h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.2;
}

.lw-tool-sub {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #64748b;
}

.lw-tool-card {
  min-height: 280px;
}

.lw-tool-page .lw-portfolio,
.lw-tool-page .lw-watchlist,
.lw-tool-page .lw-global {
  min-height: 360px;
}

.lw-shell-main {
  min-width: 0;
}

.lw-root {
  padding: 8px 0 24px;
}

.lw-topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 12px;
}

.lw-topbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.lw-welcome h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.lw-updated {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

/** Dashboard — hint that sections can be drag-and-drop rearranged. */
.lw-dashboard-drag-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #475569;
  background: #f0f7ff;
  border: 1px solid #c9ddf0;
  border-radius: 10px;
}

.lw-dashboard-drag-hint .fa {
  flex-shrink: 0;
  color: #0056b3;
  font-size: 0.85rem;
}

.lw-dashboard-drag-hint strong {
  font-weight: 700;
  color: #0056b3;
}

/* Dedicated market metadata bar below welcome header */
.lw-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lw-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lw-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lw-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.lw-meta-value.lw-meta-open {
  color: #0b8f5f;
}

.lw-meta-value.lw-meta-closed {
  color: #64748b;
}

.lw-meta-breadth {
  grid-column: span 1;
}

.lw-breadth-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.35;
}

.lw-breadth-line strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lw-breadth-adv strong {
  color: #0b8f5f;
}

.lw-breadth-dec strong {
  color: #cf3f4d;
}

.lw-breadth-unch strong {
  color: #64748b;
}

.lw-breadth-sep {
  color: #cbd5e1;
  font-weight: 400;
}

.lw-breadth-bar {
  display: flex;
  width: 100%;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
}

.lw-breadth-seg {
  flex: 0 0 auto;
  min-width: 0;
  height: 100%;
  transition: width 0.35s ease;
}

.lw-breadth-seg.lw-up {
  background: #0b8f5f;
}

.lw-breadth-seg.lw-down {
  background: #cf3f4d;
}

.lw-breadth-seg.lw-neutral {
  background: #94a3b8;
}

.lw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

/* Dashboard drag-and-drop section handles */
.lw-dashboard-grid .lw-card-head {
  gap: 6px;
}

.lw-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #c9ddf0;
  border-radius: 8px;
  background: #f0f7ff;
  color: #0056b3;
  font-size: 0.9rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.lw-drag-handle .fa {
  /* font-size: 0.95rem; */
  /* font-weight: 700; */
}

.lw-drag-handle:hover {
  color: #004494;
  border-color: #0056b3;
  background: #e3f0fb;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.14);
}

.lw-drag-handle:active {
  cursor: grabbing;
  background: #d6e8f9;
}

.lw-dashboard-item--ghost {
  opacity: 0.45;
}

.lw-dashboard-item--chosen {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.lw-dashboard-item--drag {
  opacity: 0.92;
}

.lw-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lw-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lw-market-overview {
  min-height: 0;
}

.lw-movers {
  min-height: 0;
}

.lw-sectors {
  min-height: 0;
}

.lw-announcements,
.lw-global,
.lw-portfolio,
.lw-watchlist,
.lw-research {
  min-height: 0;
}

.lw-announcements {
  min-height: 0;
}

/* Dashboard announcements — title, then tabs row, then my-stock checkbox */
.lw-corporate-calendar .lw-card-head--solo {
  margin-bottom: 8px;
}

.lw-corporate-calendar .lw-card-head--solo h2 {
  white-space: nowrap;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lw-corporate-calendar .lw-annc-subhead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 7px;
  min-width: 0;
}

.lw-corporate-calendar .lw-tabs-annc {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  margin-bottom: 0;
}

.lw-corporate-calendar .lw-tabs-annc .lw-tab {
  flex: 1 1 0;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  min-height: 2.5em;
  padding: 5px 4px;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lw-corporate-calendar .lw-annc-filter-row {
  display: flex;
  justify-content: flex-end;
}

.lw-corporate-calendar .lw-annc-filter-row .kse-my-stock-filter {
  font-size: 0.68rem;
  gap: 4px;
}

.lw-corporate-calendar .lw-annc-filter-row .kse-my-stock-filter input {
  width: 14px;
  height: 14px;
}

.lw-global {
  min-height: 0;
}

.lw-global-frame-wrap--compact {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.lw-global-frame--macro {
  height: 240px;
}

.lw-global-frame--world {
  height: 380px;
}

.lw-global-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

.lw-global-panels {
  min-height: 0;
}

.lw-global-panel[hidden] {
  display: none !important;
}

.lw-portfolio {
  min-height: 0;
}

.lw-research {
  min-height: 0;
}

.lw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lw-card-head h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  min-width: 0;
}

/* My Stock Related checkbox — same look as Android app */
.kse-my-stock-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0056b3;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  margin: 0;
}

.kse-my-stock-filter input {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lw-view-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--kse-brand, #00568a);
  text-decoration: none;
  white-space: nowrap;
}

.lw-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.lw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.lw-tab {
  border: 1px solid #d7e1ee;
  background: #f8fafc;
  color: #425466;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.71rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
}

.lw-tabs-sm .lw-tab {
  border-radius: 5px;
}

.lw-tab.is-active {
  background: #2a66c5;
  border-color: #00568a;
  color: #fff;
}

.lw-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 7px;
}

.lw-range {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.lw-range.is-active {
  background: #e8f2ff;
  color: #00568a;
}

.lw-tab-panel[hidden] {
  display: none !important;
}

.lw-chart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 300px;
}

.lw-index-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.lw-index-nav-item {
  position: relative;
  min-height: 78px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-align: left;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: #0f172a;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  display: block;
}

.lw-index-nav-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.lw-index-nav-item.is-active {
  border-color: #00568a;
  box-shadow: inset 3px 0 0 #2563eb, 0 2px 8px rgba(37, 99, 235, 0.1);
}

.lw-index-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.lw-index-card-title {
  display: block;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lw-index-card-main {
  display: block;
  margin-top: 4px;
}

.lw-index-card-value {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.lw-index-card-change {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lw-index-volume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 600;
}

.lw-index-volume strong {
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lw-sym-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #00568a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lw-tag-symbol {
  background: #0a2540;
  color: #fff;
}

.lw-global-foot {
  margin: 6px 0 0;
  font-size: 0.65rem;
  color: #94a3b8;
}

.lw-chart-host {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfdff;
  min-height: 300px;
}

.lw-fipi-summary {
  min-height: 122px;
}

.lw-fipi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.lw-fipi-card {
  border: 1px solid #e2eaf5;
  border-radius: 7px;
  padding: 8px;
  background: #fbfdff;
}

.lw-fipi-card h4 {
  margin: 0 0 3px;
  font-size: 0.74rem;
  color: #0a2540;
}

.lw-fipi-card .lw-fipi-val {
  font-size: 0.86rem;
  font-weight: 700;
}

.lw-fipi-card .lw-fipi-sub {
  font-size: 0.67rem;
  color: #64748b;
  margin-top: 3px;
}

.lw-fipi-chart {
  margin-top: 10px;
  border: 1px solid #e2eaf5;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.lw-fipi-chart canvas {
  display: block;
  width: 100%;
  height: 260px;
}

.lw-inline-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.71rem;
  font-weight: 700;
  color: #00568a;
}

.lw-breadth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: #425466;
  margin-bottom: 8px;
}

.lw-breadth-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
}

.lw-breadth-bar .adv {
  background: #0b8f5f;
}

.lw-breadth-bar .unch {
  background: #94a3b8;
}

.lw-breadth-bar .dec {
  background: #cf3f4d;
}

.lw-breadth-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lw-breadth-lists > div {
  min-width: 0;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.lw-breadth-lists h3 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #e8eef7;
  color: #0a2540;
  font-size: 0.76rem;
  font-weight: 800;
}

.lw-breadth-table td {
  padding: 7px 9px;
}

.lw-movers-table-wrap {
  overflow-x: auto;
}

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

.lw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.73rem;
}

.lw-table th,
.lw-table td {
  padding: 5px 5px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.lw-table th {
  font-size: 0.67rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.lw-table th.num,
.lw-table td.num {
  text-align: right;
}

.lw-table tbody tr.lw-row-link {
  cursor: pointer;
}

.lw-table tbody tr.lw-row-link:hover {
  background: #f8fafc;
}

.lw-empty,
.lw-loading {
  color: #94a3b8;
  font-size: 0.74rem;
  padding: 8px 4px;
}

.lw-up {
  color: #0b8f5f;
}

.lw-down {
  color: #cf3f4d;
}

.lw-sector-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.71rem;
  margin-bottom: 8px;
}

.lw-sector-down strong {
  color: #cf3f4d;
}

.lw-sector-up strong {
  color: #0b8f5f;
}

.lw-sector-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
}

.lw-sector-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 0.69rem;
}

.lw-sector-row .lw-sector-name {
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lw-sector-track {
  position: relative;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.lw-sector-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #cbd5e1;
  transform: translateX(-50%);
  z-index: 1;
}

.lw-sector-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.lw-sector-fill.lw-up {
  background: #0b8f5f;
  left: 50%;
}

.lw-sector-fill.lw-down {
  background: #cf3f4d;
  right: 50%;
}

.lw-sector-pct {
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
  text-align: right;
}

.lw-feed-list,
.lw-news-list,
.lw-research-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 230px;
  overflow-y: auto;
}

.lw-news-list {
  max-height: 320px;
}

.lw-research-list {
  max-height: 250px;
}

.lw-feed-item,
.lw-research-item {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #eef2f7;
}

.lw-news-item {
  border-bottom: 1px solid #eef2f7;
}

.lw-feed-item:last-child,
.lw-news-item:last-child,
.lw-research-item:last-child {
  border-bottom: 0;
}

.lw-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.lw-tag-exchange {
  background: #e8f2ff;
  color: #00568a;
}

.lw-tag-news {
  background: #f1f5f9;
  color: #475569;
}

.lw-feed-body a {
  color: #0a2540;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.lw-feed-body a:hover {
  color: #00568a;
}

.lw-feed-meta {
  font-size: 0.66rem;
  color: #94a3b8;
  margin-top: 2px;
}

.lw-news-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 2px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.lw-news-link:hover {
  background: #f8fafc;
}

.lw-news-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e8eef5;
}

.lw-news-thumb--has-image {
  background: #fff;
}

.lw-news-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  box-sizing: border-box;
  background: #fff;
}

.lw-news-thumb--placeholder {
  background: linear-gradient(180deg, #f3f9ff, #eaf3fb);
}

.lw-news-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #89a8c4;
  font-size: 1.1rem;
}

.lw-news-body {
  flex: 1;
  min-width: 0;
}

.lw-news-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0a2540;
  line-height: 1.35;
  margin-bottom: 3px;
}

.lw-news-link:hover .lw-news-title {
  color: #00568a;
}

.lw-news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.67rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 4px;
}

.lw-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.63rem;
  color: #94a3b8;
}

.lw-news-date-label {
  color: #64748b;
  font-weight: 600;
}

.lw-news-date-label + .lw-news-source::before {
  content: "·";
  margin-right: 6px;
  color: #cbd5e1;
}

.lw-news-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-weight: 600;
}

.lw-news-source i {
  font-size: 0.62rem;
  opacity: 0.85;
}

.lw-news-arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 1rem;
  margin-top: 8px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.lw-news-link:hover .lw-news-arrow {
  color: #00568a;
  transform: translateX(2px);
}

.lw-pdf-link {
  margin-left: auto;
  color: #cf3f4d;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.lw-portfolio-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  min-height: 0;
}

.lw-portfolio-empty .lw-pf-create-btn {
  border: 0;
  cursor: pointer;
}

.lw-widget-empty {
  text-align: center;
  padding: 14px 10px 12px;
}

.lw-widget-empty-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.lw-widget-empty-msg {
  margin: 0 0 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #64748b;
}

.lw-widget-empty-cta {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.lw-widget-empty-cta:hover {
  background: #1d4ed8;
}

.lw-pf-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef4fc;
  color: #5b8fd4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.lw-pf-empty-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a2540;
}

.lw-pf-empty-hint {
  margin: 0 0 14px;
  font-size: 0.7rem;
  color: #94a3b8;
  max-width: 220px;
  line-height: 1.35;
}

.lw-pf-create-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: #2a66c5;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(42, 102, 197, 0.25);
}

.lw-pf-create-btn:hover {
  background: #1d4d9b;
}

.lw-tool-head .lw-pf-create-btn {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.lw-tool-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lw-pf-add-stock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #005a8f;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 90, 143, 0.28);
  white-space: nowrap;
}

.lw-pf-add-stock-btn:hover {
  background: #004a75;
}

.lw-pf-fab {
  position: fixed;
  right: 22px;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #005a8f;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lw-pf-fab:hover {
  background: #004a75;
}

.lw-pf-fab[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .lw-pf-fab {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .lw-pf-add-stock-btn {
    display: none !important;
  }

  .lw-tool-page .lw-portfolio {
    padding-bottom: 72px;
  }
}

.lw-pf-add-stock-btn[hidden] {
  display: none !important;
}

.lw-pf-create-btn i {
  margin-right: 4px;
}

.lw-pf-create-cash {
  margin-top: 4px;
}

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

.lw-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);
}

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

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

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

.lw-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0a2540;
}

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

.lw-modal-body {
  padding: 16px 18px 10px;
}

.lw-modal .lw-field {
  margin-bottom: 14px;
}

.lw-modal .lw-field:last-child {
  margin-bottom: 0;
}

.lw-modal .lw-field--primary {
  margin-bottom: 16px;
}

.lw-modal .lw-field--primary .lw-field-label {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  text-transform: none;
  letter-spacing: 0;
}

.lw-modal .lw-field--toggle {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.lw-modal .lw-field--toggle .lw-modal-hint {
  margin: 8px 0 0;
}

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

.lw-modal .lw-field-input,
.lw-modal select.lw-field-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0a2540;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lw-modal .lw-field-input--text {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  background: #f8fafc;
}

.lw-modal .lw-field-input:focus,
.lw-modal select.lw-field-input:focus {
  outline: none;
  border-color: #00568a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 102, 197, 0.14);
}

.lw-modal .lw-field-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  opacity: 1;
}

.lw-modal select.lw-field-input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.lw-search-field {
  position: relative;
  margin-bottom: 14px;
}

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

.lw-suggest-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.lw-suggest-list[hidden] {
  display: none !important;
}

.lw-suggest-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}

.lw-suggest-item:hover {
  background: #f1f5f9;
}

.lw-suggest-item strong {
  font-size: 0.9rem;
}

.lw-suggest-item span {
  font-size: 0.72rem;
  color: #64748b;
}

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

.lw-field-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a2540;
  cursor: pointer;
}

.lw-field-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #00568a;
  flex-shrink: 0;
}

.lw-modal-hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #94a3b8;
}

.lw-modal-msg {
  margin: 0;
  font-size: 0.78rem;
}

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

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

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

.lw-btn-ghost {
  background: #f1f5f9;
  color: #475569;
}

.lw-btn-primary {
  background: #2a66c5;
  color: #fff;
}

.lw-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.lw-modal-wide {
  width: min(480px, calc(100vw - 24px));
}

.lw-field-row {
  display: grid;
  gap: 10px;
}

.lw-field-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lw-pf-tool .lw-pf-picker-bar {
  margin-top: 14px;
}

.lw-pf-picker-bar {
  padding: 12px 14px;
  border: 1px solid #b8cce8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f3f8ff 0%, #e6effc 100%);
  box-shadow: 0 1px 4px rgba(30, 74, 138, 0.1);
}

.lw-pf-picker-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e4a8a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lw-pf-picker-bar .lw-pf-picker {
  border-bottom: none;
  padding-bottom: 0;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.lw-pf-tool .lw-pf-pick {
  font-size: 0.84rem;
  padding: 9px 18px;
  border-width: 1.5px;
  border-color: #94b4e0;
  background: #fff;
  color: #1e3a5f;
  flex-shrink: 0;
}

.lw-pf-tool .lw-pf-pick.is-active {
  box-shadow: 0 2px 10px rgba(42, 102, 197, 0.35);
}

.lw-pf-pick:focus-visible {
  outline: 2px solid #2a66c5;
  outline-offset: 2px;
}

.lw-pf-detail {
  margin-top: 12px;
  border: 1px solid #e6edf6;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.lw-pf-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lw-pf-detail-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0a2540;
}

.lw-pf-detail-pl {
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
}

.lw-pf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.lw-pf-tool-btn {
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #334155;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.lw-pf-tool-btn i {
  margin-right: 4px;
}

.lw-pf-tool-btn:hover {
  background: #eef4fc;
  border-color: #c7d8ee;
}

.lw-pf-tool-btn-primary {
  background: #005a8f;
  border-color: #005a8f;
  color: #fff;
}

.lw-pf-tool-btn-primary:hover {
  background: #004a75;
  border-color: #004a75;
}

.lw-pf-tool-btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

/* My Holdings section — segmented tabs, summary/tx tables */
.lw-pf-holdings-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.lw-pf-holdings-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a2540;
}

.lw-pf-holdings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lw-pf-seg-tabs {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  border-radius: 8px;
  background: #f1f5f9;
}

.lw-pf-seg-tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.lw-pf-seg-tab.is-active {
  background: #2a66c5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(42, 102, 197, 0.25);
}

.lw-pf-holdings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lw-pf-export-btn,
.lw-pf-add-tx-btn {
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lw-pf-export-btn {
  border: 1px solid #dbe4ef;
  background: #fff;
  color: #334155;
}

.lw-pf-export-btn:hover {
  background: #f8fafc;
  border-color: #c7d8ee;
}

.lw-pf-export-btn i {
  margin-right: 6px;
  color: #16a34a;
}

.lw-pf-add-tx-btn {
  border: 1px solid #2a66c5;
  background: #2a66c5;
  color: #fff;
}

.lw-pf-add-tx-btn:hover {
  background: #1d4d9b;
  border-color: #00568a;
}

.lw-pf-add-tx-btn i {
  margin-right: 6px;
}

.lw-pf-holdings-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6edf6;
  border-radius: 10px;
  background: #fff;
}

.lw-pf-holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.lw-pf-holdings-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
  white-space: nowrap;
}

.lw-pf-holdings-table thead th.num {
  text-align: right;
}

.lw-pf-holdings-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #0a2540;
  vertical-align: middle;
}

.lw-pf-holdings-table tbody tr:last-child td {
  border-bottom: 0;
}

.lw-pf-holdings-table tbody tr:hover {
  background: #f8fbff;
}

.lw-pf-holdings-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lw-pf-holdings-row {
  cursor: pointer;
}

.lw-pf-stock-cell {
  min-width: 88px;
}

.lw-pf-pl-cell {
  line-height: 1.35;
}

.lw-pf-pl-cell span {
  display: block;
}

.lw-pf-pl-pct {
  font-size: 0.68rem;
  opacity: 0.9;
}

.lw-pf-pl-cell.lw-up,
.lw-pf-pl-cell.lw-up span {
  color: #0b8f5f;
  font-weight: 700;
}

.lw-pf-pl-cell.lw-down,
.lw-pf-pl-cell.lw-down span {
  color: #cf3f4d;
  font-weight: 700;
}

.lw-pf-tx-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: capitalize;
}

.lw-pf-tx-type.is-buy {
  background: #dcfce7;
  color: #15803d;
}

.lw-pf-tx-type.is-sell {
  background: #fee2e2;
  color: #b91c1c;
}

.lw-pf-tx-type.is-div {
  background: #ede9fe;
  color: #6d28d9;
}

.lw-pf-tx-type.is-other {
  background: #f1f5f9;
  color: #475569;
}

.lw-pf-tx-note-cell {
  width: 72px;
  text-align: center;
  font-size: 0.72rem;
}

.lw-pf-tx-note-empty {
  color: #94a3b8;
}

.lw-pf-tx-note-tip-wrap {
  position: relative;
  display: inline-block;
}

.lw-pf-tx-note-link {
  border: 0;
  background: transparent;
  color: #00568a;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.lw-pf-tx-note-link:hover,
.lw-pf-tx-note-link:focus {
  color: #00568a;
}

.lw-pf-tx-note-tip {
  display: none;
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0a2540;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(15, 37, 64, 0.18);
  pointer-events: none;
}

.lw-pf-tx-note-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #0a2540;
}

.lw-pf-tx-note-tip-wrap:hover .lw-pf-tx-note-tip,
.lw-pf-tx-note-tip-wrap:focus-within .lw-pf-tx-note-tip {
  display: block;
}

.lw-pf-tx-act-col {
  width: 72px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .lw-pf-holdings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lw-pf-holdings-actions {
    justify-content: stretch;
  }

  .lw-pf-export-btn,
  .lw-pf-add-tx-btn {
    flex: 1;
    text-align: center;
  }
}

.lw-pf-subtabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 8px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 6px;
}

.lw-pf-subtab {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lw-pf-subtab.is-active {
  background: #eef4fc;
  color: #00568a;
}

.lw-pf-count {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 0.62rem;
  margin-left: 4px;
}

.lw-pf-panel {
  display: none;
}

.lw-pf-panel.is-active {
  display: block;
}

.lw-pf-tx-filter {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: #64748b;
}

.lw-pf-tx-clear {
  border: 0;
  background: transparent;
  color: #00568a;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.lw-pf-tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.lw-pf-tx-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e6edf6;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdff;
}

.lw-pf-tx-row.is-buy {
  border-left-color: #22c55e;
}

.lw-pf-tx-row.is-sell {
  border-left-color: #ef4444;
}

.lw-pf-tx-row.is-div {
  border-left-color: #8b5cf6;
}

.lw-pf-tx-row.is-other {
  border-left-color: #64748b;
}

.lw-pf-tx-main {
  min-width: 0;
  flex: 1;
}

.lw-pf-tx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.lw-pf-tx-top strong {
  font-size: 0.78rem;
  color: #0a2540;
}

.lw-pf-tx-date {
  font-size: 0.64rem;
  color: #94a3b8;
  white-space: nowrap;
}

.lw-pf-tx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.68rem;
  color: #475569;
}

.lw-pf-tx-note {
  color: #94a3b8;
}

.lw-pf-tx-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lw-pf-tx-act {
  border: 1px solid #dbe4ef;
  background: #fff;
  color: #475569;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.lw-pf-tx-act-del {
  color: #b91c1c;
  border-color: #fecaca;
}

.lw-pf-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.lw-pf-overall {
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  padding: 10px 12px;
}

.lw-pf-overall-top {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #dbe4ef;
}

.lw-pf-overall-pl-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.lw-pf-overall-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.lw-pf-overall-pl {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lw-pf-overall-roi {
  font-size: 0.72rem;
  font-weight: 700;
}

.lw-pf-overall-meta {
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
}

.lw-pf-overall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.lw-pf-overall-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lw-pf-overall-stat strong.lw-up,
.lw-pf-kpi strong.lw-up {
  color: #0b8f5f;
}

.lw-pf-overall-stat strong.lw-down,
.lw-pf-kpi strong.lw-down {
  color: #cf3f4d;
}

.lw-pf-overall-stat {
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
}

.lw-pf-overall-stat span {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 2px;
}

.lw-pf-overall-stat strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0a2540;
}

.lw-pf-overall-stat-em {
  background: #f8fbff;
}

.lw-pf-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.lw-pf-card {
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left-width: 4px;
}

.lw-pf-card-up {
  background: #f0fdf7;
  border-left-color: #0b8f5f;
}

.lw-pf-card-down {
  background: #fef5f6;
  border-left-color: #cf3f4d;
}

.lw-pf-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.lw-pf-card-title {
  min-width: 0;
  flex: 1;
}

.lw-pf-card-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0a2540;
  margin-bottom: 2px;
}

.lw-pf-card-meta {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.lw-pf-card-pl {
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.lw-pf-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lw-pf-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  color: #475569;
}

.lw-pf-card-row span:last-child {
  font-weight: 700;
  color: #0a2540;
  text-align: right;
}

.lw-pf-card-row-em {
  padding-top: 4px;
  margin-top: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.lw-pf-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid #eef2f7;
}

.lw-pf-pick {
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lw-pf-pick.is-active {
  background: #2a66c5;
  border-color: #00568a;
  color: #fff;
}

.lw-pf-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.lw-pf-summary--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lw-pf-cash-note {
  margin: 6px 0 0;
  font-size: 0.68rem;
  color: #64748b;
}

@media (max-width: 767px) {
  .lw-pf-summary--4,
  .lw-pf-overall-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lw-pf-charts-suite {
  margin: 12px 0 10px;
  border: 1px solid #e6edf6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
  overflow: hidden;
}

.lw-pf-charts-suite[hidden] {
  display: none !important;
}

.lw-pf-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lw-pf-charts-card {
  min-width: 0;
  padding: 10px 8px 6px;
}

.lw-pf-charts-card + .lw-pf-charts-card {
  border-left: 1px solid #e6edf6;
}

.lw-pf-charts-title {
  margin: 0 0 6px;
  padding: 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.lw-pf-chart-canvas {
  width: 100%;
  min-height: 240px;
}

.lw-pf-chart-canvas--roi {
  min-height: 260px;
}

@media (max-width: 767px) {
  .lw-pf-charts-grid {
    grid-template-columns: 1fr;
  }

  .lw-pf-charts-card + .lw-pf-charts-card {
    border-left: 0;
    border-top: 1px solid #e6edf6;
  }
}

.lw-pf-kpi {
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  padding: 6px 8px;
  text-align: center;
}

.lw-pf-kpi span {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.lw-pf-kpi strong {
  display: block;
  font-size: 0.78rem;
  color: #0a2540;
  font-weight: 700;
}

.lw-pf-table-head,
.lw-pf-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 52px 56px 52px 56px;
  gap: 4px;
  align-items: center;
  font-size: 0.68rem;
}

.lw-pf-table-head {
  padding: 0 4px 4px;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #eef2f7;
}

.lw-pf-table-head .num,
.lw-pf-row .num {
  text-align: right;
}

.lw-pf-scroll {
  max-height: 168px;
  overflow-y: auto;
  margin: 0 -2px;
  padding: 0 2px;
}

.lw-pf-row {
  padding: 7px 4px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.lw-pf-row:last-child {
  border-bottom: 0;
}

.lw-pf-row:hover {
  background: #f8fafc;
}

.lw-pf-sym .lw-sym-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.lw-pf-no-holdings {
  padding: 28px 12px;
  text-align: center;
}

.lw-pf-no-holdings h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a2540;
}

.lw-pf-no-holdings p {
  margin: 0 0 14px;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

.lw-pf-no-holdings .lw-pf-create-btn {
  border: 0;
  cursor: pointer;
}

/* Dashboard watchlist — one shared grid so title, headers, and rows align */
.lw-watchlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(108px, auto);
  column-gap: 8px;
  min-height: 0;
}

.lw-watchlist > .lw-card-head,
.lw-watchlist > #lwWatchlistPanel .lw-empty,
.lw-watchlist > #lwWatchlistPanel .lw-loading {
  grid-column: 1 / -1;
}

.lw-watchlist > #lwWatchlistPanel .lw-empty,
.lw-watchlist > #lwWatchlistPanel .lw-loading {
  padding-left: 0;
  padding-right: 0;
}

.lw-watchlist > #lwWatchlistPanel {
  display: contents;
}

.lw-watch-table-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding: 0 0 6px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #6b7c93;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lw-watch-table-head .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lw-watch-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  margin: 0 5px 5px 0;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0a2540;
  text-decoration: none;
}

.lw-watch-chip:hover {
  background: #e8f2ff;
  color: #00568a;
}

.lw-watch-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit;
}

.lw-watch-row .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lw-watch-row:last-child {
  border-bottom: 0;
}

.lw-watch-row:hover {
  background: #f8fafc;
}

.lw-portfolio-meta {
  margin-bottom: 6px;
}

.lw-portfolio-holdings {
  margin-top: 6px;
}

.lw-research-item {
  align-items: flex-start;
}

.lw-research-thumb {
  width: 30px;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e8f2ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00568a;
  flex-shrink: 0;
}

.lw-research-body a {
  color: #0a2540;
  font-size: 0.71rem;
  font-weight: 700;
  text-decoration: none;
}

.lw-research-body a:hover {
  color: #00568a;
}

.lw-research-meta {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 2px;
}

@media (max-width: 1320px) {
  .lw-meta-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lw-meta-breadth {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  .lw-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lw-col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .lw-chart-layout {
    grid-template-columns: 1fr;
  }
}

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

  .lw-app-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    gap: 4px;
  }

  .lw-side-link {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    padding: 6px 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .lw-side-group-label {
    width: 100%;
    text-align: left;
    margin: 4px 2px 0;
  }

  .lw-side-link.is-active,
  .lw-side-link.is-scroll-active {
    border-left: 0;
    border-bottom-color: #00568a;
  }

  .lw-side-divider {
    display: none;
  }
}

@media (max-width: 900px) {
  .lw-grid {
    grid-template-columns: 1fr;
  }

  .lw-col-right {
    grid-template-columns: 1fr;
  }

  .lw-chart-layout {
    grid-template-columns: 1fr;
  }

  .lw-index-nav-item {
    min-height: 72px;
  }

  .lw-meta-bar {
    grid-template-columns: 1fr 1fr;
  }

  .lw-breadth-lists {
    grid-template-columns: 1fr;
  }

  .kse-dashboard-page .site-header.kse-dashboard-shell .kse-search {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .lw-topbar .lw-index-rail {
    grid-template-columns: none;
  }
}

/* Phone layout: app-style navigation and horizontally scrollable market cards. */
@media (max-width: 767px) {
  body.kse-dashboard-page {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  body.kse-dashboard-page.lw-mobile-menu-open {
    overflow: hidden;
  }

  .kse-dashboard-page .site-main {
    background: #f4f7fb;
  }

  .kse-dashboard-page .site-header.kse-dashboard-shell .site-header-inner {
    min-height: 58px;
    gap: 10px;
  }

  .kse-dashboard-page .site-header.kse-dashboard-shell .kse-brand-wordmark {
    height: 16px;
    max-width: 72px;
  }

  .kse-dashboard-page .site-header.kse-dashboard-shell .kse-brand-mark {
    width: 32px;
    height: 32px;
  }

  .kse-dashboard-page .site-header.kse-dashboard-shell .kse-actions {
    flex: 1;
    min-width: 0;
  }

  .lw-root {
    padding: 4px 0 18px;
  }

  .lw-root > .site-container {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .lw-topbar {
    gap: 10px;
    padding: 8px 0 10px;
  }

  .lw-welcome h1 {
    font-size: 1.08rem;
    font-weight: 700;
  }

  .lw-updated {
    margin-top: 2px;
    font-size: 0.7rem;
  }

  .lw-meta-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
  }

  .lw-meta-item {
    min-height: 66px;
    justify-content: center;
    padding: 10px 12px;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
  }

  .lw-meta-item:nth-child(2) {
    border-right: 0;
  }

  .lw-meta-item:nth-child(3) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .lw-meta-breadth {
    grid-column: 1 / -1;
    min-height: auto;
    border-right: 0;
    border-bottom: 0;
  }

  .lw-meta-value {
    font-size: 0.95rem;
  }

  .lw-index-rail {
    display: flex;
    gap: 9px;
    width: calc(100% + 12px);
    margin-right: -12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lw-index-detail-page .lw-index-rail {
    width: calc(100% + 8px);
    margin-right: -8px;
  }

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

  .lw-index-nav-item {
    flex: 0 0 136px;
    min-height: 76px;
    scroll-snap-align: start;
  }

  .lw-grid,
  .lw-col,
  .lw-col-right {
    gap: 10px;
  }

  .lw-card {
    border-radius: 14px;
    padding: 13px 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .lw-card-head h2 {
    font-size: 0.92rem;
    font-weight: 700;
  }

  .lw-corporate-calendar .lw-card-head--solo h2 {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .lw-corporate-calendar .lw-tabs-annc .lw-tab {
    font-size: 0.7rem;
    min-height: 2.6em;
    padding: 6px 5px;
  }

  .lw-corporate-calendar .lw-annc-filter-row .kse-my-stock-filter {
    font-size: 0.72rem;
  }

  .lw-view-all,
  .lw-tab,
  .lw-range {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lw-tab {
    padding-right: 12px;
    padding-left: 12px;
  }

  .lw-table th,
  .lw-table td {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .lw-global-frame--world {
    height: 320px;
  }

  .lw-app-sidebar {
    position: fixed;
    z-index: 1002;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 340px);
    max-height: none;
    padding: max(16px, env(safe-area-inset-top, 0px)) 12px 24px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 3px;
    border: 0;
    border-radius: 0 18px 18px 0;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.2);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }

  .lw-app-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .lw-mobile-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 4px 8px;
    border-bottom: 1px solid #e7edf5;
    color: #0f172a;
  }

  .lw-mobile-sidebar-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
  }

  .lw-side-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .lw-side-link.is-active,
  .lw-side-link.is-scroll-active {
    border: 0;
  }

  .lw-side-group-label {
    width: auto;
    margin: 10px 8px 2px;
  }

  .lw-side-divider {
    display: block;
  }

  .lw-sidebar-screen {
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
  }

  .lw-sidebar-screen.is-open {
    display: block;
  }

  .lw-mobile-nav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 5px 6px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #dce5ef;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -5px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
  }

  .lw-mobile-nav-link {
    min-width: 0;
    min-height: 52px;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #718096;
    font: inherit;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
  }

  .lw-mobile-nav-link i {
    font-size: 1.12rem;
  }

  .lw-mobile-nav-link.is-active {
    background: #eaf3ff;
    color: #1769c2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lw-app-sidebar {
    transition: none;
  }
}

/* My Alerts widget on dashboard */
.lw-alerts-quick {
  margin-bottom: 10px;
}

.lw-alerts-quick-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.lw-alerts-quick-actions {
  display: flex;
  gap: 6px;
}

.lw-alerts-quick-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #00568a;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lw-alerts-quick-link .fa {
  flex-shrink: 0;
  font-size: 10px;
}

.lw-alerts-quick-link:hover {
  background: #dbeafe;
  border-color: #00568a;
  border-style: solid;
  color: #00568a;
}

.lw-alerts-count {
  display: inline-block;
  min-width: 16px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
}

.lw-alerts-tabs .lw-tab.is-active .lw-alerts-count {
  background: #dbeafe;
  color: #00568a;
}

.lw-alerts-panels {
  margin-top: 8px;
}

.lw-alerts-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lw-alerts-panel[hidden] {
  display: none !important;
}

.lw-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  background: #fafbfd;
}

.lw-alert-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lw-alert-chip {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.lw-alert-val {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.lw-alert-exp {
  font-size: 11px;
  color: #64748b;
}

.lw-alert-row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lw-alert-act {
  width: 28px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.lw-alert-act:hover {
  color: #00568a;
  border-color: #93c5fd;
}

.lw-alerts-more {
  margin-top: 4px;
  font-size: 12px;
}

/* Embedded public pages inside logged-in workspace shell */
.kse-workspace-embed-page .lw-workspace-embed-main {
  min-width: 0;
}

.kse-workspace-embed-page .lw-workspace-embed-main .site-container {
  width: 100%;
  max-width: none;
}

.kse-workspace-embed-page .lw-workspace-embed-main .kse-home {
  padding-top: 0;
}

.kse-workspace-embed-page .lw-workspace-embed-main .kse-hero {
  display: none !important;
}

.kse-workspace-embed-page .lw-workspace-embed-main .kse-section {
  padding-top: 0;
}

.kse-workspace-embed-page .lw-workspace-embed-main .kse-section-inner.site-container,
.kse-workspace-embed-page .lw-workspace-embed-main .kse-markets-hub-wrap .site-container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
