:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #11151c;
  --panel2: #151a23;
  --line: #252b36;
  --text: #edf0f5;
  --muted: #8a94a5;
  --blue: #4c7cf3;
  --green: #30bb96;
  --red: #ec6b75;
  --radius: 10px;
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 0%, #16202e, #090b0e 62%);
}
.auth-card {
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 45%);
}
.auth-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.auth-brand .brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.auth-brand small {
  color: var(--muted);
  font-size: 11px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: #0c1016;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 6px;
}
.auth-tabs button.active {
  background: #1b2230;
  color: var(--text);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form label {
  font-size: 11px;
}
.auth-form button.primary {
  padding: 11px;
  font-size: 13px;
}
.auth-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.top-user {
  font-size: 11px;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.review-profile-grid .card {
  min-width: 0;
}
.review-profile-grid p {
  font-size: 12px;
  line-height: 1.8;
}
.review-profile-grid small {
  display: block;
  line-height: 1.7;
  margin-top: 16px;
}
.review-headline {
  font-size: 20px;
  font-weight: 600;
  margin: 17px 0 10px;
  overflow-wrap: anywhere;
}
.review-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.duration-histogram {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 23px 0;
}
.duration-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.review-methods {
  margin: 12px 0;
  color: var(--muted);
}
.review-methods p {
  font-size: 11px;
}
.pnl-ranking {
  margin-bottom: 22px;
}
.pnl-ranking .section-head {
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}
.pnl-ranking p {
  font-size: 12px;
  margin-top: 8px;
}
.pnl-ranking label {
  min-width: 160px;
}
.rank-chart-scroll {
  overflow: auto;
  max-height: 650px;
  margin-top: 20px;
}
.rank-chart {
  width: 100%;
  min-width: 660px;
  display: block;
}
.rank-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-family: "Microsoft YaHei UI", sans-serif;
}
.rank-chart .rank-value {
  fill: var(--text);
  font-family: Consolas, monospace;
}
.rank-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 10px;
}
.rank-pagination > div {
  display: flex;
  gap: 9px;
}
.review-annotation-fields {
  grid-template-columns: 1fr;
}
@media (max-width: 1050px) {
  .review-profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .review-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-headline {
    font-size: 18px;
  }
  .pnl-ranking {
    padding: 16px;
  }
  .pnl-ranking .section-head label {
    width: 100%;
  }
  .rank-pagination button {
    font-size: 11px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--panel2);
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #222b3a;
  border-color: #46526a;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7599f8;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.primary {
  background: #3867dc;
  border-color: #4779f2;
  color: white;
}
.primary:hover {
  background: #497cf1;
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.icon-btn {
  padding: 7px;
  width: 34px;
  height: 34px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  padding: 10px 11px;
  min-width: 0;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--blue);
}
input[type="range"] {
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
label span {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
small {
  color: var(--muted);
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.mono {
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}
.topbar {
  height: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #0b0e13;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 1.4px;
  border: 1px solid #394256;
  border-radius: 3px;
  padding: 3px 4px;
  vertical-align: middle;
  margin-left: 8px;
  color: #9ca8bd;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 18px;
}
.divider {
  width: 1px;
  height: 23px;
  background: var(--line);
}
.avatar {
  width: 29px;
  height: 29px;
  background: #283750;
  border: 1px solid #455574;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #baceef;
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 100%;
  background: var(--green);
  display: inline-block;
  margin-right: 6px;
}
.sidebar {
  position: fixed;
  top: 60px;
  bottom: 0;
  left: 0;
  width: 88px;
  border-right: 1px solid var(--line);
  padding: 19px 5px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #0b0e13;
  z-index: 15;
}
.nav-item {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 6px;
  padding: 13px 2px;
  color: var(--muted);
  border-radius: 7px;
}
.nav-item .icon {
  width: 23px;
  height: 23px;
}
.nav-item.active {
  color: var(--text);
  background: #161d29;
}
.nav-item.active .icon {
  color: #7599fa;
}
.nav-item:disabled {
  opacity: 0.28;
}
.sidebar-foot {
  margin-top: auto;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: #626d80;
}
.content {
  margin-left: 88px;
  padding: 32px 38px;
  max-width: 1600px;
  animation: reveal 0.25s ease;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  font-size: 12px;
  margin-top: 7px;
}
.head-actions {
  display: flex;
  gap: 9px;
}
.section {
  margin-bottom: 30px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h2 .icon {
  color: #7295ee;
  width: 17px;
}
.section-head a {
  font-size: 12px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 11px;
}
.stat-value {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.updates {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.update {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.update:last-child {
  border-bottom: 0;
}
.update .icon {
  color: var(--muted);
  width: 16px;
}
.update small {
  margin-left: auto;
}
.session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.session-card {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.session-card:hover {
  border-color: #53627d;
}
.session-card-head {
  padding: 17px 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.session-card-head h3 {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #303a4b;
  border-radius: 4px;
  color: #9caabd;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.badge.demo {
  color: #d8b777;
  border-color: #65512b;
  background: #221e15;
}
.mini-chart {
  height: 68px;
  width: 100%;
  margin: 12px 0 5px;
}
.session-card-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.session-meta {
  padding: 0 17px 15px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.session-tools {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.session-tools button {
  padding: 5px 7px;
  font-size: 10px;
}
.empty {
  border: 1px dashed #313b4d;
  border-radius: 10px;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}
.empty .icon {
  width: 34px;
  height: 34px;
  color: #6e7b91;
}
.empty p {
  font-size: 12px;
  max-width: 460px;
}
.banner {
  background: linear-gradient(115deg, #17233a, #101722 80%);
  border: 1px solid #293b5d;
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.banner h3 {
  margin-bottom: 7px;
}
.banner p {
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 330px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--panel);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  font-size: 12px;
}
.tabs button.active {
  background: #273144;
  color: var(--text);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.market-card .symbol {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #29251b;
  color: #efbd5a;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}
.market-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 23px;
}
.market-title p {
  font-size: 12px;
}
.market-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.market-actions button {
  flex: 1;
  font-size: 12px;
}
.market-detail {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 11px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid .card {
  padding: 24px;
}
.settings-grid h2 {
  margin-bottom: 9px;
}
.settings-grid p {
  font-size: 12px;
  margin-bottom: 22px;
}
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.status-pill {
  border: 1px solid #2e5448;
  background: #10241d;
  color: #71bd9e;
  font-size: 10px;
  border-radius: 12px;
  padding: 5px 9px;
}
.status-pill.off {
  border-color: #514529;
  background: #231f15;
  color: #bbaa81;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #394357;
  border-radius: 12px;
  padding: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: 90vh;
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #03060bbd;
  backdrop-filter: blur(4px);
}
.dialog-head {
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.dialog-head p {
  font-size: 12px;
  margin-top: 6px;
}
.dialog-body {
  padding: 23px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dialog-foot {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  background: #0c1017;
  border: 1px solid var(--line);
  padding: 11px 13px;
  border-radius: 6px;
}
.error {
  font-size: 12px;
  color: var(--red);
  line-height: 1.6;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 100;
  color: var(--text);
  background: #202c3e;
  border: 1px solid #455673;
  border-radius: 8px;
  padding: 13px 20px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.replay-head {
  height: 55px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #0b0e13;
}
.replay-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.replay-title h3 {
  font-size: 13px;
}
.replay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: calc(100vh - 55px);
}
.chart-pane {
  min-width: 0;
}
.chart-toolbar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.chart-toolbar button {
  font-size: 11px;
  padding: 6px 8px;
}
.chart-toolbar select {
  width: auto;
  padding: 6px;
  font-size: 11px;
}
.chart-toolbar .spacer {
  flex: 1;
}
.chart-wrap {
  position: relative;
  height: clamp(320px, 53vh, 700px);
  background: #0a0e14;
  overflow: hidden;
}
.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
}
.chart-svg text {
  font-family: Consolas, monospace;
  font-size: 10px;
  fill: #6f7e95;
}
.chart-svg .axis-price {
  fill: #bdcadf;
}
.chart-svg .crosshair {
  stroke: #71809a;
  stroke-dasharray: 3 4;
  pointer-events: none;
}
.chart-info {
  position: absolute;
  top: 14px;
  left: 18px;
  pointer-events: none;
  font-size: 11px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  max-width: 90%;
}
.chart-watermark {
  position: absolute;
  right: 80px;
  bottom: 66px;
  pointer-events: none;
  opacity: 0.09;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -2px;
}
.drawing-tools {
  position: absolute;
  left: 10px;
  top: 54px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #101620db;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  z-index: 2;
}
.drawing-tools button {
  background: transparent;
  border: 0;
  padding: 7px;
  width: 31px;
  height: 31px;
}
.drawing-tools button.active {
  background: #2b3d62;
  color: #8baaff;
}
.replay-controls {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  display: flex;
  gap: 13px;
  align-items: center;
  background: #0d121a;
}
.replay-controls input[type="range"] {
  flex: 1;
  min-width: 60px;
}
.replay-controls select {
  width: 65px;
  font-size: 11px;
  padding: 7px;
}
.replay-controls time {
  font-size: 11px;
  white-space: nowrap;
}
.replay-controls button {
  padding: 7px 10px;
}
.play {
  background: #3867dc !important;
  border-color: #5078d7 !important;
  width: 35px;
}
.order-pane {
  border-left: 1px solid var(--line);
  background: #10151d;
  padding: 19px 17px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.account-value {
  font-size: 24px;
  margin: 9px 0 7px;
  font-variant-numeric: tabular-nums;
}
.account-summary {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.order-pane hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 0;
}
.order-pane h3 {
  display: flex;
  justify-content: space-between;
}
.order-pane form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-pane .field-row {
  gap: 10px;
}
.order-pane input,
.order-pane select {
  font-size: 12px;
  padding: 9px;
}
.order-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font-variant-numeric: tabular-nums;
}
.order-summary b {
  color: var(--text);
  font-weight: 600;
}
.buy {
  background: #123f34;
  border-color: #246952;
  color: #65d5b0;
}
.sell {
  background: #48232c;
  border-color: #7a3644;
  color: #f397a3;
}
.cost-info {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.data-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  overflow: auto;
}
.data-tabs button {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  font-size: 12px;
  color: var(--muted);
}
.data-tabs button.active {
  color: var(--text);
  border-bottom: 2px solid var(--blue);
}
.table-wrap {
  overflow: auto;
  max-height: 320px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  background: #0e131b;
  position: sticky;
  top: 0;
  z-index: 1;
}
td,
th {
  padding: 13px 17px;
  border-bottom: 1px solid #202734;
}
td button {
  font-size: 10px;
  padding: 5px 8px;
}
td .badge {
  font-size: 9px;
}
.table-empty {
  text-align: center;
  padding: 45px;
  color: var(--muted);
  font-size: 12px;
}
.journal {
  padding: 20px;
}
.journal label {
  margin-bottom: 13px;
}
.chart-foot {
  font-size: 10px;
  color: #66738a;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.equity-chart {
  width: 100%;
  height: 220px;
}
.chart-card h3 {
  margin-bottom: 20px;
}
.analytics-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.analytics-stats .stat-value {
  font-size: 25px;
}
.breakdown {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 70px 1fr 80px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.bar-track {
  height: 6px;
  background: #252d3b;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
}
.coach {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.9;
  color: #bec8d8;
  font-family: inherit;
  margin-top: 20px;
}
.review-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-note {
  font-size: 10px;
  color: #626f83;
  margin-top: 30px;
  line-height: 1.8;
}
.search-wrap {
  flex: 1;
}
.kpi-sub {
  display: flex;
  gap: 25px;
  margin: 17px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.hide {
  display: none !important;
}
@keyframes reveal {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1700px) {
  .content {
    margin-right: auto;
    margin-left: auto;
    padding-left: 126px;
  }
}
@media (max-width: 1100px) {
  .session-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content {
    padding: 26px;
  }
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .replay-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .chart-toolbar {
    gap: 5px;
  }
  .chart-toolbar button {
    padding: 6px;
  }
  .chart-info {
    gap: 7px;
  }
  .analytics-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 14px;
  }
  .workspace .divider,
  .workspace > span,
  .top-actions > .muted {
    display: none;
  }
  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    width: auto;
    flex-direction: row;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 2px 5px;
  }
  .nav-item {
    padding: 6px 11px;
    font-size: 9px;
    gap: 3px;
  }
  .nav-item .icon {
    width: 20px;
    height: 20px;
  }
  .nav-item:disabled,
  .sidebar-foot {
    display: none;
  }
  .content {
    margin: 0;
    padding: 24px 17px 85px;
  }
  .page-head {
    align-items: start;
    gap: 12px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 22px;
  }
  .page-head .head-actions {
    margin-left: auto;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 15px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-title {
    font-size: 11px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .banner {
    padding: 17px;
    align-items: start;
    flex-direction: column;
  }
  .session-grid {
    gap: 10px;
  }
  .market-grid,
  .settings-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .update small {
    display: none;
  }
  .replay-layout {
    display: flex;
    flex-direction: column;
  }
  .order-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .order-pane hr {
    display: none;
  }
  .order-pane form {
    grid-row: 1/4;
    grid-column: 2;
  }
  .order-pane > .cost-info {
    grid-column: 1/-1;
  }
  .chart-toolbar {
    padding: 0 7px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .chart-toolbar .spacer {
    min-width: 5px;
  }
  .chart-wrap {
    height: 410px;
  }
  .replay-head {
    padding: 0 8px;
  }
  .replay-title {
    gap: 6px;
  }
  .replay-head .brand {
    font-size: 16px;
  }
  .replay-title h3 {
    max-width: 135px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .replay-controls {
    padding: 10px 8px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .replay-controls time {
    font-size: 10px;
  }
  .chart-info {
    left: 12px;
    font-size: 9px;
  }
  .replay-controls input[type="range"] {
    min-width: 90px;
  }
  .review-actions {
    flex-wrap: wrap;
  }
  .analytics-stats {
    grid-template-columns: 1fr 1fr;
  }
  .chart-foot {
    font-size: 9px;
  }
  .top-actions {
    gap: 4px;
  }
  .session-tools {
    flex-wrap: wrap;
  }
  .session-card-head {
    padding: 13px 12px 0;
  }
  .session-meta {
    padding: 0 12px 12px;
  }
  .session-card-bottom {
    padding: 11px 12px;
  }
}
.replay-layout > * {
  max-width: 100%;
}
.group-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
}
@media (max-width: 480px) {
  .order-pane {
    display: flex;
    flex-direction: column;
  }
  .order-pane hr {
    display: block;
  }
  .order-pane .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .order-pane .order-buttons button {
    font-size: 13px;
  }
  .order-pane .account-summary {
    flex-wrap: nowrap;
  }
}
.group-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-grid .breakdown {
  max-height: 280px;
  overflow: auto;
}
.kpi-sub {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
}
.order-pane > * {
  min-width: 0;
}
.chart-toolbar select {
  flex-shrink: 0;
  min-width: 52px;
}
@media (max-width: 760px) {
  .order-buttons {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .order-buttons button {
    min-width: 0;
    font-size: 11px;
    padding: 10px 3px;
  }
  .chart-info {
    top: 10px;
  }
  .chart-toolbar button {
    flex-shrink: 0;
  }
}
@media (max-width: 760px) {
  .order-pane {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .replay-head {
    min-height: 66px;
    height: auto;
    gap: 8px;
  }
  .replay-head > .head-actions > .badge {
    display: none;
  }
  .replay-head .head-actions button {
    font-size: 11px;
    padding: 8px;
  }
  .replay-title {
    min-width: 0;
  }
  .replay-title > div:last-child {
    min-width: 0;
  }
  .replay-title h3 {
    max-width: 90px;
  }
  .replay-title .divider {
    display: none;
  }
  .order-pane .account-summary {
    flex-wrap: wrap;
    gap: 4px;
  }
  .order-pane .field-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
