* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #f4f6f8;
  color: #18222f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 14px 12px 36px;
}

.shell {
  max-width: 760px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.auth-panel {
  width: min(100%, 420px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 14px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

h3 {
  margin: 14px 0 8px;
  font-size: 14px;
  color: #334155;
}

.muted,
.metric-line,
.empty {
  margin: 0;
  color: #667085;
}

.padded {
  padding: 14px;
}

.panel,
.section {
  margin: 12px 0;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.panel {
  padding: 14px;
}

.section > summary {
  cursor: pointer;
  padding: 13px 14px;
  font-weight: 700;
  list-style-position: inside;
  background: #eef2f5;
}

.subsection,
.industry-block {
  padding: 12px 14px 16px;
  border-top: 1px solid #e5e9ef;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stack,
.notes-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
button,
.button,
.icon-button {
  font: inherit;
}

input[type="text"],
input[type="password"],
input[name="trade_date"],
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #18222f;
  padding: 10px 11px;
}

textarea {
  min-height: 148px;
  resize: vertical;
  font-weight: 400;
  line-height: 1.55;
}

.primary,
.button,
.icon-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 9px 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.primary {
  width: 100%;
  background: #166534;
  color: #ffffff;
  font-weight: 800;
}

.button,
.icon-button {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1f2937;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.module-label {
  grid-column: 1 / -1;
  color: #334155;
  font-weight: 800;
}

.segmented {
  display: grid;
  gap: 8px;
}

.segmented label,
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #d6dde7;
  border-radius: 7px;
  background: #f8fafc;
  font-weight: 700;
}

.options {
  border: 1px solid #d6dde7;
  border-radius: 7px;
  padding: 10px;
}

.options summary {
  cursor: pointer;
  font-weight: 800;
}

.alert {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid;
  overflow-wrap: anywhere;
}

.success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #085d3a;
}

.warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #7a2e0e;
}

.danger {
  background: #fef3f2;
  border-color: #fecdca;
  color: #912018;
}

.recent-list {
  display: grid;
  gap: 8px;
}

.recent-row {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  text-decoration: none;
  background: #fafafa;
}

.recent-row span {
  font-weight: 800;
}

.recent-row small {
  color: #667085;
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 8px 9px;
  border: 1px solid #e1e6ed;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  background: #f7f9fb;
  color: #334155;
  font-weight: 800;
}

td {
  color: #18222f;
}

.wrap-cell {
  white-space: normal;
  min-width: 260px;
}

.warnings ul {
  margin: 0;
  padding: 12px 18px 16px 34px;
}

.warnings li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .page {
    padding: 10px 8px 26px;
  }

  .topbar {
    align-items: center;
  }

  h1 {
    font-size: 20px;
  }

  .actions,
  .segmented {
    grid-template-columns: 1fr;
  }

  .section,
  .panel {
    margin: 10px 0;
  }

  .section > summary,
  .panel {
    padding: 12px;
  }

  .subsection,
  .industry-block {
    padding: 10px 12px 14px;
  }

  input[type="text"],
  input[type="password"],
  input[name="trade_date"],
  textarea,
  .primary,
  .button,
  .icon-button {
    min-height: 46px;
  }

  textarea {
    min-height: 150px;
  }

  table {
    min-width: 620px;
  }

  th,
  td {
    padding: 7px 8px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .page {
    padding: 12px 10px 30px;
  }

  .actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  textarea {
    min-height: 160px;
  }

  table {
    min-width: 660px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page {
    padding: 16px 16px 40px;
  }

  .shell {
    max-width: 860px;
  }

  .segmented,
  .actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .report-page > .topbar,
  .report-page > .alert,
  .report-page > .actions,
  .report-page > .notes-section,
  .report-page > .stock-section {
    grid-column: 1 / -1;
  }

  .report-page > .section {
    margin: 0;
  }

  .notes-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .notes-form .check,
  .notes-form .primary {
    grid-column: 1 / -1;
  }

  textarea {
    min-height: 170px;
  }

  table {
    min-width: 640px;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 18px 20px 46px;
  }

  .shell {
    max-width: 940px;
  }

  .segmented,
  .actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: start;
    gap: 14px;
  }

  .report-page > .topbar,
  .report-page > .alert,
  .report-page > .actions,
  .report-page > .notes-section,
  .report-page > .stock-section {
    grid-column: 1 / -1;
  }

  .report-page > .index-section {
    grid-column: span 2;
  }

  .report-page > .industry-section {
    grid-column: span 2;
  }

  .report-page > .quality-section,
  .report-page > .warnings-section {
    grid-column: span 1;
  }

  .report-page > .section {
    margin: 0;
  }

  .notes-form {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
  }

  .notes-form .check,
  .notes-form .primary {
    grid-column: 1 / -1;
  }

  textarea {
    min-height: 190px;
  }

table {
    min-width: 720px;
  }
}

/* Index page: scoped responsive layout. */
.home-body {
  background: #f1e6d8;
  color: #28314e;
}

.home-page {
  width: min(100%, 1240px);
  color: #28314e;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 16px;
}

.home-header h1 {
  color: #28314e;
  font-size: 28px;
}

.home-eyebrow,
.home-kicker {
  margin: 0 0 4px;
  color: #7a5a55;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-layout {
  display: grid;
  gap: 14px;
}

.home-card {
  border: 1px solid #d7c8b8;
  border-radius: 8px;
  background: #fffaf4;
  box-shadow: 0 1px 0 rgba(40, 49, 78, 0.05);
}

.home-action-card,
.home-archive-card {
  padding: 16px;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-section-head h2 {
  color: #28314e;
  font-size: 19px;
}

.home-form {
  display: grid;
  gap: 12px;
}

.home-field {
  display: grid;
  gap: 7px;
  color: #28314e;
  font-weight: 800;
}

.home-field input {
  min-height: 48px;
  width: 100%;
  border: 1px solid #d5c4b4;
  border-radius: 8px;
  background: #fffdf9;
  color: #28314e;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
}

.home-options {
  display: grid;
  gap: 9px;
}

.home-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
  border: 1px solid #decfc0;
  border-radius: 8px;
  background: #fffdf9;
  padding: 11px 12px;
  cursor: pointer;
}

.home-option input {
  margin-top: 4px;
  accent-color: #aa2b3a;
}

.home-option strong,
.archive-date {
  color: #28314e;
}

.home-option small {
  display: block;
  margin-top: 2px;
  color: #6d7285;
  font-size: 13px;
  line-height: 1.45;
}

.home-option-primary {
  border-color: rgba(170, 43, 58, 0.45);
  background: #fff8f4;
}

.home-option-primary strong {
  color: #aa2b3a;
}

.home-advanced {
  border: 1px solid #decfc0;
  border-radius: 8px;
  background: #fbf3ea;
  padding: 10px 11px;
}

.home-advanced summary {
  cursor: pointer;
  color: #28314e;
  font-weight: 800;
}

.home-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 8px;
  color: #4f5874;
  font-weight: 700;
}

.home-check input {
  accent-color: #aa2b3a;
}

.home-primary-button,
.home-ghost-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.home-primary-button {
  width: 100%;
  border: 1px solid #aa2b3a;
  background: #aa2b3a;
  color: #fffaf4;
}

.home-ghost-button {
  border: 1px solid #d5c4b4;
  background: #fffaf4;
  color: #28314e;
}

.home-alert {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid;
  overflow-wrap: anywhere;
}

.home-success {
  background: #f8f4e8;
  border-color: #cabd9e;
  color: #28314e;
}

.home-warning {
  background: #fff4df;
  border-color: #dfbf80;
  color: #6f491c;
}

.home-danger {
  background: #fff1f0;
  border-color: rgba(170, 43, 58, 0.35);
  color: #8f1f2f;
}

.archive-list {
  display: grid;
  gap: 9px;
}

.archive-month {
  border: 1px solid #decfc0;
  border-radius: 8px;
  background: #fffdf9;
  overflow: hidden;
}

.archive-month summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
  color: #28314e;
  font-weight: 900;
  background: #fbf3ea;
}

