:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  --bg: #eef3f8;
  --panel: rgba(255, 255, 255, 0.93);
  --text: #101827;
  --muted: #64748b;
  --line: #dbe5ee;
  --red: #e13d4f;
  --green: #0c9b6a;
  --blue: #2563eb;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --amber: #b7791f;
  --shadow: 0 18px 42px rgba(17, 32, 51, 0.12);
  --shadow-soft: 0 8px 22px rgba(17, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), transparent 32%),
    linear-gradient(225deg, rgba(225, 61, 79, 0.10), transparent 30%),
    linear-gradient(315deg, rgba(8, 145, 178, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  font-weight: 780;
}

#subtitle {
  margin-top: 6px;
  color: #c8d7ea;
  font-size: 14px;
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

#accountState {
  color: #dbeafe;
  font-size: 13px;
}

button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  color: #122033;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(17, 32, 51, 0.08);
  font-weight: 650;
}

button:hover {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

main {
  padding: 22px 28px 92px;
}

.app-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(219, 229, 238, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 32, 51, 0.98), rgba(37, 99, 235, 0.82)),
    #112033;
  color: #fff;
  box-shadow: var(--shadow);
}

.app-hero b {
  display: block;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.app-hero h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.app-hero p {
  color: #dbeafe;
  line-height: 1.55;
}

.app-hero button {
  min-width: 126px;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.rule-strip div {
  position: relative;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.9));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.rule-strip div::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.rule-strip b {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rule-strip span {
  font-size: 20px;
  font-weight: 720;
}

.rule-input {
  width: 100%;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 20px;
  font-weight: 720;
  padding: 0 8px;
}

.rule-input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  outline: none;
  background: #fff;
}

.starter-panel {
  margin-bottom: 18px;
}

.starter-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.starter-chip,
.sector-card {
  display: grid;
  gap: 4px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.starter-chip {
  min-width: 180px;
  padding: 12px;
}

.sector-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd8e3;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
}

.sector-head {
  height: auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  text-align: left;
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(225, 61, 79, 0.10), transparent 58%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.sector-rank {
  width: max-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(225, 61, 79, 0.10);
  color: #d72d42;
  font-size: 11px;
  font-weight: 760;
}

.sector-head b {
  font-size: 17px;
}

.sector-head strong {
  font-size: 20px;
  justify-self: end;
}

.sector-head small,
.sector-head em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
}

.sector-head em {
  color: #354258;
  font-size: 12px;
}

.sector-stocks {
  display: none;
  border-top: 1px solid #e6edf5;
  background: rgba(248, 252, 255, 0.86);
}

.sector-stocks.show {
  display: grid;
}

.sector-stocks p {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.sector-stock {
  display: grid;
  grid-template-columns: 1.2fr 72px 1.4fr 84px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #edf3f8;
}

.sector-stock b,
.sector-stock span {
  display: block;
}

.sector-stock span {
  color: var(--muted);
  font-size: 12px;
}

.sector-stock strong {
  font-size: 16px;
}

.starter-chip b {
  font-size: 15px;
}

.starter-chip span {
  color: var(--muted);
  font-size: 12px;
}

.consumer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.consumer-card {
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(219, 229, 238, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.consumer-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
}

.consumer-card.primary::after {
  background: radial-gradient(circle, rgba(225, 61, 79, 0.20), transparent 70%);
}

.consumer-card.accent::after {
  background: radial-gradient(circle, rgba(8, 145, 178, 0.20), transparent 70%);
}

.consumer-card b {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.consumer-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.consumer-card p {
  color: #354258;
  font-size: 13px;
  line-height: 1.55;
}

.push-panel {
  margin-bottom: 18px;
}

#pushState {
  color: var(--muted);
  font-size: 13px;
}

.push-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(140px, 0.6fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
}

.push-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.market-layout {
  margin-bottom: 18px;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.review-layout {
  margin-top: 18px;
}

.diagnose-layout {
  margin-bottom: 18px;
}

.diagnose-box {
  padding: 16px;
}

.diagnose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}

.diagnose-card {
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-soft);
}

.diagnose-card.good {
  border-color: rgba(225, 61, 79, 0.45);
  background: linear-gradient(180deg, rgba(255, 247, 248, 0.98), rgba(255, 234, 238, 0.92));
  box-shadow: 0 14px 32px rgba(225, 61, 79, 0.12);
}

.diagnose-card.good strong {
  color: #d72d42;
}

.diagnose-card.bad {
  border-color: rgba(12, 155, 106, 0.45);
  background: linear-gradient(180deg, rgba(246, 255, 250, 0.98), rgba(225, 249, 239, 0.92));
  box-shadow: 0 14px 32px rgba(12, 155, 106, 0.12);
}

.diagnose-card.bad strong {
  color: #087a54;
}

.diagnose-card.neutral {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.diagnose-card b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.diagnose-card strong {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
}

.diagnose-card p {
  color: #354258;
  font-size: 13px;
  line-height: 1.45;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9));
}

#updatedAt,
#reviewTime {
  color: var(--muted);
  font-size: 13px;
}

.source-bar {
  display: none;
  padding: 10px 16px;
  border-bottom: 1px solid #f0dfb6;
  background: #fff8e6;
  color: #7a5417;
  font-size: 13px;
}

.source-bar.show {
  display: block;
}

.watch-panel {
  margin-bottom: 18px;
}

.watch-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.watch-form input,
.position-row input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgba(17, 32, 51, 0.06);
}

