:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f3;
  --line: #eceef2;
  --text: #07080a;
  --muted: #8a8f99;
  --muted-2: #b7bcc5;
  --blue: #095cff;
  --red: #f64b68;
  --green: #28c386;
  --orange: #dda640;
  --yellow: #e8c53b;
  --purple: #a253b6;
  --shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f1f3f6;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.phone-app {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.view {
  display: none;
  min-height: 100vh;
  padding-bottom: 106px;
  background: var(--bg);
}

.view.active {
  display: block;
}

.home-header,
.contract-header,
.chart-top {
  display: flex;
  align-items: center;
  padding: 10px 26px 6px;
}

.home-header {
  position: relative;
  justify-content: space-between;
  min-height: 62px;
}

.avatar-button,
.avatar-button img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.user-view {
  padding-bottom: 42px;
}

.user-header {
  height: 72px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 8px 24px 0;
}

.user-header h1 {
  margin: 0;
  text-align: center;
  font-size: 25px;
  line-height: 1;
  font-weight: 720;
}

.user-header button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #2d3036;
  font-size: 34px;
  font-weight: 360;
}

.user-switch-button {
  justify-self: end;
  font-size: 25px !important;
  font-weight: 520 !important;
}

.user-profile-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 42px 24px 50px;
}

.user-avatar-large {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--surface);
}

.user-profile-card strong {
  display: block;
  color: #05070a;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 720;
}

.user-profile-card p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 430;
}

.user-profile-card p button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #9398a1;
  font-size: 18px;
}

.user-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 19px;
  font-weight: 560;
}

.user-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 16px;
}

.user-tabs .active {
  color: #111;
  font-weight: 720;
}

.user-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.user-menu-list {
  padding: 28px 24px 0;
}

.user-menu-list button {
  min-height: 72px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(108px, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  color: #080a0f;
  text-align: left;
}

.user-menu-list span {
  font-size: 20px;
  font-weight: 480;
}

.user-menu-list b {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 17px;
  font-weight: 430;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-list em {
  justify-self: end;
  border-radius: 5px;
  font-size: 14px;
  font-style: normal;
  font-weight: 560;
  white-space: nowrap;
}

.verified-badge {
  padding: 5px 9px;
  background: #effaf2;
  color: #42ba65;
}

.vip-badge {
  padding: 5px 9px;
  background: #ffe2c5;
  color: #141414;
}

.blue-badge {
  max-width: 190px;
  overflow: hidden;
  padding: 4px 7px;
  background: #edf6ff;
  color: #126cc8;
  text-overflow: ellipsis;
}

.user-menu-list i {
  color: #9aa0a8;
  font-size: 34px;
  font-style: normal;
  line-height: 1;
  text-align: right;
}

.user-menu-list .logout-row span {
  color: #e35555;
}

.agent-view {
  padding-bottom: 26px;
  background: #fff;
}

.agent-header {
  height: 48px;
  display: grid;
  grid-template-columns: 42px 1fr 76px;
  align-items: center;
  padding: 0 14px;
}

.agent-header h1 {
  margin: 0;
  text-align: center;
  color: #05070a;
  font-size: 20px;
  line-height: 1;
  font-weight: 660;
}

.agent-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #242830;
  font-size: 28px;
}

.agent-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.agent-header-actions button {
  font-size: 18px;
  font-weight: 600;
}

.agent-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
  padding: 24px 16px 18px;
}

.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
}

.agent-greeting {
  min-width: 0;
}

.agent-greeting strong {
  display: block;
  overflow: hidden;
  color: #05070a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-greeting p {
  display: flex;
  gap: 18px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.agent-greeting b {
  margin-left: 6px;
  color: #111;
  font-weight: 560;
}

.agent-filter {
  justify-self: end;
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.agent-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 14px;
  margin: 0 16px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fafbfc;
}

.agent-balance span,
.agent-overview p,
.agent-stat-grid span,
.agent-link-info dt {
  color: var(--muted);
}

.agent-balance strong {
  display: block;
  margin-top: 4px;
  color: #111;
  font-size: 16px;
  font-weight: 650;
}

.agent-balance button {
  height: 44px;
  border-radius: 22px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 620;
}

.agent-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 24px 12px 18px;
}

.agent-actions button {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #111;
  font-size: 12px;
  font-weight: 470;
}

.agent-actions span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #0a66e8;
  font-size: 24px;
  font-weight: 520;
}

.agent-overview,
.agent-link-card {
  border-top: 8px solid #f5f6f8;
  padding: 16px 16px 0;
}

.agent-overview header,
.agent-link-card header,
.agent-commission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agent-overview h2,
.agent-link-card h2 {
  margin: 0;
  color: #05070a;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 660;
}

.agent-overview small,
.agent-link-card small {
  color: var(--muted);
  font-size: 12px;
}

.agent-overview p {
  margin: 10px 0 0;
  font-size: 12px;
}

.agent-overview header button,
.agent-commission-head button,
.agent-link-card header button {
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.agent-link-card header button {
  font-size: 28px;
  line-height: 1;
}

.agent-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.agent-stat-grid article {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}

.agent-stat-grid article:nth-child(odd) {
  padding-right: 12px;
}

.agent-stat-grid article:nth-child(even) {
  padding-left: 12px;
}

.agent-stat-grid article:last-child {
  grid-column: 1 / 2;
}

.agent-stat-grid strong {
  color: #111;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 650;
}

.agent-link-card {
  padding-bottom: 18px;
}

.agent-commission-head {
  margin-top: 22px;
}

.agent-commission-head strong {
  color: #111;
  font-size: 15px;
  font-weight: 620;
}

.agent-commission-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.agent-commission-row b {
  margin-left: 12px;
  color: #111;
  font-weight: 650;
}

.agent-link-info {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px 10px;
  margin: 18px 0 22px;
  font-size: 14px;
}

.agent-link-info dt,
.agent-link-info dd {
  min-width: 0;
}

.agent-link-info dd {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  color: #111;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-link-info dd button {
  flex: 0 0 auto;
  color: #4c525c;
  font-size: 14px;
}

.agent-share-button {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 620;
}

.finance-view {
  padding-bottom: 28px;
  background: #fff;
}

.finance-header {
  height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 0 18px;
}

.finance-header h1 {
  margin: 0;
  color: #05070a;
  text-align: center;
  font-size: 21px;
  line-height: 1;
  font-weight: 660;
}

.finance-header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #252a33;
  font-size: 30px;
}

.finance-help {
  justify-self: end;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6f7580 !important;
  font-size: 16px !important;
  font-weight: 650;
}

.finance-intro {
  margin: 10px 18px 14px;
  padding: 20px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 58%, #f3f6fa 100%);
}

.withdraw-intro {
  background: linear-gradient(135deg, #f4f9f7 0%, #f8fbff 58%, #f3f6fa 100%);
}

.finance-intro span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 620;
}

.finance-intro strong {
  display: block;
  margin-top: 8px;
  color: #05070a;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 650;
}

.finance-intro p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wallet-card,
.finance-form-card,
.finance-note,
.finance-orders,
.finance-balance-card {
  margin: 12px 18px;
  border-radius: 12px;
  background: #fafbfc;
}

.wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.wallet-card span,
.finance-field span,
.finance-input span,
.rate-card span,
.estimate-row span,
.finance-balance-card span,
.finance-note p,
.finance-orders em {
  color: var(--muted);
}

.wallet-card strong {
  display: block;
  margin-top: 4px;
  color: #111;
  font-size: 16px;
  font-weight: 640;
}

.wallet-card p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-card button {
  height: 38px;
  border-radius: 19px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.wallet-card button.connected {
  background: #eaf5ef;
  color: #22a56b;
}

.finance-form-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.finance-field,
.finance-input {
  display: grid;
  gap: 8px;
}

.finance-field button,
.finance-input {
  min-height: 54px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff;
}

.finance-field button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111;
  text-align: left;
  font-size: 15px;
  font-weight: 560;
}

