/* English text needs flexible tracks and intrinsic heights. Every rule is
   scoped to the English locale; the Korean composition is unchanged. */
body.language-en :is(.v2-page-main, .krillione-product-main, .personal-main,
  .favorites-main, .notices-main, .ark-mobile-main, .favorite-viewer-main) {
  overflow-wrap: anywhere;
  word-break: normal;
}

body.language-en :is(.v2-section-heading, .v2-heading-title-row,
  .home-product-actions, .home-product-route-actions, .v2-pick-panel > header,
  .ark03-etf-filter-tabs, .ark03-stock-tabs, .unified-membership-filter-group) {
  flex-wrap: wrap;
  height: auto !important;
  min-width: 0;
}

body.language-en :is(.v2-free-preview-badge, .v2-signal-label, .v2-new-pick,
  .v2-patreon-tier > em, .home-product-primary-action, .home-product-secondary-action,
  .v2-membership-candidates-more, .ark03-stock-tabs button, .ark03-etf-filter-tabs button) {
  height: auto !important;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.4 !important;
  padding-block: 8px !important;
}

body.language-en :is(.v2-pick-panel > header > div, .v2-section-heading > div,
  .v2-guide-grid article, .v2-guide-detail-card, .v2-patreon-tier > div,
  .v2-signal-company-block, .v2-signal-details, .v2-signal-identity > span,
  .v2-history-identity > span, .v2-signal-recommended-inline) {
  min-width: 0;
}

body.language-en :is(.v2-signal-identity small, .v2-history-identity small,
  .ark03-news-score-company, .ark03-news-score-sector,
  .ark1440-watch-row > span > small) {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  height: auto !important;
  -webkit-line-clamp: unset;
  line-height: 1.4;
}

body.language-en .v2-signal-company-block {
  grid-template-columns: minmax(0, 1fr);
}
body.language-en .v2-signal-recommended-inline { justify-items: start; }
body.language-en .v2-signal-ai-plain { grid-column: auto; }
body.language-en .v2-signal-card {
  grid-template-columns: minmax(170px, 1fr) minmax(210px, 1.25fr) minmax(125px, .7fr) minmax(180px, 1fr) !important;
}
body.language-en .v2-signal-return-block { gap: 6px; }
body.language-en .v2-history-card header { flex-wrap: wrap; }
body.language-en .v2-history-peak { grid-template-columns: minmax(0, 1fr); }

/* The stock table's first cell used absolute positions with 88px company
   names and 50px sector labels. Give English content its own flowing cell. */
body.language-en :is(.ark-03-screen, .ark-dom-stage) .ark03-stock-row .stock {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 6px 10px;
  height: auto !important;
  min-height: 108px;
  padding: 12px 10px 12px 16px;
  box-sizing: border-box;
}
body.language-en :is(.ark-03-screen, .ark-dom-stage) .ark03-stock-row .stock > :is(.ark03-stock-symbol, b, .ark03-sector-badge) {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
}
body.language-en :is(.ark-03-screen, .ark-dom-stage) .ark03-stock-row .stock > .ark03-stock-symbol {
  width: 42px !important;
  height: 42px !important;
}
body.language-en :is(.ark-03-screen, .ark-dom-stage) .ark03-stock-row .stock > b small {
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  max-height: none !important;
  -webkit-line-clamp: unset;
}
body.language-en :is(.ark-03-screen, .ark-dom-stage) .ark03-stock-row .stock > .ark03-sector-badge {
  grid-column: 2;
  display: flex !important;
  justify-content: flex-start;
  gap: 5px;
}
body.language-en .ark03-sector-badge > span:last-child {
  width: auto !important;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  line-height: 1.35;
  text-align: left;
}
body.language-en :is(.ark-03-screen, .ark-dom-stage) .ark03-stock-row {
  height: auto !important;
  min-height: 120px;
}
body.language-en :is(.ark03-stock-row .ai, .ark03-stock-row .ark03-ai-judgement) {
  height: auto !important;
  overflow: visible;
}
body.language-en .ark03-stock-row .ark03-pill {
  width: auto !important;
  height: auto !important;
  min-height: 28px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 8px !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  overflow: visible;
  line-height: 1.35 !important;
  text-overflow: clip;
}
body.language-en .ark03-etf-table {
  overflow-x: auto;
}
body.language-en .ark1440-watch-row {
  grid-template-columns: 30px minmax(0, 1fr) minmax(64px, .85fr) minmax(48px, .7fr) !important;
  height: auto !important;
  min-height: 62px;
  align-items: center;
}
body.language-en .ark1440-watch-row mark {
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 24px;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  line-height: 1.3 !important;
  padding: 5px 4px;
}
body.language-en .favorite-preview-grid:empty::before { content: "No watchlist stocks"; }

body.language-en :is(.ark-mobile-filter-row, .unified-membership-filter-group) {
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px;
}
body.language-en .ark-mobile-filter-row > button {
  align-self: center;
  flex: 0 1 auto;
  min-height: 40px;
  height: auto !important;
  padding: 10px 12px;
  white-space: normal;
}
body.language-en .unified-membership-filter-group .unified-membership-mark {
  min-width: 36px !important;
  white-space: nowrap !important;
  padding: 6px !important;
}
body.language-en .ark-home-1440.ark-03-screen.ark-03-news .ark03-news-score-company {
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  max-width: 100% !important;
  height: auto !important;
  line-height: 1.4 !important;
}

body.language-en :is(.ark1440-action-row .judge b, .home-investor-selection-flow small,
  .home-polymarket-copy > b, .home-dark-pool-stock > b, .home-dark-pool-stock > b small,
  .home-product-status-metrics small) {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  height: auto !important;
  max-height: none !important;
  -webkit-line-clamp: unset;
  line-height: 1.4 !important;
}
body.language-en :is(.ark1440-action-row, .ark1440-action-row .judge,
  .home-polymarket-row, .home-investor-selection-row) {
  height: auto !important;
}
body.language-en .home-evidence-index-panel .ark1440-index-table > article {
  grid-template-columns: minmax(45px, 1fr) minmax(65px, 1.3fr) 47px 34px !important;
  gap: 5px !important;
}
body.language-en .krillione-support-modal-panel {
  overflow-wrap: anywhere;
  word-break: normal;
}
body.language-en .krillione-support-pane-edge span {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 1100px) {
  body.language-en .v2-signal-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
  }
  body.language-en .v2-signal-details { grid-column: auto; }
  body.language-en .v2-history-week-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.language-en :is(.v2-signal-card, .v2-history-week-cards, .v2-signal-details) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.language-en .v2-signal-return-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
  }
  body.language-en .v2-signal-return-block > small { flex-basis: 100%; }
  body.language-en .v2-signal-details { text-align: left; justify-items: start; }
  body.language-en :is(.ark-mobile-filter-row, .unified-membership-filter-group) {
    flex-wrap: wrap !important;
    overflow: visible !important;
    max-width: 100%;
  }
  body.language-en :is(.ark-mobile-filter-row button, .portal-mobile-more-link,
    .ark-mobile-more-link, .stock-viewer-tab) {
    height: auto !important;
    min-height: 36px;
    white-space: normal !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }
  body.language-en .home-product-status-metrics { flex-wrap: wrap; }
  body.language-en .v2-membership-hero h1 { overflow-wrap: anywhere; }
}
