/* 板块看盘工作台：窄卡片、多列网格、行情优先且保留完整操作。 */

#view-sectors .feature-intro {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #d7e8e0;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3faf6, #fffdf7);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.linkage-guide {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #d9e6e1;
  border-left: 3px solid var(--green);
  background: #f8fcfa;
}
.linkage-guide-heading { display: flex; align-items: center; gap: 12px; }
.linkage-guide-heading > div { min-width: 0; flex: 1; }
.linkage-guide-heading h3 { margin: 0 0 3px; color: var(--ink); font-size: 16px; }
.linkage-guide-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.linkage-guide-heading .button { flex: 0 0 auto; white-space: nowrap; }
.linkage-guide .guide-index { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; padding: 4px 7px; color: var(--green-dark); background: #e6f3ed; font-size: 11px; font-weight: 700; }
.linkage-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.linkage-steps li { display: flex; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface); }
.linkage-steps li.is-current { border-color: #9bd0bd; background: #f1faf5; }
.linkage-steps b { color: var(--green-dark); font-size: 11px; }
.linkage-steps span { display: grid; gap: 3px; min-width: 0; }
.linkage-steps strong { color: var(--ink); font-size: 12px; }
.linkage-steps small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.flow-linkage-guide { margin-bottom: 12px; background: #fffdf7; border-left-color: #bd7900; }
.flow-linkage-guide .guide-index { color: #9a6200; background: #fff1d2; }
.flow-linkage-guide .linkage-steps li.is-current { border-color: #e7c675; background: #fff9eb; }
.flow-theme-field { display: grid; gap: 3px; min-width: 115px; }
.flow-theme-field small { color: var(--muted); font-size: 10px; }
.onboarding-panel { margin: 0 0 14px; border: 1px solid #cfe4d9; background: #f5fbf7; }
.onboarding-panel.is-complete { border-color: #dce8e2; background: #fbfdfc; }
.onboarding-panel.is-complete .onboarding-current { padding-top: 10px; padding-bottom: 10px; }
.onboarding-panel.is-complete .onboarding-copy strong { font-size: 13px; }
.onboarding-panel.is-complete .onboarding-copy p { font-size: 11px; }
.onboarding-current { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.onboarding-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 48px; min-height: 42px; color: var(--green-dark); background: #dff2e8; font-size: 12px; font-weight: 800; }
.onboarding-copy { min-width: 0; flex: 1; }
.onboarding-copy strong { display: block; color: var(--ink); font-size: 15px; }
.onboarding-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.onboarding-progress { display: flex; justify-content: space-between; gap: 10px; padding: 8px 16px; border-top: 1px solid #dcece3; color: var(--muted); font-size: 11px; }
#view-market-flow .onboarding-panel { border-color: #ead9af; background: #fffaf0; }
#view-market-flow .onboarding-number { color: #966000; background: #ffedc3; }
#view-market-flow .onboarding-progress { border-top-color: #f0dfb8; }

/* 2026-08-24: compact market-flow view and sector flow summaries */
.sector-flow-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.sector-flow-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--canvas);
}
.sector-flow-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.sector-flow-summary strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.sector-flow-summary small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.flow-status { border-color: #bfdbfe; background: #eff6ff; }
.subdivision-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.subdivision-flow { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.subdivision-flow.positive { color: var(--red); }
.subdivision-flow.negative { color: var(--green-dark); }

.market-flow-container { display: grid; gap: 12px; }
.flow-control-bar, .flow-state-strip, .flow-theme, .flow-sector { border: 1px solid var(--line); background: var(--surface); }
.flow-control-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 15px 17px; }
.flow-control-bar h3 { margin: 2px 0 4px; font-size: 20px; }
.flow-control-bar p { margin: 0; color: var(--muted); font-size: 12px; }
.flow-toolbar { display: flex; gap: 8px; flex-shrink: 0; }
.flow-state-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.flow-state-strip > div { display: grid; gap: 4px; min-width: 0; padding: 12px 14px; background: var(--surface); }
.flow-state-strip span { color: var(--muted); font-size: 12px; }
.flow-state-strip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-variant-numeric: tabular-nums; }
.flow-theme-list { display: grid; gap: 8px; }
.flow-theme { overflow: hidden; }
.flow-theme-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 64px; padding: 9px 13px; border-left: 4px solid var(--theme-color); }
.flow-theme-toggle { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.theme-chevron { width: 16px; color: var(--muted); font-size: 22px; line-height: 1; }
.theme-color-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--theme-color); }
.theme-name { display: grid; min-width: 0; gap: 3px; }
.theme-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.theme-name small { color: var(--muted); font-size: 11px; }
.flow-theme-metrics { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; min-width: 145px; text-align: right; }
.flow-theme-metrics strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.flow-theme-metrics span { font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-theme-metrics small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.flow-theme-actions { display: flex; gap: 4px; }
.flow-theme-body { display: grid; gap: 8px; padding: 0 10px 10px; background: #f8fafc; }
.flow-sector { overflow: hidden; }
.flow-sector-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.flow-sector-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.flow-sector-title > div { display: grid; min-width: 0; gap: 3px; }
.flow-sector-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-sector-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.flow-sector-metrics { display: flex; gap: 13px; }
.flow-sector-metrics span { display: grid; gap: 2px; min-width: 72px; text-align: right; }
.flow-sector-metrics small { color: var(--muted); font-size: 10px; }
.flow-sector-metrics b { font-size: 13px; font-variant-numeric: tabular-nums; }
.flow-sector-actions { display: flex; align-items: center; gap: 6px; }
.flow-sector-actions select { max-width: 115px; min-height: 30px; padding: 3px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12px; }
.flow-subdivision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 9px; }
.flow-subdivision { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.flow-subdivision > header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: baseline; padding: 8px 9px; border-bottom: 1px solid var(--line); }
.flow-subdivision > header span, .flow-subdivision > header small { color: var(--muted); font-size: 11px; }
.flow-subdivision > header b { font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-member-table { overflow-x: auto; }
.flow-member-head, .flow-member-row { display: grid; grid-template-columns: minmax(130px, 1.5fr) 70px minmax(90px, 1fr) 65px; gap: 8px; align-items: center; min-width: 390px; padding: 7px 9px; }
.flow-member-head { color: var(--muted); font-size: 10px; }
.flow-member-row { border-top: 1px solid #eef2f7; font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-member-row > span:not(:first-child) { text-align: right; }
.flow-member-row > span:first-child { display: grid; min-width: 0; gap: 2px; }
.flow-member-row strong, .flow-member-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-member-row small { color: var(--muted); font-size: 10px; }
.flow-binding-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.flow-binding-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e40af; font-size: 11px; }
.flow-binding-chip button { padding: 0 2px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.flow-empty, .flow-empty-inline, .flow-loading { color: var(--muted); }
.flow-empty { display: grid; gap: 6px; justify-items: center; padding: 30px 16px; border: 1px dashed var(--line); background: var(--surface); text-align: center; }
.flow-empty strong { color: var(--ink); }
.flow-empty-inline { margin: 0; padding: 14px; font-size: 12px; }
.flow-modal { width: min(560px, calc(100vw - 28px)); }
.flow-board-results { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.flow-board-result { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.flow-board-result:hover { border-color: #93c5fd; background: #eff6ff; }
.flow-board-result > span:first-child { display: grid; min-width: 0; gap: 3px; }
.flow-board-result small { color: var(--muted); font-size: 11px; }
.flow-board-result > span:last-child { display: grid; gap: 2px; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 840px) {
  .linkage-guide-heading { align-items: stretch; flex-wrap: wrap; }
  .linkage-guide-heading > div { flex-basis: calc(100% - 80px); }
  .linkage-guide-heading .button { margin-left: 74px; }
  .linkage-steps { grid-template-columns: 1fr; }
  .onboarding-current { align-items: stretch; flex-wrap: wrap; }
  .onboarding-copy { flex-basis: calc(100% - 65px); }
  .onboarding-current > .button { margin-left: 60px; }
  .onboarding-progress { flex-direction: column; }
  .flow-control-bar { align-items: stretch; flex-direction: column; }
  .flow-toolbar { justify-content: flex-end; }
  .flow-state-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-theme-header { grid-template-columns: minmax(0, 1fr) auto; }
  .flow-theme-metrics { grid-column: 1 / 2; grid-row: 2; justify-self: start; text-align: left; }
  .flow-theme-actions { grid-column: 2; grid-row: 1 / span 2; }
  .flow-sector-header { grid-template-columns: minmax(0, 1fr) auto; }
  .flow-sector-metrics { grid-column: 1 / -1; justify-content: space-between; }
  .flow-sector-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .flow-subdivision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sector-flow-summary { grid-template-columns: 1fr; }
  .sector-flow-summary > div { grid-template-columns: minmax(0, 1fr) auto; }
  .sector-flow-summary small { grid-column: 2; grid-row: 2; }
  .flow-toolbar .button { flex: 1; }
}

#view-sectors .feature-intro h3 { margin-bottom: 5px; color: var(--ink); font-size: 17px; }
#view-sectors .feature-intro ul { margin: 6px 0; padding-left: 19px; }
#view-sectors .feature-intro li + li { margin-top: 3px; }
#view-sectors .feature-intro .tip { margin: 7px 0 0; color: var(--green-dark); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  align-items: start;
}

.sector-quote-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.sector-quote-status strong { color: var(--ink); }
.sector-quote-status.warning { border-color: #f0d49b; background: #fffaf0; }
.sector-quote-status.error { border-color: #edc3c6; background: #fff7f7; color: var(--red); }

.sector-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sector-color, var(--green));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(23, 33, 43, .05);
}

.sector-header {
  display: grid;
  gap: 9px;
  padding: 11px 12px 9px;
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(180deg, #ffffff, #fbfcfc);
}
.sector-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sector-title { min-width: 0; }
.sector-title-line {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.sector-heading h3 { min-width: 0; overflow: hidden; color: var(--ink); font-size: 17px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sector-heading small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sector-color-dot { flex: 0 0 auto; width: 4px; height: 32px; border-radius: 99px; background: var(--sector-color, var(--green)); }
.sector-count {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.sector-actions, .subdivision-actions, .stock-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.sector-actions { justify-content: flex-start; gap: 4px; }

.icon-btn, .text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.icon-btn:hover, .text-action:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.icon-btn.tiny { min-width: 26px; min-height: 25px; padding: 4px 5px; font-size: 11px; }
.compact-icon { min-width: 26px; padding-inline: 5px; }
.compact-label { min-height: 26px; padding-inline: 6px; font-size: 11px; }
.icon-btn.danger:hover, .text-action.danger:hover { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.icon-btn:disabled, .text-action:disabled { opacity: .35; cursor: not-allowed; }

.sector-market-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--soft-line);
  background: #f7faf9;
}
.sector-average { min-width: 0; display: grid; gap: 1px; }
.sector-average span { color: var(--muted); font-size: 10px; line-height: 1.2; }
.sector-average strong { font-size: 16px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sector-average .positive, .sector-tally .positive { color: var(--red); }
.sector-average .negative, .sector-tally .negative { color: var(--green-dark); }
.sector-average .neutral, .sector-tally .neutral { color: var(--muted); }
.sector-tally { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; line-height: 1.2; white-space: nowrap; }
.sector-tally b { margin-right: 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.sector-quote-count { padding-left: 7px; border-left: 1px solid var(--line); }

.sector-content { display: grid; gap: 6px; padding: 7px 8px 8px; background: #fbfcfd; }
.subdivision-group { min-width: 0; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 6px; background: var(--surface); }
.subdivision-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px; background: #f4f7f6; }
.subdivision-title { min-width: 0; display: flex; align-items: center; gap: 6px; }
.subdivision-marker { flex: 0 0 auto; width: 3px; height: 14px; border-radius: 99px; background: var(--sector-color, var(--green)); }
.subdivision-header h4 { overflow: hidden; color: var(--green-dark); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.subdivision-header h4 small { display: inline-grid; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 3px; place-items: center; border-radius: 4px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; vertical-align: middle; }
.subdivision-actions { justify-content: flex-end; flex: 0 0 auto; gap: 2px; }
.subdivision-actions .text-action { min-height: 24px; padding: 3px 5px; border-color: transparent; background: transparent; color: var(--muted); font-size: 11px; }

.stock-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(84px, auto);
  gap: 7px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.stock-list-head span:nth-child(2) { text-align: right; }
.stock-list-head span:nth-child(3) { text-align: center; }
.stock-list { display: grid; gap: 0; }
.stock-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(84px, auto);
  grid-template-areas:
    "info price actions"
    "sub sub actions";
  align-items: center;
  gap: 5px 7px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--soft-line);
  background: var(--surface);
}
.stock-item:last-child { border-bottom: 0; }
.stock-item:hover { border-color: #b9d9cb; background: #f6fbf8; }
.stock-info { grid-area: info; min-width: 0; display: grid; gap: 0; }
.stock-info strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stock-info small, .stock-price small { color: var(--muted); font-size: 10.5px; line-height: 1.25; }
.stock-price { grid-area: price; min-width: 0; display: grid; gap: 0; text-align: right; white-space: nowrap; }
.stock-price strong { font-size: 13.5px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stock-price .positive { color: var(--red); }
.stock-price .negative { color: var(--green-dark); }
.stock-price .neutral { color: var(--muted); }
.member-subdivision { grid-area: sub; min-width: 0; }
.member-subdivision select { width: 100%; min-width: 0; min-height: 25px; padding: 3px 6px; border-radius: 4px; font-size: 11px; }
.stock-actions { grid-area: actions; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: center; justify-content: stretch; min-width: 84px; gap: 3px; }
.stock-actions .icon-btn.tiny, .stock-actions .text-action { width: 100%; min-width: 0; min-height: 25px; padding: 3px; font-size: 10px; }
.stock-actions .text-action { border: 1px solid var(--soft-line); background: var(--surface); color: var(--muted); }
.empty-sector, .empty-subdivision { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-subdivision { padding: 8px; font-size: 11px; }
.sector-card > .empty-sector { padding: 10px 12px 12px; border-top: 1px solid var(--soft-line); }

.sector-modal { width: min(620px, 100%); }
.color-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.field-label { font-size: 15px; font-weight: 700; }
.color-picker { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; }
.color-swatch { width: 34px; height: 34px; border: 3px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.color-swatch.active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px white; }
.color-field input[type="color"] { width: 48px; min-height: 40px; padding: 3px; }

.stock-picker { position: relative; }
.search-loading, .search-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 14px; }
.search-empty.error { color: var(--red); }
.search-result { align-items: center; min-height: 50px; padding: 9px 12px; }
.search-result span { display: grid; gap: 2px; }
.search-result strong { font-size: 14px; }
.search-result small { font-size: 12px; }
.field-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.intraday-modal { width: min(850px, 100%); }
.intraday-content { padding: 20px 22px 24px; }
.intraday-chart-wrap { overflow-x: auto; border: 1px solid var(--soft-line); border-radius: 8px; background: #fbfdfc; }
.intraday-chart { display: block; width: 100%; min-width: 620px; height: auto; }
.chart-grid { stroke: #dce8e2; stroke-width: 1; stroke-dasharray: 4 5; }
.chart-line { stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-label { fill: var(--muted); font-size: 12px; }
.chart-source { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.chart-empty { min-height: 150px; display: grid; place-content: center; gap: 7px; text-align: center; color: var(--muted); }
.chart-empty strong { color: var(--ink); font-size: 17px; }
.chart-empty.error strong { color: var(--red); }

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

@media (max-width: 620px) {
  #view-sectors .feature-intro { margin-bottom: 10px; padding: 12px 13px; }
  .sectors-grid { grid-template-columns: 1fr; gap: 8px; }
  .sector-header { padding: 10px 10px 8px; }
  .sector-actions { justify-content: flex-start; }
  .sector-market-summary { align-items: flex-start; flex-direction: column; gap: 5px; padding: 7px 10px; }
  .sector-tally { justify-content: flex-start; }
  .sector-content { padding: 6px; }
  .stock-list-head { display: none; }
  .stock-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info price"
      "sub sub"
      "actions actions";
    gap: 5px 7px;
    padding: 7px;
  }
  .member-subdivision, .stock-actions { min-width: 0; }
  .member-subdivision select { max-width: 240px; }
  .stock-actions { display: flex; grid-template-columns: none; justify-content: flex-start; }
  .stock-actions .icon-btn.tiny, .stock-actions .text-action { width: auto; min-width: 26px; padding-inline: 6px; }
}