.finance-field b,
.finance-input b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.finance-input {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.finance-input span {
  grid-column: 1 / 3;
  font-size: 12px;
  font-weight: 520;
}

.finance-input input {
  min-width: 0;
  height: 28px;
  color: #111;
  font-size: 18px;
  font-weight: 520;
}

.finance-input input::placeholder {
  color: #b2b7bf;
}

.rate-card {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 9px;
  background: #fff;
}

.rate-card strong {
  color: #111;
  font-size: 15px;
  font-weight: 620;
}

.rate-card b {
  color: var(--blue);
}

.rate-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.estimate-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.estimate-row strong {
  color: #111;
  font-size: 18px;
  font-weight: 650;
}

.finance-primary {
  height: 50px;
  border-radius: 25px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 620;
  box-shadow: 0 8px 20px rgba(9, 92, 255, 0.18);
}

.finance-note,
.finance-orders {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.finance-note h2,
.finance-orders h2 {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 650;
}

.finance-note p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.finance-balance-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.finance-balance-card div:last-child {
  grid-column: 1 / 3;
}

.finance-balance-card strong {
  display: block;
  margin-top: 6px;
  color: #111;
  font-size: 17px;
  font-weight: 650;
}

.audit-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.audit-flow i {
  height: 1px;
  background: #dfe3e8;
}

.finance-orders header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.finance-orders header button {
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.finance-orders article {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

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

.finance-orders strong,
.finance-orders span {
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.finance-orders em {
  font-size: 12px;
  font-style: normal;
}

.finance-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.finance-pagination button {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f3f5f7;
  color: #111;
  font-size: 20px;
}

.finance-pagination button:disabled {
  color: #c5c9d0;
}

.copy-view {
  padding-bottom: 28px;
  background: #fff;
}

.copy-header {
  height: 54px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 0 18px;
}

.copy-header h1 {
  margin: 0;
  color: #05070a;
  text-align: center;
  font-size: 21px;
  line-height: 1;
  font-weight: 660;
}

.copy-header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #252a33;
  font-size: 30px;
}

.copy-help {
  justify-self: end;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6f7580 !important;
  font-size: 16px !important;
  font-weight: 650;
}

.copy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  margin: 10px 18px 14px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 58%, #f3f6fa 100%);
}

.copy-hero span,
.copy-rule-card h2,
.copy-leader-list h2,
.copy-create-card h2,
.copy-orders h2 {
  color: #05070a;
}

.copy-hero span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 620;
}

.copy-hero strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;
}

.copy-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.copy-hero button,
.copy-create-card > button,
.copy-card-foot button {
  height: 40px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 620;
}

.copy-tabs {
  display: flex;
  gap: 26px;
  padding: 4px 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 540;
}

.copy-tabs button {
  position: relative;
  padding-bottom: 12px;
}

.copy-tabs .active {
  color: #111;
  font-weight: 650;
}

.copy-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.copy-rule-card,
.copy-leader-list,
.copy-create-card,
.copy-orders {
  margin: 12px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.copy-rule-card h2,
.copy-leader-list h2,
.copy-create-card h2,
.copy-orders h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.copy-rule-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.copy-rule-card strong {
  color: #111;
  font-weight: 650;
}

.copy-rule-card p {
  margin: 14px 0 0;
  color: #d89d42;
  font-size: 12px;
  line-height: 1.45;
}

.copy-leader-list header,
.copy-create-card header,
.copy-orders header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.copy-leader-list header button,
.copy-orders header button {
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.copy-leader-card {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.leader-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.leader-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 700;
}

.leader-avatar.green {
  background: #eaf8f1;
  color: #24b878;
}

.leader-top strong {
  display: block;
  overflow: hidden;
  color: #111;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-top span,
.copy-card-foot span,
.copy-create-card header span,
.copy-create-card label span,
.copy-orders em {
  color: var(--muted);
}

.leader-top span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.leader-top em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #effaf2;
  color: #22a56b;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.leader-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.leader-stats div {
  display: grid;
  gap: 5px;
}

.leader-stats span {
  color: var(--muted);
  font-size: 11px;
}

.leader-stats strong {
  color: #111;
  font-size: 15px;
  font-weight: 650;
}

.copy-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.copy-card-foot span {
  font-size: 12px;
}

.copy-create-card label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.copy-create-card input,
.copy-create-grid label {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f7f8fa;
}

.copy-create-card input {
  font-size: 15px;
}

.copy-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.copy-create-grid label {
  align-content: center;
}

.copy-create-grid strong {
  color: #111;
  font-size: 14px;
  font-weight: 650;
}

.copy-create-card > button {
  width: 100%;
  margin-top: 2px;
}

.copy-orders article {
  display: grid;
  gap: 6px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.copy-orders article div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.copy-orders strong,
.copy-orders span {
  font-size: 14px;
  font-weight: 620;
}

.copy-orders em {
  font-size: 12px;
  font-style: normal;
}

.wealth-view {
  background: #fff;
}

.wealth-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: start;
  padding: 18px 22px 14px;
}

.wealth-header span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 620;
}

.wealth-header h1 {
  margin: 8px 0 0;
  color: #05070a;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 660;
}

.wealth-header p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wealth-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6f7580;
  font-size: 16px;
  font-weight: 650;
}

.wealth-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 18px 12px;
}

.wealth-summary article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 13px;
  border-radius: 12px;
  background: #fafbfc;
}

.wealth-summary article:first-child {
  grid-column: 1 / 3;
}

.wealth-summary span,
.stake-card p,
.stake-rate span,
.stake-input span,
.stake-estimate span,
.wealth-pools span,
.wealth-positions em,
.wealth-note p {
  color: var(--muted);
}

.wealth-summary strong {
  color: #111;
  font-size: 18px;
  font-weight: 660;
}

.stake-card,
.wealth-pools,
.wealth-positions,
.wealth-note {
  margin: 12px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.stake-card header,
.wealth-pools header,
.wealth-positions header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.stake-card h2,
.wealth-pools h2,
.wealth-positions h2,
.wealth-note h2 {
  margin: 0;
  color: #111;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 650;
}

.stake-card p {
  margin: 6px 0 0;
  font-size: 12px;
}

.stake-card em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #effaf2;
  color: #22a56b;
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
}

.stake-rate {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 13px;
  border-radius: 10px;
  background: #f7f9fc;
}

.stake-rate strong {
  color: #111;
  font-size: 16px;
  font-weight: 650;
}

.stake-rate b {
  color: var(--blue);
}

.stake-input {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fa;
}

.stake-input span {
  grid-column: 1 / 3;
  font-size: 12px;
  font-weight: 520;
}

.stake-input input {
  min-width: 0;
  height: 30px;
  font-size: 19px;
  font-weight: 520;
}

.stake-input b {
  color: #111;
  font-size: 15px;
}

.stake-estimate {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stake-estimate strong {
  color: #111;
  font-size: 18px;
  font-weight: 650;
}

.stake-actions {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
}

.stake-actions button {
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 620;
}

#maxStakeButton {
  background: #f3f5f7;
  color: #111;
}

#submitStakeButton,
.wealth-positions header button {
  background: var(--blue);
  color: #fff;
}

.wealth-pools header button {
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.wealth-pools article,
.wealth-positions article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.wealth-pools article:first-of-type,
.wealth-positions article:first-of-type {
  margin-top: 12px;
}

.wealth-pools strong,
.wealth-positions strong {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 650;
}

.wealth-pools span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.wealth-pools b {
  color: var(--blue);
  font-size: 14px;
}

.wealth-positions header button {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 620;
}

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

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

.wealth-positions em {
  font-size: 12px;
  font-style: normal;
}

.wealth-note p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.assets-view,
.transfer-view,
.internal-transfer-view {
  background: #fff;
}

.assets-view {
  padding: 0 22px 112px;
}

.assets-top-tabs {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  height: 50px;
}

.assets-top-tabs button {
  position: relative;
  height: 42px;
  color: #8a8f99;
  font-size: 18px;
  font-weight: 580;
}

.assets-top-tabs .active {
  color: #111;
}

.assets-top-tabs .active::after,
.asset-list-tabs .active::after,
.transfer-page-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 3px;
  border-radius: 4px;
  background: #111;
  transform: translateX(-50%);
}

.assets-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
  min-height: 138px;
  align-items: center;
  padding: 14px 0 8px;
}

.assets-summary span,
.assets-summary p,
.asset-list-head,
.asset-token-main em,
.asset-token-balance span,
.transfer-form-panel p,
.transfer-input-row span,
.internal-transfer-hero p {
  color: var(--muted);
}

.assets-summary span {
  font-size: 12px;
}

.assets-summary span b {
  color: #b2b7bf;
  font-weight: 560;
}

.assets-summary strong {
  display: block;
  margin-top: 8px;
  color: #07080a;
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.assets-summary p {
  margin: 14px 0 0;
  font-size: 13px;
}

.assets-summary p em {
  font-style: normal;
  font-weight: 560;
}

.assets-summary > i {
  position: relative;
  height: 72px;
}

.assets-summary > i::before,
.assets-summary > i::after {
  content: "";
  position: absolute;
  right: 8px;
  border: 3px solid #28c386;
  box-shadow: 0 0 20px rgba(40, 195, 134, 0.14);
}

.assets-summary > i::before {
  top: 18px;
  width: 54px;
  height: 34px;
  border-left: 0;
  border-bottom: 0;
}

.assets-summary > i::after {
  top: 36px;
  width: 34px;
  height: 18px;
  border-right: 0;
  border-top: 0;
  opacity: 0.22;
}

.asset-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
}

.asset-action-row button {
  display: grid;
  place-items: center;
  gap: 7px;
  color: #111;
  font-size: 12px;
  font-weight: 520;
}

.asset-action-row span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f5f7;
  color: #111;
  font-size: 21px;
  font-weight: 520;
}

.asset-action-row button:last-child span {
  font-size: 11px;
  letter-spacing: 0;
}

.asset-latest-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.asset-latest-row > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c386;
}

.asset-latest-row strong {
  color: #111;
  font-size: 14px;
  font-weight: 570;
}

.asset-latest-row em {
  padding: 4px 7px;
  border-radius: 6px;
  background: #ebf8ef;
  color: #22a56b;
  font-size: 11px;
  font-style: normal;
  font-weight: 520;
}

.asset-list-tabs {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding-top: 23px;
}

.asset-list-tabs > button {
  position: relative;
  height: 38px;
  color: #8a8f99;
  font-size: 18px;
  font-weight: 580;
}

.asset-list-tabs > button.active {
  color: #111;
}

.asset-list-tabs div {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.asset-list-tabs div button {
  color: #111;
  font-size: 23px;
  font-weight: 420;
}

.asset-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
}

.asset-token-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
}

.asset-token-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-token-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0f1720;
  color: #35e1cd;
  font-size: 10px;
  font-weight: 650;
}

.asset-token-main div,
.asset-token-balance {
  min-width: 0;
}

.asset-token-main strong {
  display: block;
  color: #111;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 560;
}

.asset-token-main em {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
}

.asset-token-balance {
  text-align: right;
}

.asset-token-balance strong {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 560;
}

.asset-token-balance span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.subpage-header {
  height: 62px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 8px 20px 0;
}

.subpage-header h1 {
  margin: 0;
  text-align: center;
  color: #111;
  font-size: 21px;
  font-weight: 600;
}

.subpage-header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #181b21;
  font-size: 28px;
  font-weight: 320;
}

.subpage-header button:last-child {
  justify-self: end;
  border-radius: 7px;
  background: #1d2028;
  color: #fff;
  font-size: 15px;
  font-weight: 560;
}

.transfer-page-tabs {
  display: flex;
  height: 50px;
  align-items: flex-end;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.transfer-page-tabs button {
  position: relative;
  height: 42px;
  color: #111;
  font-size: 18px;
  font-weight: 590;
}

.transfer-route-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 28px 22px 24px;
}

.transfer-account-select {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f5f6f8;
  text-align: left;
}

.transfer-account-select span {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 13px;
}

.transfer-account-select strong {
  color: #111;
  font-size: 17px;
  font-weight: 580;
}

.transfer-account-select b {
  align-self: center;
  color: #111;
  font-size: 13px;
}

.transfer-swap-button {
  position: absolute;
  left: 50%;
  top: 62px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 560;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: translateX(-50%);
}

.transfer-form-panel {
  display: grid;
  gap: 22px;
  margin: 0 22px;
}

