.scr-page .page-header-sub { max-width: 52rem; }
.scr-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.scr-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.scr-tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scr-params, .scr-sectors {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  margin-bottom: 12px;
}
.scr-field { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--ink3); }
.scr-field input, .scr-field select {
  font: inherit; font-size: 13px; color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 6px; background: #fff; width: 7.2rem;
  box-sizing: border-box;
}
.scr-field select { width: 11rem; }
.scr-sec-name { display: flex; flex-direction: column; }
.scr-sec-eff { color: var(--ink3); }
.scr-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.scr-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; min-width: 8rem;
}
.scr-stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.scr-stat span { font-size: 11px; color: var(--ink3); }
.scr-scroll { overflow-x: auto; }
.scr-table { font-size: 12px; white-space: nowrap; }
.scr-table input[type="number"], .scr-table input[type="text"] {
  width: 5.6rem; font: inherit; font-size: 12px;
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 4px;
}
.scr-table tr.is-in td { background: #eef8f1; }
.scr-table .scr-card, .scr-table .scr-card-hd { display: none; }
.scr-note { font-size: 12px; color: var(--ink3); margin-top: 10px; max-width: 48rem; }
.scr-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.scr-warn { color: #9a3412; }
.scr-sort { display: none; }
.is-up { color: #157347; }
.is-down { color: #9a3412; }

@media (max-width: 767px) {
  .scr-page .page-header { flex-wrap: wrap; align-items: flex-start; }
  .scr-page .page-header > div { flex: 1 1 100%; min-width: 0; }
  .scr-page .page-header-sub { line-height: 1.35; }
  .scr-page .page-header-acts { width: 100%; margin-left: 0; }
  .scr-page .page-header-acts .btn { flex: 1; min-height: 40px; }

  .scr-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .scr-tab { min-height: 36px; padding: 6px 4px; }

  .scr-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .scr-stat { min-width: 0; }

  .scr-params { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .scr-params .scr-field input, .scr-params .scr-field select { width: 100%; min-height: 36px; }

  .scr-sectors { display: flex; flex-direction: column; gap: 0; }
  .scr-sec {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 10px; width: 100%; padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .scr-sec-name { min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
  .scr-sec-eff { font-size: 11px; font-weight: 400; }
  .scr-sec input { width: 5.2rem; min-height: 36px; flex-shrink: 0; }

  .scr-add { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .scr-add .scr-span { grid-column: 1 / -1; }
  .scr-add .scr-field input, .scr-add .scr-field select { width: 100%; min-height: 36px; }
  .scr-add .btn { min-height: 44px; }

  .scr-sort {
    display: flex; align-items: end; gap: 8px;
    padding: 10px 12px 0;
  }
  .scr-sort .scr-field { flex: 1; min-width: 0; }
  .scr-sort select { width: 100%; min-height: 36px; }
  .scr-sort .btn { min-height: 36px; width: 44px; padding: 0; }

  .table-card.scr-scroll { overflow: hidden; }
  .txn-table.scr-table { white-space: normal; }
  .txn-table.scr-table tbody tr {
    display: flex; align-items: stretch;
    grid-template-columns: none; grid-template-rows: none;
    gap: 0; padding: 0;
  }
  .txn-table.scr-table tbody td:not(.scr-card) { display: none !important; }
  .txn-table.scr-table tbody td.scr-card {
    display: block !important; flex: 1; min-width: 0;
    padding: 10px 12px !important; border: none !important;
    white-space: normal;
  }
  .txn-table.scr-table tr.is-in td.scr-card { background: #eef8f1; }

  .scr-m summary, .scr-m-top {
    display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  }
  .scr-m summary::-webkit-details-marker { display: none; }
  .scr-m summary::after {
    content: ""; width: 7px; height: 7px; flex-shrink: 0;
    border-right: 1.5px solid var(--ink3); border-bottom: 1.5px solid var(--ink3);
    transform: rotate(45deg); margin-top: -3px;
  }
  .scr-m[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
  .scr-m-name {
    flex: 1; min-width: 0; font-weight: 600; color: var(--ink); font-size: 15px;
  }
  .scr-m-name span {
    display: block; margin-top: 1px; font-weight: 400; font-size: 12px; color: var(--ink3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .scr-m-amt {
    flex-shrink: 0; font-weight: 600; font-size: 14px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .scr-m-sub { margin-top: 6px; font-size: 12px; color: var(--ink2); line-height: 1.35; }
  .scr-m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .scr-m-grid .scr-field input { width: 100%; min-height: 36px; }
  .scr-lock { flex-direction: row; align-items: center; justify-content: space-between; min-height: 36px; }
  .scr-m-del { margin-top: 8px; }
}