.archive-dates {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.archive-date {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid #eaded2;
  border-radius: 7px;
  background: #fffaf4;
  padding: 9px 11px;
  text-decoration: none;
  font-weight: 900;
}

.home-empty {
  margin: 0;
  color: #6d7285;
}

@media (max-width: 480px) {
  .home-page {
    padding: 10px 8px 24px;
  }

  .home-header {
    align-items: center;
    padding-bottom: 12px;
  }

  .home-header h1 {
    font-size: 23px;
  }

  .home-action-card,
  .home-archive-card {
    padding: 12px;
  }

  .home-option {
    min-height: 58px;
    padding: 10px;
  }

  .home-option small {
    font-size: 12px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .home-page {
    padding: 12px 10px 28px;
  }

  .home-option {
    min-height: 60px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-page {
    padding: 18px 22px 40px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .home-page {
    padding: 20px 28px 48px;
  }

  .home-layout {
    grid-template-columns: minmax(520px, 1.25fr) minmax(360px, 0.75fr);
    align-items: start;
    gap: 18px;
  }

  .home-action-card,
  .home-archive-card {
    padding: 18px;
  }
}

/* Report app page. */
.report-body {
  background: #f1e6d8;
  color: #28314e;
}

.report-page {
  width: min(100%, 1360px);
  display: block;
  color: #28314e;
}

.report-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px 14px;
}

.report-topbar h1 {
  color: #28314e;
  font-size: 28px;
}

.report-eyebrow {
  margin: 0 0 4px;
  color: #7a5a55;
  font-size: 12px;
  font-weight: 900;
}

.report-home {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5c4b4;
  border-radius: 8px;
  background: #fffaf4;
  color: #28314e;
  padding: 8px 13px;
  text-decoration: none;
  font-weight: 800;
}

.report-form {
  display: contents;
}

.report-section {
  margin: 12px 0;
  border: 1px solid #d7c8b8;
  border-radius: 8px;
  background: #fffaf4;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(40, 49, 78, 0.04);
}

.report-section-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eaded2;
  background: #fbf3ea;
  padding: 11px 13px;
}

.report-section-title h2 {
  margin: 0;
  color: #28314e;
  font-size: 18px;
}

.report-section-title span {
  color: #7a5a55;
  font-size: 12px;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.news-item {
  border: 1px solid #eaded2;
  border-radius: 8px;
  background: #fffdf9;
  padding: 11px 12px;
}

.news-item h3 {
  margin: 0 0 5px;
  color: #28314e;
  font-size: 15px;
}

.news-item p {
  margin: 0;
  color: #4f5874;
}

.news-item small {
  display: block;
  margin-top: 6px;
  color: #7a5a55;
}

.report-table {
  min-width: 0;
  width: 100%;
  background: #fffdf9;
  table-layout: auto;
}

.report-table th,
.report-table td {
  border-color: #eaded2;
  color: #28314e;
  padding: 7px 8px;
  font-size: 14px;
}

.report-table th {
  background: #fbf3ea;
  color: #28314e;
}

.index-table {
  min-width: 660px;
}

.industry-grid {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.mini-table-card {
  border: 1px solid #eaded2;
  border-radius: 8px;
  background: #fffdf9;
  overflow: hidden;
}

.mini-table-card h3 {
  margin: 0;
  border-bottom: 1px solid #eaded2;
  background: #fff8f4;
  color: #aa2b3a;
  padding: 9px 10px;
  font-size: 14px;
}

.compact-table {
  min-width: 0;
}

.industry-table {
  table-layout: fixed;
}

.industry-table th,
.industry-table td {
  padding: 6px 6px;
  font-size: 13px;
}

.industry-table .industry-col-name {
  width: 27%;
}

.industry-table .industry-col-pct {
  width: 16%;
}

.industry-table .industry-col-amount {
  width: 18%;
}

.industry-table .industry-col-ratio,
.industry-table .industry-col-turnover {
  width: 19.5%;
}

.industry-table th:nth-child(n + 2),
.industry-table td:nth-child(n + 2) {
  text-align: right;
}

.note-section {
  padding-bottom: 12px;
}

.note-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  font-weight: 700;
}

.note-card span {
  color: #6d7285;
  font-size: 13px;
}

.note-card textarea {
  min-height: 42px;
  border-color: #d5c4b4;
  background: #fffdf9;
  color: #28314e;
  font-weight: 400;
  overflow: hidden;
}

.note-save-button {
  justify-self: end;
  min-height: 40px;
  border: 1px solid #aa2b3a;
  border-radius: 8px;
  background: #aa2b3a;
  color: #fffaf4;
  padding: 8px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.stock-industry {
  padding: 12px;
  border-top: 1px solid #eaded2;
}

.stock-industry:first-of-type {
  border-top: 0;
}

.stock-industry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stock-industry-head h3 {
  margin: 0;
  color: #28314e;
  font-size: 16px;
}

.stock-industry-head span {
  color: #aa2b3a;
  font-weight: 900;
}

.stock-table-grid {
  display: grid;
  gap: 10px;
}

.stock-table-grid h4 {
  margin: 0 0 6px;
  color: #4f5874;
  font-size: 13px;
}

.stock-table,
.amount-leaders-table {
  min-width: 500px;
}

.stock-table {
  table-layout: fixed;
}

.stock-table th,
.stock-table th:nth-child(1)::before {
  content: "\540D\79F0";
}

.stock-table th:nth-child(2)::before {
  content: "\6DA8\8DCC\5E45";
}

.stock-table th:nth-child(3)::before {
  content: "\6210\4EA4\989D";
}

.stock-table th:nth-child(4)::before {
  content: "\989D\53D8\7387";
}

.stock-table th:nth-child(5)::before {
  content: "\6362\624B\7387";
}

.stock-table td {
  padding: 6px 6px;
  font-size: 13px;
}

.stock-table th {
  font-size: 0 !important;
  white-space: nowrap;
}

.stock-table th::before {
  color: #28314e;
  font-size: 13px;
  font-weight: 900;
}

.stock-table th:nth-child(1)::before {
  content: "名称";
}

.stock-table th:nth-child(2)::before {
  content: "涨跌幅";
}

.stock-table th:nth-child(3)::before {
  content: "成交额";
}

.stock-table th:nth-child(4)::before {
  content: "额变率";
}

.stock-table th:nth-child(5)::before {
  content: "换手率";
}

.stock-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-table .stock-col-name {
  width: 34%;
}

.stock-table .stock-col-pct,
.stock-table .stock-col-amount,
.stock-table .stock-col-ratio,
.stock-table .stock-col-turnover {
  width: 16.5%;
}

.stock-table th:nth-child(n + 2),
.stock-table td:nth-child(n + 2) {
  text-align: right;
}

.save-panel {
  margin: 12px 0;
  border: 1px solid rgba(170, 43, 58, 0.38);
  border-radius: 8px;
  background: #fffaf4;
  padding: 12px;
}

.report-check {
  border-color: #eaded2;
  background: #fffdf9;
  color: #28314e;
}

.report-check input {
  accent-color: #aa2b3a;
}

.report-save-button {
  margin-top: 10px;
  background: #aa2b3a;
  color: #fffaf4;
}

.save-status {
  margin: 8px 0 0;
  color: #6d7285;
  font-size: 13px;
}

.save-status.dirty {
  color: #8f1f2f;
  font-weight: 800;
}

.more-actions {
  color: #28314e;
}

.more-actions summary {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 13px;
  background: #fbf3ea;
  font-weight: 900;
}

.download-links {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.download-links .button {
  background: #fffdf9;
  border-color: #d5c4b4;
  color: #28314e;
}

.data-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  border: 1px solid #d7c8b8;
  border-radius: 8px;
  background: #fbf3ea;
  color: #28314e;
  padding: 10px 12px;
}

.data-status span {
  font-weight: 900;
}

.data-status small {
  color: #7a5a55;
}

@media (max-width: 480px) {
  .report-page {
    padding: 10px 8px 90px;
  }

  .report-topbar {
    align-items: center;
    padding-bottom: 10px;
  }

  .report-topbar h1 {
    font-size: 23px;
  }

  .report-section {
    margin: 10px 0;
  }

  .report-section-title {
    min-height: 44px;
    padding: 10px 11px;
  }

  .report-section-title h2 {
    font-size: 16px;
  }

  .news-list,
  .industry-grid,
  .note-card,
  .stock-industry {
    padding: 10px;
  }

  .index-table {
    min-width: 640px;
  }

  .stock-industry-head {
    display: grid;
  }

  .stock-table-grid {
    grid-template-columns: 1fr;
  }

  .stock-table,
  .amount-leaders-table {
    min-width: 440px;
  }

  .stock-table th,
  .stock-table td {
    padding: 6px 5px;
    font-size: 12px;
  }

  .stock-table .stock-col-name {
    width: 32%;
  }

  .stock-table .stock-col-pct,
  .stock-table .stock-col-amount,
  .stock-table .stock-col-ratio,
  .stock-table .stock-col-turnover {
    width: 17%;
  }

  .note-save-button {
    width: 100%;
  }

  .save-panel {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 10px -8px 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 20px rgba(40, 49, 78, 0.12);
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .report-page {
    padding: 12px 10px 92px;
  }

  .industry-grid,
  .stock-table-grid {
    grid-template-columns: 1fr;
  }

  .stock-table,
  .amount-leaders-table {
    min-width: 460px;
  }

  .stock-table th,
  .stock-table td {
    padding: 6px 5px;
    font-size: 12.5px;
  }

  .note-save-button {
    width: 100%;
  }

  .save-panel {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 10px -10px 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -8px 20px rgba(40, 49, 78, 0.12);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .report-page {
    padding: 18px 22px 44px;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-table-grid {
    grid-template-columns: 1fr;
  }

  .stock-table,
  .amount-leaders-table {
    min-width: 560px;
  }

  .stock-table th,
  .stock-table td {
    padding: 6px 5px;
    font-size: 12px;
  }

  .stock-table .stock-col-name {
    width: 30%;
  }

  .stock-table .stock-col-pct,
  .stock-table .stock-col-amount,
  .stock-table .stock-col-ratio,
  .stock-table .stock-col-turnover {
    width: 17.5%;
  }
}

@media (min-width: 1024px) {
  .report-page {
    padding: 20px 28px 50px;
  }

  .industry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stock-table-grid {
    grid-template-columns: 1fr;
  }

  .stock-table,
  .amount-leaders-table {
    min-width: 560px;
  }

  .save-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 10px 14px;
  }

  .report-save-button {
    margin-top: 0;
  }

  .save-status {
    grid-column: 1 / -1;
  }

  .download-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .stock-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-table,
  .amount-leaders-table {
    min-width: 0;
  }
}