.transfer-input-row {
  display: grid;
  align-items: center;
  min-height: 62px;
}

.transfer-input-row span {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  font-size: 16px;
  color: #111;
  font-weight: 560;
}

.transfer-input-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.uid-row {
  grid-template-columns: 1fr;
}

.transfer-input-row input {
  min-width: 0;
  height: 50px;
  padding: 0 13px;
  border-radius: 10px;
  background: #f5f6f8;
  color: #111;
  font-size: 18px;
  font-weight: 480;
}

.transfer-input-row strong {
  color: #111;
  font-size: 16px;
  font-weight: 580;
}

.transfer-input-row button {
  color: var(--blue);
  font-size: 15px;
  font-weight: 580;
}

.transfer-form-panel p {
  margin: -16px 0 0;
  font-size: 12px;
}

.subpage-primary {
  position: fixed;
  left: 50%;
  bottom: 30px;
  width: min(326px, calc(100vw - 64px));
  height: 48px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 580;
  transform: translateX(-50%);
}

.subpage-primary:disabled {
  background: #f0f1f3;
  color: #c4c8cf;
  cursor: default;
}

.account-picker-panel {
  position: fixed;
  inset: 0;
  left: 50%;
  z-index: 60;
  width: min(100vw, 430px);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.18s ease;
}

.account-picker-panel.active {
  pointer-events: auto;
  opacity: 1;
}

.account-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.48);
}

.account-picker-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 22px 28px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  transform: translateY(18px);
  transition: transform 0.18s ease;
}

.account-picker-panel.active .account-picker-sheet {
  transform: translateY(0);
}

.account-picker-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-picker-sheet h2 {
  margin: 0;
  color: #111;
  font-size: 21px;
  font-weight: 600;
}

.account-picker-sheet header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #9aa0a9;
  font-size: 32px;
  font-weight: 260;
}

.account-picker-list {
  display: grid;
  gap: 2px;
}

.account-picker-list button {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  text-align: left;
}

.account-picker-list strong {
  display: block;
  color: #111;
  font-size: 18px;
  font-weight: 580;
}

.account-picker-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.account-picker-list b {
  color: #9aa0a9;
  text-align: right;
  font-size: 24px;
  font-weight: 420;
}

.account-picker-list button.active strong,
.account-picker-list button.active b {
  color: var(--blue);
}

.internal-transfer-hero {
  margin: 18px 24px 28px;
  padding: 22px 18px;
  border-radius: 14px;
  background: #f7f9fc;
}

.internal-transfer-hero span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 620;
}

.internal-transfer-hero strong {
  display: block;
  margin-top: 8px;
  color: #111;
  font-size: 22px;
  font-weight: 650;
}

.internal-transfer-hero p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.exchange-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  height: 44px;
  border-radius: 999px;
  background: #f7f8fa;
  font-size: 22px;
  font-weight: 680;
}

.exchange-pill span {
  margin-left: 10px;
  font-size: 16px;
}

.home-actions,
.contract-actions,
.chart-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contract-actions {
  gap: 0;
}

.home-actions button,
.contract-actions button,
.chart-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 700;
}

.contract-actions button {
  font-size: 22px;
  font-weight: 620;
}

.home-actions .coin-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #a7ff4f;
  color: #111;
  font-size: 18px;
  font-weight: 720;
}

.home-search {
  height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr 30px;
  align-items: center;
  gap: 7px;
  margin: 8px 24px 12px;
  padding: 0 12px;
  border-radius: 23px;
  background: #f2f3f6;
  color: #969ba3;
}

.home-search > span {
  font-size: 25px;
  line-height: 1;
}

.home-search input {
  min-width: 0;
  height: 100%;
  color: #22252a;
  font-size: 16px;
  font-weight: 460;
}

.home-search input::placeholder {
  color: #969ba3;
}

.home-search button {
  width: 30px;
  height: 30px;
  color: #969ba3;
  font-size: 22px;
  font-weight: 520;
}

.asset-card {
  padding: 8px 24px 12px;
}

.muted-label,
.daily-pnl,
.asset-row span,
.quote-panel span,
.quote-panel em,
.quote-panel dt,
.balance-lines span {
  color: var(--muted);
}

.muted-label {
  font-size: 13px;
  font-weight: 450;
}

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.asset-row strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 680;
}

.asset-row span {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 520;
  color: #1b1d22;
}

.primary-blue {
  width: 76px;
  height: 36px;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 620;
}

.daily-pnl {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 440;
}

.daily-pnl span,
.price-up,
.book-list.asks .book-price,
.trade-positive {
  color: var(--red);
}

.price-down,
.book-list.bids .book-price,
.trade-negative {
  color: var(--green);
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 24px 12px;
}

.shortcut-row button {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.shortcut-row span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f6f8;
  color: #101115;
}

.shortcut-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shortcut-row b,
.product-tabs em {
  position: absolute;
  top: -6px;
  padding: 1px 7px;
  border-radius: 8px;
  background: #a6ff55;
  color: #111;
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.promo-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  margin: 10px 24px 18px;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.promo-carousel::-webkit-scrollbar {
  display: none;
}

.promo-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 98px 1fr 42px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f2f3f6;
  scroll-snap-align: center;
}

.promo-art {
  position: relative;
  height: 68px;
}

.promo-art strong {
  position: absolute;
  inset: 18px 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #111;
  font-size: 36px;
}

.promo-art-green strong {
  background: var(--green);
  color: #fff;
}

.promo-art-red strong {
  background: var(--red);
  color: #fff;
}

.promo-art i {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #a6ff55;
}

.promo-art i:nth-child(1) {
  left: 8px;
  top: 4px;
}

.promo-art i:nth-child(2) {
  right: 8px;
  top: 4px;
  background: var(--blue);
}

.promo-art i:nth-child(3) {
  left: 8px;
  bottom: 4px;
  background: var(--blue);
}

.promo-art i:nth-child(4) {
  right: 8px;
  bottom: 4px;
}

.promo-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.promo-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.32;
}

.promo-card > span {
  justify-self: end;
  align-self: start;
  padding: 6px 10px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.product-tabs,
.market-tabs,
.chart-tabs,
.contract-tabs,
.timeframe-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs::-webkit-scrollbar,
.market-tabs::-webkit-scrollbar,
.chart-tabs::-webkit-scrollbar,
.contract-tabs::-webkit-scrollbar,
.timeframe-tabs::-webkit-scrollbar {
  display: none;
}

.product-tabs {
  padding: 10px 24px 14px;
  font-size: 16px;
  font-weight: 520;
  color: var(--muted);
}

.product-tabs button {
  position: relative;
  flex: 0 0 auto;
}

.product-tabs .active {
  color: var(--text);
  font-size: 17px;
  font-weight: 660;
}

.market-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  gap: 28px;
  padding: 9px 24px 7px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 540;
}

.market-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 11px;
}

.market-tabs .active {
  color: var(--text);
}

.market-tabs .active::after,
.chart-tabs .active::after,
.contract-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 4px;
  border-radius: 8px;
  background: #111;
  transform: translateX(-50%);
}

.market-list-card {
  background: #fff;
}

.market-empty {
  padding: 34px 24px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.market-head,
.market-row {
  display: grid;
  grid-template-columns: minmax(126px, 1.35fr) minmax(92px, 0.9fr) 92px;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}

.market-head {
  height: 40px;
  color: var(--muted);
  font-size: 13px;
}

.market-head span:nth-child(2),
.market-head span:nth-child(3),
.market-row > div:nth-child(2),
.market-row > div:nth-child(3) {
  text-align: right;
}

.market-row {
  min-height: 66px;
  width: 100%;
}

.market-row > div:nth-child(3) {
  display: flex;
  justify-content: flex-end;
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.coin-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  font-size: 17px;
  font-weight: 720;
}

.coin-cell strong,
.market-price strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.coin-cell span,
.market-price span {
  color: var(--muted);
  font-size: 12px;
}

.change-pill {
  width: 72px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.change-pill.up {
  background: var(--red);
}

.change-pill.down {
  background: var(--green);
}

.contract-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 13px 24px 10px;
}

.symbol-title {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.symbol-title strong,
.chart-top strong {
  font-size: 21px;
  line-height: 1;
  font-weight: 680;
}

.contract-subtitle {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 440;
}

.contract-subtitle b {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 460;
}

.symbol-panel {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: none;
  pointer-events: none;
}

.symbol-panel.active {
  display: block;
  pointer-events: auto;
}

.symbol-panel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 14, 18, 0.22);
}

.symbol-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  max-height: 88vh;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.symbol-sheet-handle {
  width: 66px;
  height: 6px;
  flex: 0 0 auto;
  align-self: center;
  margin-top: 10px;
  border-radius: 999px;
  background: #d5d8de;
}

.symbol-sheet-header {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 22px 0;
}

.symbol-sheet-header strong {
  font-size: 17px;
  font-weight: 660;
}

.symbol-sheet-header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 24px;
  font-weight: 420;
}

.symbol-search {
  height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  margin: 4px 22px 16px;
  padding: 0 15px;
  border-radius: 24px;
  background: #f1f2f5;
  color: #a1a5ad;
}

.symbol-search span {
  font-size: 24px;
  line-height: 1;
}

.symbol-search input {
  height: 100%;
  color: #1f2227;
  font-size: 16px;
  font-weight: 430;
}

.symbol-search input::placeholder {
  color: #a1a5ad;
}

.selector-product-tabs,
.selector-market-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.selector-product-tabs::-webkit-scrollbar,
.selector-market-tabs::-webkit-scrollbar {
  display: none;
}

.selector-product-tabs {
  gap: 34px;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 560;
}

.selector-product-tabs button,
.selector-market-tabs button {
  position: relative;
  flex: 0 0 auto;
}

.selector-product-tabs .active {
  color: #111;
  font-weight: 720;
}

.selector-market-tabs {
  gap: 34px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}

.selector-market-tabs button {
  padding: 0 0 12px;
}

.selector-market-tabs .active {
  color: #111;
  font-weight: 640;
}

.selector-market-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.selector-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 22px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 440;
}

.selector-head span:last-child {
  text-align: right;
}

.symbol-panel-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 18px;
}

.selector-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(236, 238, 242, 0.72);
  cursor: pointer;
}

