.industry-preview {
    --ip-bg: #f4f7fb;
    --ip-panel: #ffffff;
    --ip-panel-soft: #f8fafc;
    --ip-text: #172033;
    --ip-muted: #64748b;
    --ip-border: #dfe7f1;
    --ip-accent: #16835f;
    --ip-accent-soft: #e6f6ef;
    --ip-up: #e34d59;
    --ip-down: #13965a;
    width: min(1500px, calc(100% - 32px));
    margin: 26px auto 48px;
    color: var(--ip-text);
}

[data-theme="dark"] .industry-preview {
    --ip-bg: #0f172a;
    --ip-panel: #172033;
    --ip-panel-soft: #111a2b;
    --ip-text: #e8edf5;
    --ip-muted: #94a3b8;
    --ip-border: #2c3b54;
    --ip-accent: #4ade80;
    --ip-accent-soft: rgba(34, 197, 94, .14);
    --ip-up: #ff7279;
    --ip-down: #4ade80;
}

.industry-preview__hero,
.industry-preview__controls,
.industry-preview__sortbar,
.industry-preview__section-head,
.industry-preview__sidebar-head,
.industry-preview__hero-actions { display: flex; align-items: center; }
.industry-preview__hero { justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.industry-preview__eyebrow { color: var(--ip-accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.industry-preview__hero h1 { margin: 4px 0 2px !important; color: var(--ip-text); font-size: clamp(27px, 3vw, 40px); font-weight: 800; }
.industry-preview__hero p,
.industry-preview__section-head p { margin: 0; color: var(--ip-muted); }
.industry-preview__hero-actions { gap: 10px; }
.industry-preview__status,
.industry-preview__classic,
.industry-preview__create { padding: 9px 13px; border: 1px solid var(--ip-border); border-radius: 999px; background: var(--ip-panel); color: var(--ip-muted); font-size: 13px; white-space: nowrap; }
.industry-preview__status { display: inline-flex; align-items: center; gap: 8px; }
.industry-preview__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ip-accent); box-shadow: 0 0 0 4px var(--ip-accent-soft); }
.industry-preview__classic:hover,
.industry-preview__create:hover { border-color: var(--ip-accent); color: var(--ip-accent); }

.industry-preview__controls { justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.industry-preview__segments { display: inline-flex; padding: 4px; border: 1px solid var(--ip-border); border-radius: 12px; background: var(--ip-panel); }
.industry-preview__segments button,
.industry-preview__filter-button,
.industry-preview__sort-options button,
.industry-preview__chart button { border: 0; cursor: pointer; }
.industry-preview__segments button { min-width: 92px; padding: 9px 17px; border-radius: 8px; background: transparent; color: var(--ip-muted); font-weight: 700; }
.industry-preview__segments button.is-active { background: var(--ip-accent-soft); color: var(--ip-accent); }
.industry-preview__filter-button { padding: 10px 14px; border: 1px solid var(--ip-border); border-radius: 10px; background: var(--ip-panel); color: var(--ip-text); }

.industry-preview__sortbar { gap: 14px; padding: 11px 14px; border: 1px solid var(--ip-border); border-radius: 13px; background: var(--ip-panel); }
.industry-preview__sort-label { color: var(--ip-muted); font-size: 13px; font-weight: 700; }
.industry-preview__sort-options { display: flex; flex: 1; gap: 7px; overflow-x: auto; }
.industry-preview__sort-options button { padding: 7px 12px; border-radius: 999px; background: transparent; color: var(--ip-muted); white-space: nowrap; }
.industry-preview__sort-options button:hover,
.industry-preview__sort-options button.is-active,
.industry-preview__sort-options button.light-green { background: var(--ip-accent-soft) !important; color: var(--ip-accent) !important; }

.industry-preview__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.industry-preview__layout.is-sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
.industry-preview__layout.is-sidebar-hidden .industry-preview__sidebar { display: none; }
.industry-preview__sidebar { position: sticky; top: 72px; max-height: calc(100vh - 90px); padding: 16px; overflow: hidden; border: 1px solid var(--ip-border); border-radius: 15px; background: var(--ip-panel); }
.industry-preview__sidebar-head { justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.industry-preview__sidebar-head strong { display: block; color: var(--ip-text); font-size: 17px; }
.industry-preview__sidebar-head small { color: var(--ip-muted); }
.industry-preview__sidebar-head button { border: 0; background: transparent; color: var(--ip-muted); font-size: 25px; cursor: pointer; }
.industry-preview__search { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--ip-border); border-radius: 9px; background: var(--ip-panel-soft); color: var(--ip-muted); }
.industry-preview__search:focus-within { border-color: var(--ip-accent); box-shadow: 0 0 0 3px var(--ip-accent-soft); }
.industry-preview__search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ip-text); }
.industry-preview__tree { height: calc(100vh - 210px); min-height: 370px; margin-top: 10px; overflow: auto; color: var(--ip-text); }
.industry-preview__tree-loading { padding: 20px 6px; color: var(--ip-muted); }
.industry-preview__tree .jstree-anchor { color: var(--ip-text); }
.industry-preview__tree .jstree-hovered,
.industry-preview__tree .jstree-clicked { border-radius: 5px; background: var(--ip-accent-soft); color: var(--ip-accent); box-shadow: none; }
.industry-preview__tree .jstree-anchor.industry-preview__tree-card-match { border-radius: 6px; background: var(--ip-accent) !important; color: #fff !important; box-shadow: 0 0 0 3px var(--ip-accent-soft) !important; animation: industry-preview-tree-pulse .55s ease-out; }

.industry-preview__main { min-width: 0; }
.industry-preview__overview,
.industry-preview__results { border: 1px solid var(--ip-border); border-radius: 16px; background: var(--ip-panel); box-shadow: 0 12px 34px rgba(2, 8, 23, .06); }
.industry-preview__overview { margin-bottom: 18px; }
.industry-preview__section-head { justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--ip-border); }
.industry-preview__section-head h2 { margin: 0 0 3px; color: var(--ip-text); font-size: 18px; }
.industry-preview__section-head p { font-size: 13px; }
.industry-preview__section-head button { padding: 7px 11px; border: 0; border-radius: 8px; background: var(--ip-panel-soft); color: var(--ip-muted); cursor: pointer; }
.industry-preview__chart { height: 310px; padding: 10px; overflow: hidden; transition: height .2s, padding .2s; }
.industry-preview__chart.is-collapsed { height: 0; padding-top: 0; padding-bottom: 0; }
.industry-preview__chart > div { max-width: 100%; }
.industry-preview__chart-skeleton { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--ip-panel-soft), var(--ip-border), var(--ip-panel-soft)); background-size: 200% 100%; animation: industry-preview-shimmer 1.4s infinite; }