.watch-form input {
  width: 136px;
}

.watch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}

.watch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.watch-chip button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #e7eef3;
  color: #526071;
  line-height: 1;
  box-shadow: none;
}

.table-wrap {
  overflow: auto;
  max-height: 560px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf1f3;
  text-align: right;
  font-size: 14px;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 650;
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
}

tr {
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

tr:hover,
tr.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.10), rgba(8, 145, 178, 0.06));
}

tbody tr:hover {
  transform: translateY(-1px);
}

.name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.name b {
  font-size: 15px;
}

.name span,
.position-row span {
  color: var(--muted);
  font-size: 12px;
}

.up {
  color: var(--red);
}

.down {
  color: var(--green);
}

.badge,
.review-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 720;
  font-size: 13px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.badge {
  min-width: 64px;
  height: 26px;
}

.badge.buy,
.review-tag.good {
  background: linear-gradient(180deg, #e9f5ff, #d9ecff);
  color: var(--blue);
}

.badge.wait,
.badge.degraded,
.review-tag.warn {
  background: linear-gradient(180deg, #fff7df, #ffedbb);
  color: var(--amber);
}

.badge.risk,
.review-tag.bad {
  background: linear-gradient(180deg, #ffecec, #ffd8dc);
  color: var(--red);
}

.badge.neutral,
.review-tag {
  background: linear-gradient(180deg, #f1f5f9, #e5edf3);
  color: #526071;
}

.side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail,
.notify-box,
.security-box,
.positions,
.position-summary,
.review-box {
  padding: 14px 16px;
}

.detail h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.metric,
.summary-item,
.trade-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.metric {
  padding: 10px;
}

.metric b,
.summary-item b,
.trade-cell b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.metric span,
.summary-item span {
  font-size: 18px;
  font-weight: 720;
}

.plan {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.plan div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan span:first-child {
  color: var(--muted);
}

.reason,
.t-note,
.review-box {
  color: #354258;
  line-height: 1.6;
}

.rules {
  margin: 0;
  padding: 14px 18px 16px 34px;
  color: #354258;
  line-height: 1.7;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: #354258;
}

.check input {
  width: 16px;
  height: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: #354258;
  font-size: 13px;
}

.field input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgba(17, 32, 51, 0.06);
}

#notifyStatus {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#securityStatus {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.24), transparent 36%),
    linear-gradient(225deg, rgba(225, 61, 79, 0.16), transparent 34%),
    #edf4fb;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(219, 229, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-card h1 {
  color: var(--text);
}

.login-card p {
  margin-top: 6px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #354258;
}

.login-form input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 16px;
}

#loginMsg {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
}

.position-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.summary-item {
  padding: 9px 10px;
  box-shadow: var(--shadow-soft);
}

.positions {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
  padding-top: 12px;
}

.position-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
  box-shadow: var(--shadow-soft);
}

.position-row b {
  display: block;
  font-size: 14px;
}

.pos-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pos-title {
  min-width: 0;
}

.pos-title span {
  display: block;
  margin-top: 2px;
}

.pnl {
  text-align: right;
  font-weight: 720;
  white-space: nowrap;
}

.pos-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.position-row input {
  width: 100%;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.trade-cell {
  padding: 8px;
}

.trade-cell span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.review-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.review-card {
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
  overflow: auto;
  box-shadow: var(--shadow-soft);
}

.review-card.wide {
  grid-column: span 2;
}

.review-card.full {
  grid-column: 1 / -1;
}

.review-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}

.review-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.review-card li {
  margin: 5px 0;
}

.review-verdict {
  display: grid;
  gap: 8px;
}

.verdict-main {
  font-size: 18px;
  font-weight: 760;
  color: var(--text);
}

.verdict-line {
  color: #354258;
}

.review-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #edf1f3;
  font-size: 13px;
  text-align: left;
}

.review-table th {
  color: var(--muted);
  background: transparent;
}

.review-price {
  font-weight: 720;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 15;
  display: none;
  width: min(560px, calc(100% - 24px));
  transform: translateX(-50%);
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(219, 229, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(17, 32, 51, 0.22);
  backdrop-filter: blur(10px);
}

.mobile-nav button {
  height: 40px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #354258;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(219, 229, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.small-modal {
  width: min(520px, 94vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.modal-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.install-guide,
.security-box {
  padding: 16px 18px 18px;
}

.install-guide {
  display: grid;
  gap: 8px;
}

.install-guide b {
  margin-top: 4px;
}

.install-guide p {
  color: #354258;
  line-height: 1.55;
}

.chart-layout {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.chart-layout canvas {
  width: 100%;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.chart-report {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 18px 18px;
}

.chart-report div {
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-soft);
}

.chart-report b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.chart-report strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.chart-report p {
  color: #354258;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    flex-wrap: wrap;
    white-space: normal;
  }

  .rule-strip,
  .starter-chips,
  .consumer-grid,
  .workbench-layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .sector-stock {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .push-grid {
    grid-template-columns: 1fr;
  }

  .push-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .app-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagnose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-nav {
    display: grid;
  }

  .modal {
    padding: 10px;
  }

  .chart-toolbar {
    flex-wrap: wrap;
  }

  .chart-report {
    grid-template-columns: 1fr;
  }

  .side {
    grid-template-columns: 1fr;
  }

  .positions {
    grid-template-columns: 1fr;
  }

  .review-card.wide {
    grid-column: 1;
  }
}

@media (min-width: 1280px) {
  .workbench-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .positions {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}