.selector-row.selected {
  background: #fafbfc;
}

.selector-star {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #d8dbe1;
  font-size: 26px;
  font-weight: 500;
}

.selector-star.active {
  color: #f0b90b;
}

.selector-symbol-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 5px 8px;
}

.selector-symbol-cell strong {
  min-width: 0;
  color: #05070a;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 620;
}

.selector-symbol-cell span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #111;
  font-size: 12px;
  font-weight: 560;
}

.selector-symbol-cell small {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 430;
}

.selector-price-cell {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 92px;
}

.selector-price-cell strong {
  color: #05070a;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 560;
}

.selector-price-cell span {
  font-size: 12px;
  font-weight: 440;
}

.selector-empty {
  padding: 44px 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.leverage-panel {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: none;
  pointer-events: none;
}

.leverage-panel.active {
  display: block;
  pointer-events: auto;
}

.leverage-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 14, 18, 0.24);
}

.leverage-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  padding: 26px 24px 28px;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.leverage-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leverage-sheet-header strong {
  color: #05070a;
  font-size: 21px;
  line-height: 1;
  font-weight: 620;
}

.leverage-sheet-header button {
  width: 38px;
  height: 38px;
  color: #9aa0a8;
  font-size: 34px;
  font-weight: 260;
  line-height: 1;
}

.leverage-stepper {
  height: 62px;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  margin-top: 30px;
  border-radius: var(--radius);
  background: var(--surface);
}

.leverage-stepper button {
  height: 100%;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 25px;
  font-weight: 340;
}

.leverage-stepper strong {
  text-align: center;
  color: #05070a;
  font-size: 25px;
  font-weight: 580;
}

.leverage-slider {
  width: 100%;
  margin: 30px 0 8px;
  accent-color: #20242b;
}

.leverage-marks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  color: var(--muted);
}

.leverage-marks button {
  position: relative;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 420;
}

.leverage-marks button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #d8dbe0;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.leverage-marks button.active {
  color: #111;
  font-weight: 540;
}

.leverage-marks button.active::before {
  border-color: #22262d;
}

.leverage-capacity {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 410;
}

.leverage-capacity b {
  color: #111;
  font-weight: 540;
}

.leverage-warning {
  margin: 22px 0 32px;
  color: #d89d42;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 460;
}

.confirm-leverage {
  width: 100%;
  height: 54px;
  border-radius: 27px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(9, 92, 255, 0.22);
}

.trade-board {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(142px, 0.86fr);
  gap: 14px;
  padding: 13px 24px 18px;
}

.trade-form {
  min-width: 0;
}

.select-row {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: 10px;
}

.select-chip,
.wide-select,
.quantity-input,
.book-depth button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  font-weight: 540;
}

.leverage-chip {
  justify-content: center;
}

.leverage-chip strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 560;
}

.wide-select,
.quantity-input {
  width: 100%;
  margin-top: 8px;
}

.order-type-wrap {
  position: relative;
}

.order-type-button span {
  min-width: 0;
}

.order-type-button i {
  margin-left: auto;
  font-style: normal;
}

.order-type-menu {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  z-index: 8;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.order-type-menu button {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #111;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.order-type-menu button.active {
  background: #f4f6fa;
  color: var(--blue);
}

.limit-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
  margin-top: 8px;
}

.limit-price-input {
  min-width: 0;
  height: 52px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface);
}

.limit-price-input span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
}

.limit-price-input input {
  height: 22px;
  color: #111;
  font-size: 17px;
  font-weight: 500;
}

#bboButton {
  height: 52px;
  border-radius: var(--radius);
  background: var(--surface);
  color: #111;
  font-size: 16px;
  font-weight: 560;
}

.wide-select small {
  color: var(--muted);
  font-size: 12px;
}

.quantity-input input {
  font-size: 14px;
  font-weight: 460;
}

.quantity-input input::placeholder {
  color: var(--muted-2);
}

.quantity-input span {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 540;
}

.hidden-input {
  display: none;
}

.amount-slider {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  background:
    linear-gradient(#e7e9ee, #e7e9ee) center / calc(100% - 8px) 2px no-repeat;
}

.amount-slider span {
  width: 14px;
  height: 14px;
  border: 2px solid #e7e9ee;
  border-radius: 50%;
  background: #fff;
}

.amount-slider span:first-child {
  width: 17px;
  height: 17px;
  border-color: #111;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 0;
  color: #111;
  font-size: 13px;
  font-weight: 440;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.check-line span {
  border-bottom: 1px dashed var(--muted);
}

.risk-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.risk-fields.active {
  display: grid;
}

.risk-fields input {
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--surface);
}

.balance-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.balance-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.balance-lines strong {
  margin-left: auto;
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.order-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.long-button,
.short-button {
  height: 46px;
  border-radius: 23px;
  color: #fff;
  font-size: 16px;
  font-weight: 620;
}

.long-button {
  background: var(--red);
}

.short-button {
  background: var(--green);
}

.mini-book {
  min-width: 0;
}

.funding-box {
  margin-bottom: 8px;
  text-align: right;
}

.funding-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.funding-box strong {
  font-size: 11px;
  font-weight: 520;
}

.funding-box i {
  font-style: normal;
}

.book-head,
.book-row {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 8px;
  align-items: center;
}

.book-head {
  color: var(--muted);
  font-size: 11px;
}

.book-head span:nth-child(2),
.book-row span:nth-child(2) {
  text-align: right;
}

.book-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.book-row {
  position: relative;
  min-height: 19px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.book-row::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  bottom: -2px;
  width: var(--depth, 0%);
  border-radius: 3px;
  z-index: 0;
}

.book-list.bids .book-row::after {
  background: rgba(246, 75, 104, 0.12);
}

.book-list.asks .book-row::after {
  background: rgba(40, 195, 134, 0.12);
}

.book-row span {
  position: relative;
  z-index: 1;
}

.mid-price {
  display: block;
  width: 100%;
  margin: 10px 0 8px;
  text-align: left;
  color: #111;
  font-size: 20px;
  line-height: 1;
  font-weight: 620;
}

.book-ratio {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 540;
}

.book-ratio span:first-child {
  color: var(--red);
}

.book-ratio i,
.book-ratio b {
  height: 5px;
  border-radius: 999px;
}

.book-ratio i {
  background: var(--red);
}

.book-ratio b {
  background: var(--green);
}

.book-depth {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  margin-top: 14px;
}

.book-depth button {
  min-height: 34px;
  justify-content: center;
  font-size: 14px;
}

.spread-label {
  display: none;
}

.contract-tabs {
  gap: 20px;
  padding: 12px 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 540;
}

.contract-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 13px;
}

.contract-tabs .trade-history-entry {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: #171a20;
}

.history-clock-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.history-clock-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.history-clock-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 7px;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  border-radius: 0 0 0 2px;
}

.contract-tabs i {
  font-style: normal;
}

.contract-tabs .active {
  color: var(--text);
}

.position-card {
  position: relative;
  padding: 16px 24px;
}

.position-list {
  margin-top: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 132px;
  color: #111;
  font-size: 15px;
  text-align: center;
}

.empty-state::before {
  content: "⌕";
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f2f4f9;
  color: #b8bec8;
  font-size: 40px;
}

.position-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.position-item header,
.position-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.position-item header strong {
  font-size: 15px;
  font-weight: 640;
}

.position-item header span {
  padding: 2px 7px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 620;
}

.position-item header span.long {
  background: var(--red);
}

.position-item header span.short {
  background: var(--green);
}

.position-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.position-line strong {
  color: #111;
  font-weight: 560;
}

.position-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.position-actions button {
  height: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  font-weight: 560;
}

.trade-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #111;
  font-size: 13px;
}

.trade-list-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2b2f36;
  font-weight: 470;
}

.trade-list-toolbar input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.trade-list-toolbar button {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 16px;
  background: var(--surface);
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.trade-position-item,
.order-item {
  padding: 13px 0 16px;
  border-bottom: 1px solid var(--line);
}

.position-item-head,
.order-item header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.position-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.position-title strong,
.order-item header strong {
  flex: 0 0 100%;
  color: #111;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 620;
}

.position-title .side-badge,
.order-badges span {
  min-width: 25px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 560;
}

.position-title .side-badge.long,
.order-badges span.long {
  background: rgba(246, 75, 104, 0.12);
  color: var(--red);
}

.position-title .side-badge.short,
.order-badges span.short {
  background: rgba(40, 195, 134, 0.12);
  color: var(--green);
}

.order-badges span.close {
  background: rgba(9, 92, 255, 0.1);
  color: var(--blue);
}

.position-title em,
.order-badges em {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  color: #7f8590;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}

.risk-bars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.risk-bars b {
  width: 5px;
  height: 20px;
  border-radius: 99px;
  background: #edf0f4;
}

.risk-bars.profit b:nth-child(-n + 3),
.risk-bars.loss b:nth-child(-n + 3) {
  background: var(--green);
}

.risk-bars.profit b:nth-child(n + 4) {
  background: var(--red);
}

.mini-kline-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #111;
  font-size: 20px;
}

.position-pnl-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.position-pnl-grid div:last-child {
  text-align: right;
}

.position-pnl-grid span,
.position-detail-grid dt,
.trade-sheet-quotes dt,
.trade-sheet-summary dt {
  display: inline-block;
  color: #858b95;
  font-size: 12px;
  font-weight: 420;
  border-bottom: 1px dotted #c7cbd2;
}

.position-pnl-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 560;
}

.position-detail-grid,
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 12px;
  margin: 16px 0 0;
}

.position-detail-grid div,
.order-detail-grid div {
  min-width: 0;
}

.position-detail-grid dt,
.position-detail-grid dd,
.order-detail-grid dt,
.order-detail-grid dd {
  margin: 0;
}