.industry-preview__results { overflow: hidden; }
.industry-preview__grid .chainArticle-table { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; }
.industry-preview__grid .read-more-area { position: static; width: auto; padding: 0 14px 14px; background: none; }
.industry-preview__grid .read-more-text { padding: 10px; border: 1px solid var(--ip-border); border-radius: 10px; background: var(--ip-panel-soft); color: var(--ip-muted); font-size: 14px; }
.industry-preview__grid .chain-card { width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; overflow: hidden; border: 1px solid var(--ip-border) !important; border-radius: 13px; background: var(--ip-panel) !important; box-shadow: none; }
.industry-preview__grid .chain-card:hover { border-color: var(--ip-accent) !important; box-shadow: 0 10px 24px rgba(2, 8, 23, .09); transform: translateY(-1px); }
.industry-preview__grid .chain-card.is-tree-linked { border-color: var(--ip-accent) !important; box-shadow: 0 0 0 2px var(--ip-accent-soft); }
.industry-preview__grid .chain-card-body { background: var(--ip-panel) !important; }
.industry-preview__grid .wrapper { min-width: 0; background: var(--ip-panel) !important; }
.industry-preview__grid .box1 { background: linear-gradient(135deg, var(--ip-accent-soft), transparent) !important; }
.industry-preview__grid .box2 { min-height: 42px; padding: 7px 10px 3px; }
.industry-preview__grid .chain-title-text { color: var(--ip-text); font-size: 16px; font-weight: 800; }
.industry-preview__grid .up-img-area { color: var(--ip-up) !important; }
.industry-preview__grid .down-img-area { color: var(--ip-down) !important; }
.industry-preview__grid .updown-text,
.industry-preview__grid .popularity-text,
.industry-preview__grid .reply-text { color: var(--ip-muted); }
.industry-preview__grid .box3 { min-height: 94px; grid-template-columns: minmax(120px, 1fr) minmax(110px, .8fr) !important; padding: 0 10px; }
.industry-preview__grid .box4 { min-height: 62px; padding: 7px 10px; color: var(--ip-muted); }
.industry-preview__grid .box5,
.industry-preview__grid .box6 { padding-left: 10px; padding-right: 10px; border-top-color: var(--ip-border); }
.industry-preview__grid canvas { max-width: 100% !important; }
.industry-preview__cards-loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; }
.industry-preview__cards-loading i { height: 270px; border-radius: 13px; background: linear-gradient(90deg, var(--ip-panel-soft), var(--ip-border), var(--ip-panel-soft)); background-size: 200% 100%; animation: industry-preview-shimmer 1.4s infinite; }
.industry-preview__error { display: grid; justify-items: center; gap: 7px; padding: 54px 20px; color: var(--ip-muted); text-align: center; }
.industry-preview__error strong { color: var(--ip-text); font-size: 17px; }
.industry-preview__error button { margin-top: 7px; padding: 8px 14px; border: 1px solid var(--ip-border); border-radius: 9px; background: var(--ip-accent-soft); color: var(--ip-accent); cursor: pointer; }
.industry-preview__notice { margin: 13px 2px 0; color: var(--ip-muted); font-size: 12px; text-align: right; }

@keyframes industry-preview-shimmer { to { background-position: -200% 0; } }
@keyframes industry-preview-tree-pulse {
    0% { transform: translateX(-4px); }
    60% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@media (max-width: 1100px) {
    .industry-preview__grid .chainArticle-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .industry-preview__cards-loading { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .industry-preview { width: min(100% - 20px, 1500px); margin-top: 18px; }
    .industry-preview__layout { grid-template-columns: 1fr; }
    .industry-preview__sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1100; width: min(340px, 88vw); max-height: none; border-radius: 0 16px 16px 0; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
    .industry-preview__layout.is-sidebar-hidden .industry-preview__sidebar { display: none; }
    .industry-preview__tree { height: calc(100vh - 130px); }
    .industry-preview__chart { height: 260px; }
}

@media (max-width: 600px) {
    .industry-preview__hero { align-items: flex-start; }
    .industry-preview__hero p,
    .industry-preview__status { display: none; }
    .industry-preview__controls { align-items: stretch; flex-direction: column; }
    .industry-preview__segments { display: flex; }
    .industry-preview__segments button { flex: 1; }
    .industry-preview__sortbar { align-items: flex-start; flex-direction: column; }
    .industry-preview__sort-options { width: 100%; }
    .industry-preview__grid .chainArticle-table,
    .industry-preview__cards-loading { grid-template-columns: 1fr; }
    .industry-preview__section-head { padding: 14px; }
}