.position-detail-grid dd,
.order-detail-grid dd {
  margin-top: 4px;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.order-detail-grid dt {
  color: #858b95;
  font-size: 13px;
}

.position-risk-row,
.order-risk-line {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8a8f99;
  text-align: left;
  font-size: 13px;
}

.position-risk-row strong,
.order-risk-line strong {
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.position-risk-row i,
.order-risk-line i {
  color: var(--red);
  font-style: normal;
}

.position-risk-row b,
.order-risk-line b {
  color: var(--green);
  font-weight: inherit;
}

.position-risk-row em,
.order-risk-line em {
  color: var(--muted);
  font-style: normal;
}

.position-actions.three,
.order-actions-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.position-actions.three button,
.order-actions-row button {
  height: 36px;
  border-radius: 19px;
  background: var(--surface);
  color: #111;
  font-size: 13px;
  font-weight: 560;
}

.order-item header time {
  color: #8a8f99;
  font-size: 13px;
  white-space: nowrap;
}

.order-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.order-badges b {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a8f99;
  font-size: 13px;
  font-weight: 520;
}

.order-badges b i {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: #dfe2e8;
}

.order-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.trade-asset-summary {
  display: grid;
  gap: 12px;
  padding: 4px 0 12px;
}

.trade-asset-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.trade-asset-summary span {
  color: #858b95;
  font-size: 13px;
}

.trade-asset-summary strong {
  color: #111;
  font-size: 15px;
  font-weight: 620;
}

.trade-sheet-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
}

.trade-sheet-panel.active {
  display: block;
}

.trade-sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.58);
}

.trade-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 21px 22px 26px;
  border-radius: 22px 22px 0 0;
  background: #fff;
  transform: translateX(-50%);
}

.trade-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-sheet-header h2 {
  margin: 0;
  color: #111;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 610;
}

.trade-sheet-header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #9aa0aa;
  font-size: 31px;
  line-height: 1;
}

.trade-sheet-symbol {
  display: block;
  margin-top: 21px;
  color: #111;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.trade-sheet-tabs {
  display: flex;
  gap: 26px;
  margin-top: 19px;
  border-bottom: 1px solid var(--line);
  color: #8a8f99;
  font-size: 14px;
  font-weight: 480;
}

.trade-sheet-tabs button {
  position: relative;
  padding-bottom: 12px;
}

.trade-sheet-tabs .active {
  color: #111;
  font-weight: 580;
}

.trade-sheet-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: #111;
  transform: translateX(-50%);
}

.trade-sheet-quotes,
.trade-sheet-summary {
  display: grid;
  gap: 10px;
  margin: 19px 0 0;
}

.trade-sheet-quotes.two-line {
  margin-top: 19px;
}

.trade-sheet-quotes div,
.trade-sheet-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.trade-sheet-quotes dd,
.trade-sheet-summary dd {
  margin: 0;
  color: #111;
  font-size: 14px;
  font-weight: 560;
}

.risk-edit-block {
  margin-top: 20px;
}

.risk-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.risk-edit-head strong {
  font-size: 14px;
  font-weight: 580;
}

.risk-edit-head span {
  color: #111;
  font-size: 12px;
  font-weight: 500;
}

.trade-sheet-input {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--surface);
}

.trade-sheet-input + .trade-sheet-input {
  margin-top: 8px;
}

#closeLimitPriceWrap:not(.hidden) + .trade-sheet-input {
  margin-top: 8px;
}

.trade-sheet-input input {
  height: 50px;
  color: #111;
  font-size: 15px;
  font-weight: 460;
}

.trade-sheet-input input::placeholder {
  color: #a0a6b0;
}

.trade-sheet-input span {
  color: #111;
  font-size: 13px;
  font-weight: 580;
}

.risk-warning {
  margin: 16px 0 0;
  color: #d7983b;
  font-size: 12px;
  line-height: 1.6;
}

.close-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 19px 0 12px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface);
}

.close-type-switch button {
  min-height: 36px;
  border-radius: 8px;
  color: #6f7580;
  font-size: 13px;
  font-weight: 560;
}

.close-type-switch .active {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.close-percent-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.close-percent-buttons button {
  height: 32px;
  border-radius: 17px;
  background: var(--surface);
  color: #6f7580;
  font-size: 12px;
  font-weight: 560;
}

.close-percent-buttons .active {
  background: #111;
  color: #fff;
}

.edit-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.trade-sheet-confirm {
  width: 100%;
  height: 54px;
  margin-top: 24px;
  border-radius: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.trade-history-view {
  padding-bottom: 0;
  background: #fff;
}

.trade-history-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  padding: 13px 18px 9px;
}

.trade-history-header > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #111;
}

.trade-history-header > button:first-child {
  font-size: 30px;
  line-height: 1;
}

.trade-history-filter {
  justify-self: end;
  border: 1px solid var(--line);
  font-size: 18px;
}

.trade-history-header div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.trade-history-header strong {
  font-size: 19px;
  font-weight: 620;
}

.trade-history-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 420;
}

.trade-history-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 520;
  scrollbar-width: none;
}

.trade-history-tabs::-webkit-scrollbar {
  display: none;
}

.trade-history-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 12px;
}

.trade-history-tabs .active {
  color: #111;
  font-weight: 620;
}

.trade-history-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: #111;
  transform: translateX(-50%);
}

.history-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 8px;
}

.history-filter-row button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  color: #171a20;
  font-size: 13px;
  font-weight: 560;
}

.close-history-list {
  padding: 0 22px 26px;
}

.history-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
}

.history-empty::before {
  content: "⌕";
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted-2);
  font-size: 34px;
  font-weight: 420;
}

.history-empty strong {
  color: #171a20;
  font-size: 15px;
  font-weight: 580;
}

.history-empty span {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.6;
}

.close-history-card {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}

.close-history-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.close-history-card header strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 650;
}

.close-history-card header p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.close-history-card header span,
.close-history-card header em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  color: #7c828c;
  font-style: normal;
  font-weight: 560;
}

.close-history-card header span.long {
  background: rgba(246, 75, 104, 0.1);
  color: var(--red);
}

.close-history-card header span.short {
  background: rgba(40, 195, 134, 0.12);
  color: var(--green);
}

.close-history-card header b {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #7e8490;
  font-size: 13px;
  font-weight: 520;
}

.close-history-fields {
  display: grid;
  gap: 11px;
  margin: 0;
}

.close-history-fields div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.close-history-fields dt,
.close-history-fields dd {
  margin: 0;
}

.close-history-fields dt {
  color: #8d929c;
  font-size: 13px;
  font-weight: 420;
}

.close-history-fields dd {
  color: #111;
  font-size: 14px;
  font-weight: 620;
  text-align: right;
}

.chart-top {
  justify-content: space-between;
  padding: 12px 16px 7px;
}

.chart-top > button {
  width: 28px;
  font-size: 28px;
  line-height: 1;
}

.chart-top > div:first-of-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.chart-top strong {
  font-size: 19px;
  font-weight: 620;
}

.chart-top span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 750;
  white-space: nowrap;
}

.chart-actions {
  gap: 8px;
}

.chart-actions button {
  width: 28px;
  height: 28px;
  font-size: 20px;
  font-weight: 520;
}

.chart-actions .favorite-active {
  color: #f0b90b;
}

.chart-tabs {
  gap: 24px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 560;
}

.chart-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 10px;
}

.chart-tabs .active {
  color: #111;
}

.chart-tabs .active::after {
  width: 20px;
  height: 3px;
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  padding: 8px 16px 10px;
}

.quote-panel strong {
  display: block;
  margin-top: 4px;
  color: #e83362;
  font-size: 25px;
  line-height: 1;
  font-weight: 620;
}

.quote-panel p {
  margin: 6px 0 3px;
  color: #111;
  font-size: 13px;
  font-weight: 540;
}

.quote-panel p b,
.pair-row b {
  font-size: 12px;
  font-weight: 500;
}

.quote-panel p i,
.quote-panel em i,
.quote-panel p b {
  font-style: normal;
}

.quote-panel em {
  display: block;
  font-size: 12px;
  font-style: normal;
}

.quote-panel small {
  display: block;
  margin-top: 5px;
  color: #d89d42;
  font-size: 12px;
  font-weight: 620;
}

.quote-panel dl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 3px 8px;
  margin: 0;
  font-size: 12px;
}

.quote-panel dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.pair-row {
  width: 100%;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.pair-row strong {
  font-size: 15px;
  font-weight: 620;
}

.pair-row span {
  color: #e83362;
  font-size: 13px;
}

.pair-row b {
  color: #e83362;
  font-size: 12px;
  font-weight: 500;
}

.pair-row i {
  color: var(--muted);
  font-size: 22px;
  font-style: normal;
}

.timeframe-tabs {
  gap: 17px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.timeframe-tabs button {
  flex: 0 0 auto;
}

.timeframe-tabs .active {
  padding: 7px 11px;
  border-radius: 16px;
  background: var(--surface);
  color: #111;
}

.chart-canvas-wrap {
  position: relative;
  height: calc(100vh - 443px);
  min-height: 320px;
  background: #fff;
}

#klineCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.crosshair-info {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.crosshair-info strong {
  color: #111;
}

.hidden {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100vw, 430px);
  height: 94px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 10px 12px 8px;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.bottom-nav.hidden-nav {
  display: none;
}

.chart-trade-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 21;
  width: min(100vw, 430px);
  height: 86px;
  display: grid;
  grid-template-columns: 58px 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%);
}

.chart-trade-bar button {
  height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: #111;
  font-size: 12px;
  font-weight: 540;
}

.chart-trade-bar button span {
  font-size: 22px;
  line-height: 1;
}

.chart-trade-bar .chart-long,
.chart-trade-bar .chart-short {
  height: 46px;
  border-radius: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 620;
}

.chart-trade-bar .chart-long {
  background: var(--red);
}

.chart-trade-bar .chart-short {
  background: var(--green);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.bottom-nav button span {
  font-size: 28px;
  line-height: 1;
}

.bottom-nav button.active {
  color: #111;
}

.bottom-nav .trade-fab {
  align-self: start;
  color: var(--muted);
  transform: translateY(-20px);
}

.bottom-nav .trade-fab span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 34px;
}

/* Global refinement pass for a lighter, denser mobile exchange feel. */
body {
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font-weight: 430;
}

.view {
  padding-bottom: 92px;
}

.home-header,
.contract-header,
.chart-top {
  padding-left: 20px;
  padding-right: 20px;
}

.home-header {
  min-height: 54px;
  padding-top: 7px;
  padding-bottom: 4px;
}

.avatar-button,
.avatar-button img {
  width: 38px;
  height: 38px;
}

.exchange-pill {
  min-width: 128px;
  height: 36px;
  font-size: 17px;
  font-weight: 560;
}

.exchange-pill span {
  margin-left: 6px;
  font-size: 12px;
}

.home-actions,
.chart-actions {
  gap: 10px;
}

.home-actions button,
.contract-actions button,
.chart-actions button {
  width: 29px;
  height: 29px;
  font-size: 22px;
  font-weight: 520;
}

.home-actions .coin-action {
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 600;
}

.home-search {
  height: 40px;
  grid-template-columns: 23px 1fr 26px;
  gap: 6px;
  margin: 6px 20px 9px;
  padding: 0 11px;
  border-radius: 20px;
}

.home-search > span {
  font-size: 21px;
}

.home-search input {
  font-size: 14px;
  font-weight: 420;
}

.home-search button {
  width: 26px;
  height: 26px;
  font-size: 18px;
  font-weight: 480;
}

.asset-card {
  padding: 6px 20px 10px;
}

.muted-label {
  font-size: 12px;
  font-weight: 420;
}

.asset-row {
  gap: 14px;
  margin-top: 4px;
}

.asset-row strong,
.assets-summary strong {
  font-size: 25px;
  font-weight: 580;
}

.asset-row span,
.daily-pnl {
  font-size: 12px;
  font-weight: 420;
}

.primary-blue {
  width: 70px;
  height: 33px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 560;
}

.shortcut-row,
.asset-action-row {
  gap: 8px;
}

.shortcut-row {
  padding: 10px 20px 11px;
}

.shortcut-row button,
.asset-action-row button,
.agent-actions button {
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
}

.shortcut-row span,
.asset-action-row span {
  width: 42px;
  height: 42px;
}

.shortcut-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.25;
}

.promo-carousel {
  margin: 8px 20px 14px;
}

.promo-card {
  min-height: 84px;
  grid-template-columns: 84px 1fr 36px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.promo-art {
  height: 58px;
}

.promo-art strong {
  inset: 15px 20px;
  font-size: 29px;
}

.promo-art i {
  width: 15px;
  height: 15px;
}

.promo-card p {
  margin-bottom: 6px;
  font-size: 13px;
}

.promo-card h2 {
  font-size: 17px;
  line-height: 1.28;
  font-weight: 600;
}

.promo-card > span {
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 560;
}

.product-tabs {
  gap: 22px;
  padding: 8px 20px 12px;
  font-size: 14px;
  font-weight: 480;
}

.product-tabs .active {
  font-size: 15px;
  font-weight: 600;
}

.market-tabs,
.contract-tabs,
.chart-tabs,
.trade-history-tabs,
.copy-tabs {
  font-size: 13px;
  font-weight: 480;
}

.market-tabs {
  gap: 24px;
  padding: 8px 20px 6px;
}

.market-tabs button {
  padding-bottom: 9px;
}

.market-tabs .active::after,
.chart-tabs .active::after,
.contract-tabs .active::after,
.copy-tabs .active::after,
.trade-history-tabs .active::after,
.selector-market-tabs .active::after {
  width: 22px;
  height: 3px;
}

.market-head,
.market-row {
  grid-template-columns: minmax(116px, 1.35fr) minmax(84px, 0.9fr) 78px;
  gap: 8px;
  padding-left: 20px;
  padding-right: 20px;
}

.market-head {
  height: 34px;
  font-size: 12px;
}

.market-row {
  min-height: 58px;
}

.coin-cell {
  gap: 10px;
}

.coin-icon {
  width: 30px;
  height: 30px;
  font-size: 15px;
  font-weight: 600;
}

.coin-cell strong,
.market-price strong {
  font-size: 15px;
  font-weight: 580;
}

.coin-cell span,
.market-price span {
  font-size: 11.5px;
}

.change-pill {
  width: 68px;
  height: 24px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 480;
}

.contract-header {
  padding-top: 10px;
  padding-bottom: 8px;
}

.symbol-title strong,
.chart-top strong {
  font-size: 18px;
  font-weight: 600;
}

.contract-subtitle {
  font-size: 12px;
  font-weight: 410;
}

.contract-subtitle b {
  font-size: 11px;
  font-weight: 430;
}

.symbol-sheet {
  border-radius: 18px 18px 0 0;
}

.symbol-sheet-header {
  height: 42px;
  padding-left: 18px;
  padding-right: 18px;
}

.symbol-sheet-header strong {
  font-size: 15px;
  font-weight: 580;
}

.symbol-sheet-header button {
  font-size: 22px;
}

.symbol-search {
  height: 42px;
  grid-template-columns: 28px 1fr;
  margin: 3px 18px 13px;
  padding: 0 13px;
  border-radius: 21px;
}

.symbol-search span {
  font-size: 20px;
}

.symbol-search input {
  font-size: 14px;
}

.selector-product-tabs {
  gap: 28px;
  padding: 0 18px 14px;
  font-size: 15px;
  font-weight: 500;
}

.selector-product-tabs .active {
  font-weight: 620;
}

.selector-market-tabs {
  gap: 28px;
  padding: 0 18px;
  font-size: 13px;
}

.selector-market-tabs button {
  padding-bottom: 10px;
}

.selector-head {
  padding: 13px 18px 6px;
  font-size: 12px;
}

.selector-row {
  min-height: 62px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  padding: 0 18px;
}

.selector-star {
  width: 30px;
  height: 30px;
  font-size: 22px;
}

.selector-symbol-cell strong {
  font-size: 17px;
  font-weight: 580;
}

.selector-symbol-cell span {
  font-size: 11px;
  font-weight: 500;
}

.selector-symbol-cell small {
  font-size: 12px;
}

.selector-price-cell {
  min-width: 82px;
  gap: 4px;
}

.selector-price-cell strong {
  font-size: 16px;
  font-weight: 520;
}

.leverage-sheet {
  padding: 20px 20px 24px;
  border-radius: 18px 18px 0 0;
}

.leverage-sheet-header strong {
  font-size: 18px;
  font-weight: 580;
}

.leverage-sheet-header button {
  width: 32px;
  height: 32px;
  font-size: 28px;
}

.leverage-stepper {
  height: 54px;
  grid-template-columns: 52px 1fr 52px;
  margin-top: 24px;
}

.leverage-stepper button {
  font-size: 22px;
}

.leverage-stepper strong {
  font-size: 22px;
  font-weight: 540;
}

.leverage-slider {
  margin: 24px 0 8px;
}

.leverage-marks button {
  font-size: 12px;
}

.leverage-capacity {
  margin-top: 24px;
  font-size: 13px;
}

.leverage-warning {
  margin: 18px 0 26px;
  font-size: 12px;
}

.confirm-leverage {
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 560;
}

.trade-board {
  gap: 11px;
  padding: 10px 20px 14px;
}

.select-row {
  gap: 8px;
}

.select-chip,
.wide-select,
.quantity-input,
.book-depth button {
  min-height: 40px;
  gap: 7px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

.leverage-chip strong {
  font-size: 13px;
  font-weight: 530;
}

.wide-select,
.quantity-input,
.limit-price-row {
  margin-top: 7px;
}

.order-type-menu button {
  height: 38px;
  font-size: 13px;
  font-weight: 460;
}

.limit-price-row {
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 7px;
}

.limit-price-input,
#bboButton {
  height: 46px;
}

.limit-price-input {
  padding: 0 10px;
}

.limit-price-input span,
.wide-select small {
  font-size: 11px;
}

.limit-price-input input {
  height: 20px;
  font-size: 15px;
  font-weight: 460;
}

#bboButton {
  font-size: 14px;
  font-weight: 520;
}

.quantity-input input,
.quantity-input span {
  font-size: 13px;
}

.amount-slider {
  height: 30px;
  margin-top: 12px;
}

.amount-slider span {
  width: 12px;
  height: 12px;
}

.amount-slider span:first-child {
  width: 15px;
  height: 15px;
}

.check-line {
  font-size: 12px;
}

.check-line input {
  width: 14px;
  height: 14px;
}

.risk-fields {
  gap: 6px;
}

.risk-fields input {
  height: 34px;
}

.balance-lines {
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
}

.balance-lines strong {
  font-size: 12px;
  font-weight: 520;
}

.order-actions {
  gap: 8px;
  margin-top: 10px;
}

.long-button,
.short-button {
  height: 42px;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 580;
}

.funding-box {
  margin-bottom: 6px;
}

.book-list {
  gap: 4px;
}

.book-row {
  min-height: 17px;
  font-size: 12px;
}

.mid-price {
  margin: 8px 0 7px;
  font-size: 17px;
  font-weight: 540;
}

.book-ratio {
  font-size: 11px;
}

.book-depth {
  grid-template-columns: 1fr 38px;
  gap: 7px;
  margin-top: 11px;
}

.book-depth button {
  min-height: 30px;
  font-size: 12px;
}

.contract-tabs {
  gap: 16px;
  padding: 10px 20px 0;
}

.contract-tabs button {
  padding-bottom: 10px;
}

.contract-tabs .trade-history-entry {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.history-clock-icon {
  width: 16px;
  height: 16px;
}

.position-card {
  padding: 12px 20px;
}

.empty-state {
  gap: 11px;
  min-height: 112px;
  font-size: 13px;
}

.empty-state::before {
  width: 50px;
  height: 50px;
  font-size: 34px;
}

.trade-position-item,
.order-item {
  padding: 11px 0 13px;
}

.position-title {
  gap: 5px;
}

.position-title strong,
.order-item header strong {
  font-size: 14.5px;
  font-weight: 580;
}

.position-title .side-badge,
.order-badges span,
.position-title em,
.order-badges em {
  min-height: 18px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
}

.risk-bars b {
  width: 4px;
  height: 17px;
}

.mini-kline-button {
  width: 29px;
  height: 29px;
  font-size: 18px;
}

.position-pnl-grid {
  gap: 10px;
  margin-top: 12px;
}

.position-pnl-grid span,
.position-detail-grid dt,
.trade-sheet-quotes dt,
.trade-sheet-summary dt {
  font-size: 11.5px;
}

.position-pnl-grid strong {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 520;
}

.position-detail-grid,
.order-detail-grid {
  gap: 10px;
  margin-top: 12px;
}

.position-detail-grid dd,
.order-detail-grid dd {
  font-size: 12.5px;
  font-weight: 470;
}

.order-detail-grid dt,
.position-risk-row,
.order-risk-line,
.order-item header time,
.order-badges b,
.trade-asset-summary span {
  font-size: 12px;
}

.position-risk-row,
.order-risk-line {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 10px;
}

.position-risk-row strong,
.order-risk-line strong {
  font-size: 12px;
  font-weight: 520;
}

.position-actions.three,
.order-actions-row {
  gap: 8px;
  margin-top: 12px;
}

.position-actions.three button,
.order-actions-row button {
  height: 32px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 520;
}

.trade-list-toolbar {
  margin-bottom: 10px;
  font-size: 12px;
}

.trade-list-toolbar button {
  min-height: 28px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 520;
}

.trade-asset-summary {
  gap: 10px;
  padding-bottom: 10px;
}

.trade-asset-summary div {
  padding: 11px 0;
}

.trade-asset-summary strong {
  font-size: 13px;
  font-weight: 560;
}

.trade-sheet {
  padding: 18px 20px 22px;
  border-radius: 18px 18px 0 0;
}

.trade-sheet-header h2 {
  font-size: 18px;
  font-weight: 580;
}

.trade-sheet-header button {
  width: 29px;
  height: 29px;
  font-size: 27px;
}

.trade-sheet-symbol {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 560;
}

.trade-sheet-tabs {
  gap: 22px;
  margin-top: 15px;
  font-size: 13px;
}

.trade-sheet-tabs button {
  padding-bottom: 10px;
}

.trade-sheet-quotes,
.trade-sheet-summary,
.trade-sheet-quotes.two-line {
  gap: 8px;
  margin-top: 15px;
}

.trade-sheet-quotes dd,
.trade-sheet-summary dd {
  font-size: 12.5px;
  font-weight: 520;
}

.risk-edit-block {
  margin-top: 16px;
}

.risk-edit-head strong {
  font-size: 13px;
  font-weight: 540;
}

.trade-sheet-input {
  min-height: 45px;
  padding: 0 11px;
}

.trade-sheet-input input {
  height: 45px;
  font-size: 13.5px;
}

.trade-sheet-input span {
  font-size: 12px;
  font-weight: 540;
}

.risk-warning {
  margin-top: 13px;
  font-size: 11.5px;
}

.close-type-switch {
  margin: 15px 0 10px;
}

.close-type-switch button {
  min-height: 32px;
  font-size: 12px;
  font-weight: 520;
}

.close-percent-buttons {
  gap: 7px;
  margin-top: 9px;
}

.close-percent-buttons button {
  height: 29px;
  font-size: 11.5px;
  font-weight: 520;
}

.trade-sheet-confirm {
  height: 48px;
  margin-top: 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 560;
}

.trade-history-header {
  grid-template-columns: 34px 1fr 34px;
  padding: 10px 18px 7px;
}

.trade-history-header > button {
  width: 29px;
  height: 29px;
}

.trade-history-header > button:first-child {
  font-size: 26px;
}

.trade-history-filter {
  font-size: 16px;
}

.trade-history-header strong {
  font-size: 17px;
  font-weight: 580;
}

.trade-history-header span {
  font-size: 12px;
}

.trade-history-tabs {
  gap: 20px;
  padding: 10px 20px 0;
}

.trade-history-tabs button {
  padding-bottom: 10px;
}

.history-filter-row {
  gap: 8px;
  padding: 11px 20px 7px;
}

.history-filter-row button {
  min-height: 29px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 520;
}

.close-history-list {
  padding: 0 20px 22px;
}

.history-empty {
  min-height: 230px;
}

.history-empty::before {
  width: 46px;
  height: 46px;
  font-size: 30px;
}

.history-empty strong {
  font-size: 14px;
  font-weight: 540;
}

.close-history-card {
  padding: 13px 0 15px;
}

.close-history-card header {
  gap: 12px;
  margin-bottom: 11px;
}

.close-history-card header strong {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.close-history-card header b,
.close-history-fields dt {
  font-size: 12px;
}

.close-history-fields {
  gap: 9px;
}

.close-history-fields dd {
  font-size: 13px;
  font-weight: 560;
}

.chart-top {
  padding: 9px 16px 6px;
}

#chartView.view.active {
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  padding-bottom: 88px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

#chartView.view.active::after {
  content: "";
  display: block;
  height: 132px;
}

#chartView.view.active::-webkit-scrollbar {
  display: none;
}

.chart-top > button {
  width: 26px;
  font-size: 24px;
}

.chart-top span {
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 560;
}

.chart-actions button {
  width: 26px;
  height: 26px;
  font-size: 18px;
}

.chart-tabs {
  gap: 20px;
  padding: 8px 16px 0;
}

.chart-tabs button {
  padding-bottom: 9px;
}

.quote-panel {
  grid-template-columns: minmax(0, 1fr) minmax(104px, 116px);
  gap: 7px;
  padding: 7px 14px 8px;
}

.quote-panel > div,
.quote-panel dl {
  min-width: 0;
}

.quote-panel strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-panel p {
  font-size: 12px;
  font-weight: 500;
}

.quote-panel dl,
.quote-panel em,
.quote-panel small {
  font-size: 11.5px;
}

.quote-panel dl {
  gap: 2px 6px;
}

.quote-panel dt,
.quote-panel dd {
  white-space: nowrap;
}

.pair-row {
  height: 39px;
  gap: 9px;
  padding: 0 16px;
  font-size: 13px;
}

.pair-row strong {
  font-size: 13px;
  font-weight: 560;
}

.pair-row span,
.pair-row b {
  font-size: 11.5px;
}

.pair-row i {
  font-size: 19px;
}

.timeframe-tabs {
  gap: 14px;
  height: 39px;
  font-size: 12px;
  font-weight: 480;
}

.timeframe-tabs .active {
  padding: 5px 9px;
}

.chart-canvas-wrap {
  height: 560px;
  min-height: 500px;
  touch-action: pan-y;
}

#klineCanvas {
  touch-action: pan-y;
  cursor: grab;
}

#klineCanvas:active {
  cursor: grabbing;
}

.user-header {
  height: 58px;
  grid-template-columns: 38px 1fr 38px;
  padding: 6px 20px 0;
}

.user-header h1 {
  font-size: 20px;
  font-weight: 600;
}

.user-header button {
  width: 36px;
  height: 36px;
  font-size: 28px;
}

.user-switch-button {
  font-size: 20px !important;
  font-weight: 500 !important;
}

.user-profile-card {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 30px 20px 36px;
}

.user-avatar-large {
  width: 68px;
  height: 68px;
}

.user-profile-card strong {
  font-size: 21px;
  font-weight: 620;
}

.user-profile-card p {
  gap: 7px;
  margin-top: 9px;
  font-size: 14px;
}

.user-tabs {
  gap: 28px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
}

.user-tabs button {
  padding-bottom: 13px;
}

.user-tabs .active {
  font-weight: 620;
}

.user-tabs .active::after {
  width: 26px;
  height: 3px;
}

.user-menu-list {
  padding: 22px 20px 0;
}

.user-menu-list button {
  min-height: 58px;
  grid-template-columns: minmax(92px, 1fr) auto 18px;
}

.user-menu-list span {
  font-size: 16px;
  font-weight: 450;
}

.user-menu-list b {
  font-size: 13px;
}

.user-menu-list em {
  font-size: 12px;
  font-weight: 520;
}

.user-menu-list i {
  font-size: 26px;
}

.agent-header,
.finance-header,
.copy-header {
  height: 48px;
  grid-template-columns: 38px 1fr 38px;
  padding: 0 16px;
}

.agent-header h1,
.finance-header h1,
.copy-header h1,
.subpage-header h1 {
  font-size: 18px;
  font-weight: 600;
}

.agent-header button,
.finance-header button,
.copy-header button {
  width: 34px;
  height: 34px;
  font-size: 25px;
}

.finance-help,
.copy-help {
  font-size: 14px !important;
  font-weight: 560 !important;
}

.agent-hero {
  grid-template-columns: 56px minmax(0, 1fr) 50px;
  gap: 12px;
  padding: 20px 16px 15px;
}

.agent-avatar {
  width: 56px;
  height: 56px;
}

.agent-greeting strong {
  font-size: 17px;
  font-weight: 600;
}

.agent-greeting p,
.agent-filter,
.agent-overview p,
.agent-link-info,
.agent-commission-row {
  font-size: 12px;
}

.agent-balance {
  grid-template-columns: minmax(0, 1fr) 92px;
  padding: 15px 16px;
}

.agent-balance strong,
.agent-stat-grid strong {
  font-size: 14px;
  font-weight: 580;
}

.agent-balance button,
.agent-share-button {
  height: 40px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 560;
}

.agent-actions {
  padding: 20px 12px 15px;
}

.agent-actions span {
  width: 30px;
  height: 30px;
  font-size: 21px;
}

.agent-overview,
.agent-link-card {
  padding: 14px 16px 0;
}

.agent-overview h2,
.agent-link-card h2 {
  font-size: 16px;
  font-weight: 600;
}

.agent-link-card header button {
  font-size: 22px;
  font-weight: 420;
}

.agent-stat-grid {
  margin-top: 14px;
}

.agent-stat-grid article {
  min-height: 64px;
}

.agent-commission-head {
  margin-top: 18px;
}

.agent-link-info {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px 8px;
  margin: 15px 0 18px;
}

.finance-intro,
.copy-hero {
  margin: 8px 16px 12px;
  padding: 16px;
  border-radius: 12px;
}

.finance-intro span,
.copy-hero span,
.wealth-header span {
  font-size: 12px;
  font-weight: 560;
}

.finance-intro strong,
.copy-hero strong {
  font-size: 16px;
  font-weight: 600;
}

.finance-intro p,
.finance-note p,
.copy-hero p,
.copy-rule-card p,
.wealth-header p,
.wealth-note p {
  font-size: 12px;
  line-height: 1.48;
}

.wallet-card,
.finance-form-card,
.finance-note,
.finance-orders,
.finance-balance-card,
.copy-rule-card,
.copy-leader-list,
.copy-create-card,
.copy-orders,
.stake-card,
.wealth-pools,
.wealth-positions,
.wealth-note {
  margin: 10px 16px;
  border-radius: 10px;
}

.wallet-card,
.finance-balance-card,
.finance-note,
.finance-orders,
.copy-rule-card,
.copy-leader-list,
.copy-create-card,
.copy-orders,
.stake-card,
.wealth-pools,
.wealth-positions,
.wealth-note {
  padding: 14px;
}

.wallet-card {
  grid-template-columns: minmax(0, 1fr) 82px;
}

.wallet-card strong {
  font-size: 14px;
  font-weight: 580;
}

.wallet-card button {
  height: 34px;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 540;
}

.finance-form-card {
  gap: 8px;
}

.finance-field button,
.finance-input {
  min-height: 48px;
  padding: 10px 12px;
}

.finance-field button,
.rate-card strong {
  font-size: 13px;
  font-weight: 540;
}

.finance-input input {
  height: 24px;
  font-size: 15px;
  font-weight: 480;
}

.estimate-row {
  min-height: 40px;
}

.estimate-row strong,
.finance-balance-card strong {
  font-size: 15px;
  font-weight: 580;
}

.finance-primary {
  height: 46px;
  border-radius: 23px;
  font-size: 14px;
  font-weight: 560;
}

.finance-note h2,
.finance-orders h2,
.copy-rule-card h2,
.copy-leader-list h2,
.copy-create-card h2,
.copy-orders h2,
.stake-card h2,
.wealth-pools h2,
.wealth-positions h2,
.wealth-note h2 {
  font-size: 14.5px;
  font-weight: 600;
}

.finance-orders article,
.copy-orders article,
.wealth-pools article,
.wealth-positions article {
  padding: 11px 0;
}

.finance-orders strong,
.finance-orders span,
.copy-orders strong,
.copy-orders span {
  font-size: 12.5px;
  font-weight: 540;
}

.finance-pagination {
  gap: 14px;
  font-size: 12px;
}

.finance-pagination button {
  width: 29px;
  height: 26px;
  font-size: 17px;
}

.copy-hero {
  grid-template-columns: minmax(0, 1fr) 82px;
}

.copy-hero button,
.copy-create-card > button,
.copy-card-foot button {
  height: 36px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 560;
}

.copy-tabs {
  gap: 22px;
  padding: 3px 16px 0;
}

.copy-tabs button {
  padding-bottom: 10px;
}

.copy-tabs .active {
  font-weight: 600;
}

.copy-rule-card div {
  margin-top: 11px;
  font-size: 12px;
}

.copy-leader-list header,
.copy-create-card header,
.copy-orders header {
  margin-bottom: 10px;
}

.copy-leader-card {
  padding: 12px 0;
}

.leader-top {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
}

.leader-avatar {
  width: 38px;
  height: 38px;
  font-weight: 600;
}

.leader-top strong,
.leader-stats strong {
  font-size: 13.5px;
  font-weight: 580;
}

.leader-top em {
  padding: 3px 7px;
  font-size: 11.5px;
  font-weight: 540;
}

.leader-stats {
  margin-top: 11px;
}

.copy-card-foot {
  grid-template-columns: minmax(0, 1fr) 70px;
  margin-top: 11px;
}

.copy-create-card input,
.copy-create-grid label {
  min-height: 44px;
}

.copy-create-card input {
  font-size: 13px;
}

.copy-create-grid strong {
  font-size: 12.5px;
  font-weight: 560;
}

.wealth-header {
  grid-template-columns: minmax(0, 1fr) 34px;
  padding: 15px 20px 12px;
}

.wealth-header h1 {
  font-size: 19px;
  font-weight: 600;
}

.wealth-header button {
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 560;
}

.wealth-summary {
  gap: 8px;
  margin: 0 16px 10px;
}

.wealth-summary article {
  min-height: 68px;
  padding: 11px;
}

.wealth-summary strong {
  font-size: 15px;
  font-weight: 580;
}

.stake-card p {
  font-size: 12px;
}

.stake-card em {
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 560;
}

.stake-rate {
  margin-top: 13px;
  padding: 11px;
}

.stake-rate strong {
  font-size: 14px;
  font-weight: 580;
}

.stake-input {
  min-height: 52px;
  padding: 11px;
}

.stake-input input {
  height: 26px;
  font-size: 16px;
  font-weight: 480;
}

.stake-input b {
  font-size: 13px;
}

.stake-estimate {
  min-height: 40px;
}

.stake-estimate strong {
  font-size: 15px;
  font-weight: 580;
}

.stake-actions {
  grid-template-columns: 74px 1fr;
  gap: 8px;
}

.stake-actions button,
.wealth-positions header button {
  height: 42px;
  border-radius: 21px;
  font-size: 13px;
  font-weight: 560;
}

.wealth-pools strong,
.wealth-positions strong {
  font-size: 13.5px;
  font-weight: 580;
}

.assets-view {
  padding: 0 20px 96px;
}

.assets-top-tabs {
  height: 44px;
}

.assets-top-tabs button,
.asset-list-tabs > button,
.transfer-page-tabs button {
  height: 36px;
  font-size: 15px;
  font-weight: 520;
}

.assets-top-tabs .active::after,
.asset-list-tabs .active::after,
.transfer-page-tabs .active::after {
  height: 3px;
}

.assets-summary {
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) 62px;
  padding: 10px 0 6px;
}

.assets-summary p {
  margin-top: 10px;
  font-size: 12px;
}

.assets-summary > i {
  height: 58px;
}

.assets-summary > i::before {
  top: 14px;
  width: 44px;
  height: 28px;
}

.assets-summary > i::after {
  top: 30px;
  width: 28px;
  height: 15px;
}

.asset-action-row {
  padding: 7px 0 16px;
}

.asset-latest-row {
  min-height: 54px;
}

.asset-latest-row strong {
  font-size: 13px;
  font-weight: 540;
}

.asset-list-tabs {
  gap: 18px;
  padding-top: 18px;
}

.asset-list-tabs div {
  gap: 12px;
}

.asset-list-tabs div button {
  font-size: 20px;
}

.asset-token-list article {
  padding: 13px 0;
}

.asset-token-main {
  gap: 10px;
}

.asset-token-icon {
  width: 34px;
  height: 34px;
  font-size: 9px;
  font-weight: 600;
}

.asset-token-main strong {
  font-size: 15px;
  font-weight: 540;
}

.asset-token-main em,
.asset-token-balance span {
  margin-top: 4px;
}

.asset-token-balance strong {
  font-size: 13px;
  font-weight: 540;
}

.subpage-header {
  height: 54px;
  grid-template-columns: 36px 1fr 36px;
  padding: 6px 18px 0;
}

.subpage-header button {
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.subpage-header button:last-child {
  font-size: 13px;
  font-weight: 520;
}

.transfer-page-tabs {
  height: 44px;
  padding: 0 20px;
}

.transfer-route-card {
  gap: 7px;
  margin: 22px 20px 20px;
}

.transfer-account-select {
  min-height: 66px;
  padding: 12px 14px;
}

.transfer-account-select span {
  font-size: 12px;
}

.transfer-account-select strong {
  font-size: 14px;
  font-weight: 540;
}

.transfer-swap-button {
  top: 53px;
  width: 42px;
  height: 42px;
  font-size: 19px;
}

.transfer-form-panel {
  gap: 18px;
  margin: 0 20px;
}

.transfer-input-row {
  min-height: 54px;
  gap: 8px;
}

.transfer-input-row span {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 520;
}

.transfer-input-row input {
  height: 44px;
  padding: 0 11px;
  font-size: 15px;
  font-weight: 440;
}

.transfer-input-row strong,
.transfer-input-row button {
  font-size: 13px;
  font-weight: 540;
}

.subpage-primary {
  width: min(306px, calc(100vw - 64px));
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 540;
}

.account-picker-sheet {
  padding: 20px 20px 24px;
  border-radius: 16px 16px 0 0;
}

.account-picker-sheet h2 {
  font-size: 18px;
  font-weight: 580;
}

.account-picker-sheet header button {
  width: 30px;
  height: 30px;
  font-size: 27px;
}

.account-picker-list button {
  min-height: 58px;
}

.account-picker-list strong {
  font-size: 15px;
  font-weight: 540;
}

.account-picker-list span {
  margin-top: 4px;
}

.internal-transfer-hero {
  margin: 14px 20px 22px;
  padding: 18px 16px;
  border-radius: 12px;
}

.internal-transfer-hero strong {
  font-size: 18px;
  font-weight: 600;
}

.bottom-nav {
  height: 80px;
  padding: 8px 10px 6px;
  border-radius: 16px 16px 0 0;
}

.bottom-nav button {
  gap: 3px;
  font-size: 12px;
  font-weight: 560;
}

.bottom-nav button span {
  font-size: 23px;
}

.bottom-nav .trade-fab {
  transform: translateY(-15px);
}

.bottom-nav .trade-fab span {
  width: 54px;
  height: 54px;
  font-size: 29px;
}

.chart-trade-bar {
  height: 76px;
  grid-template-columns: 50px 1fr 1fr;
  gap: 8px;
  padding: 7px 14px 9px;
}

.chart-trade-bar button {
  height: 50px;
  font-size: 11.5px;
}

.chart-trade-bar button span {
  font-size: 20px;
}

.chart-trade-bar .chart-long,
.chart-trade-bar .chart-short {
  height: 40px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 560;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 40px));
  padding: 9px 13px;
  border-radius: 18px;
  background: rgba(17, 18, 22, 0.9);
  color: #fff;
  font-size: 12.5px;
  font-weight: 560;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .phone-app {
    min-height: calc(100vh - 36px);
    border-radius: 18px;
  }

  .bottom-nav,
  .chart-trade-bar,
  .toast {
    position: absolute;
  }
}

@media (max-width: 380px) {
  .home-header,
  .asset-card,
  .market-head,
  .market-row,
  .contract-header,
  .trade-board,
  .position-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .trade-board {
    gap: 12px;
  }

  .quote-panel {
    grid-template-columns: 1fr;
  }

  .quote-panel dl {
    grid-template-columns: 1fr auto;
  }
}
