:root {
  --ink: #172033;
  --text: #354052;
  --muted: #7c8799;
  --soft: #f2f5f8;
  --canvas: #f7f8fa;
  --paper: #ffffff;
  --line: #e7eaf0;
  --blue: #315efb;
  --blue-dark: #244bd4;
  --blue-soft: #eef2ff;
  --green: #138a63;
  --green-soft: #eaf8f2;
  --amber: #b96b16;
  --amber-soft: #fff5e8;
  --shadow: 0 8px 28px rgba(30, 43, 67, .06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  height: 68px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 40;
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.brand-logo {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #315efb, #6a85ff);
  box-shadow: 0 6px 14px rgba(49, 94, 251, .22);
  font-size: 18px;
  font-weight: 800;
}
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { color: var(--ink); font-size: 15px; letter-spacing: .2px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }

nav { height: 100%; display: flex; align-items: stretch; gap: 5px; }
.nav-item {
  position: relative;
  padding: 0 12px;
  border: 0;
  color: #667185;
  background: transparent;
  font-size: 13px;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--blue); font-weight: 650; }
.nav-item.active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  content: "";
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.points-chip {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
}
.points-chip:hover { border-color: #cbd2df; background: #fafbfc; }
.points-chip b { font-size: 13px; }
.points-chip small { color: var(--muted); font-size: 10px; }
.points-dot { width: 7px; height: 7px; border-radius: 50%; background: #f0a43c; }
.user-area { position: relative; }
.user-button {
  height: 42px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
}
.user-button:hover { background: var(--soft); }
.user-button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2e3c57;
  font-size: 12px;
  font-weight: 700;
}
.user-button > span img,
.profile-main > span img,
.profile-avatar-edit > span img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}
.user-button b, .user-button small { display: block; text-align: left; }
.user-button b { color: var(--ink); font-size: 11px; }
.user-button small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.user-button i { color: #9aa3b2; font-style: normal; font-size: 11px; }
.role-menu {
  position: absolute;
  top: 47px;
  right: 0;
  width: 138px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(30, 43, 67, .14);
  z-index: 50;
}
.role-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  text-align: left;
  font-size: 11px;
}
.role-menu button:hover { color: var(--blue); background: var(--blue-soft); }

.risk-ticker {
  position: sticky;
  top: 68px;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0dfc5;
  color: #8b5a1f;
  background: #fff8ea;
  z-index: 35;
}
.risk-track {
  display: flex;
  gap: 60px;
  min-width: max-content;
  animation: risk-scroll 36s linear infinite;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
}
.risk-track span { padding-left: 40px; }
@keyframes risk-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.main { min-height: calc(100vh - 102px); }
.page-heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.page-heading h1 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.2; letter-spacing: -.3px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}
.workspace.wide-page { grid-template-columns: minmax(0, 1fr); }
.workspace.wide-page .wallet-aside { display: none; }
.content { min-width: 0; }
.wallet-aside { display: flex; flex-direction: column; gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(30, 43, 67, .025);
}

.welcome {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e1e6f3;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 24%, rgba(91, 126, 255, .18), transparent 26%),
    linear-gradient(135deg, #f8faff, #eef3ff);
}
.welcome::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(49, 94, 251, .11);
  border-radius: 50%;
  content: "";
}
.welcome h2 { margin: 0; color: var(--ink); font-size: 29px; letter-spacing: -.8px; }
.welcome p { max-width: 500px; margin: 11px 0 0; color: #65718a; font-size: 13px; line-height: 1.7; }
.welcome-actions { position: relative; display: flex; flex-shrink: 0; gap: 9px; z-index: 1; }
.button {
  height: 39px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgba(49, 94, 251, .17); }
.button.primary:hover { background: var(--blue-dark); }
.button.light { color: var(--blue); border: 1px solid #d7def5; background: rgba(255, 255, 255, .75); }
.button.light:hover { background: #fff; }
.button.gray { color: #5f6979; background: var(--soft); }
.button.danger { color: #c24a43; background: #fff0ef; }

.home-product-grid,
.qmt-sub-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card {
  padding: 22px;
  border: 1px solid #dfe6f4;
  cursor: pointer;
}
.product-card:hover { border-color: #b9c7fd; box-shadow: 0 12px 28px rgba(49, 94, 251, .08); }
.product-card span { color: var(--blue); font-size: 10px; font-weight: 800; }
.product-card h3 { margin: 10px 0 8px; color: var(--ink); font-size: 18px; }
.product-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.big-qmt-product span { color: #315efb; }
.miniqmt-product span { color: #0f9fce; }
.ptrade-product span { color: #b96918; }
.platform-hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #fbfcff, #eef3ff);
}
.platform-hero.ptrade { background: linear-gradient(135deg, #fffdf9, #fff3e6); }
.platform-hero h2 { margin: 0; color: var(--ink); font-size: 24px; }
.platform-hero p { max-width: 620px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.qmt-sub-card { padding: 18px; }
.big-qmt-card { border-color: #dbe3ff; background: #f8faff; }
.miniqmt-card { border-color: #c9eef8; background: #f5fcff; }
.qmt-sub-card b { color: var(--ink); font-size: 14px; }
.qmt-sub-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.guest-limit-tip {
  margin-top: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: #dce3f5;
  background: #f8faff;
}
.guest-limit-tip b { color: var(--ink); font-size: 12px; }
.guest-limit-tip span { flex: 1; color: var(--muted); font-size: 10px; }
.auth-gate {
  padding: 38px;
  text-align: center;
}
.auth-gate-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}
.auth-gate h2 { margin: 0; color: var(--ink); font-size: 22px; }
.auth-gate p { max-width: 520px; margin: 10px auto 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-gate-actions { display: flex; justify-content: center; gap: 10px; }
.auth-demo-tip { margin-top: 14px; color: #9aa3b2; font-size: 10px; }
.auth-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-modal-head > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}
.auth-modal-head h2 { margin: 0; color: var(--ink); font-size: 20px; }
.auth-modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.auth-form { display: grid; gap: 14px; }
.profile-center {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.profile-main { display: flex; align-items: center; gap: 14px; }
.profile-main > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #263247;
  font-size: 18px;
  font-weight: 800;
}
.profile-avatar-edit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faff;
}
.profile-avatar-edit > span {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2e3c57;
  font-size: 20px;
  font-weight: 800;
}
.profile-avatar-edit p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.profile-main h2 { margin: 0; color: var(--ink); font-size: 20px; }
.profile-main p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.vip-reserve {
  margin: 16px 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #e9ddff;
  background: linear-gradient(135deg, #fff, #fbf8ff);
}
.vip-reserve h3 { margin: 0; color: var(--ink); font-size: 15px; }
.vip-reserve p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.vip-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.vip-plan-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafbff; }
.vip-plan-grid b, .vip-plan-grid span { display: block; }
.vip-plan-grid b { color: var(--ink); font-size: 12px; }
.vip-plan-grid span { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.6; }

.search-large {
  position: relative;
  margin-top: 14px;
}
.search-large::before {
  position: absolute;
  top: 15px;
  left: 16px;
  color: #99a4b5;
  font-size: 18px;
  content: "⌕";
}
.search-large input,
.toolbar input,
.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  background: #fff;
  outline: 0;
}
.search-large input {
  height: 48px;
  padding: 0 112px 0 44px;
  box-shadow: none;
  font-size: 12px;
}
.search-large button { position: absolute; top: 5px; right: 5px; }
.search-large input:focus,
.toolbar input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9cadff;
  box-shadow: 0 0 0 3px rgba(49, 94, 251, .08);
}
.search-large input::placeholder,
.toolbar input::placeholder,
.field input::placeholder,
.field textarea::placeholder { color: #a4adbb; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 3px 11px; }
.section-head h3 { margin: 0; color: var(--ink); font-size: 15px; }
.section-head button { border: 0; color: var(--blue); background: transparent; font-size: 10px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.category-card { padding: 17px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.category-card:hover { transform: translateY(-2px); border-color: #ccd5f4; box-shadow: var(--shadow); }
.category-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 750;
}
.category-card:nth-child(2) .category-icon { color: #138a63; background: var(--green-soft); }
.category-card:nth-child(3) .category-icon { color: #b96b16; background: var(--amber-soft); }
.category-card:nth-child(4) .category-icon { color: #7d52c7; background: #f3edff; }
.category-card h4 { margin: 13px 0 5px; color: var(--ink); font-size: 12px; }
.category-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.topic-list { overflow: hidden; }
.topic-row {
  position: relative;
  padding: 17px 20px 17px 23px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s;
}
.topic-row:last-child { border-bottom: 0; }
.topic-row::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #c5ccd7;
  content: "";
}
.topic-row:hover { background: #fafbfe; }
.topic-row.platform-bigqmt::before,
.topic-row.platform-qmt::before { background: #315efb; }
.topic-row.platform-miniqmt::before { background: #0f9fce; }
.topic-row.platform-ptrade::before { background: #ed8a25; }
.topic-row.platform-general::before { background: #a4acb9; }
.topic-row.platform-bigqmt:hover,
.topic-row.platform-qmt:hover { background: #f8faff; }
.topic-row.platform-miniqmt:hover { background: #f5fcff; }
.topic-row.platform-ptrade:hover { background: #fffaf5; }
.topic-row.platform-general:hover { background: #fafbfc; }
.topic-top, .topic-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag {
  padding: 4px 8px;
  border-radius: 6px;
  color: #657083;
  background: #f1f3f6;
  font-size: 9px;
  font-weight: 650;
}
.tag.qmt { color: #315efb; background: #edf1ff; }
.tag.ptrade { color: #b76512; background: #fff1df; }
.tag.general { color: #677285; background: #eef0f3; }
.platform-tag {
  height: 23px;
  padding: 3px 8px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
}
.platform-tag i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
}
.platform-tag strong { font-size: 9px; letter-spacing: .02em; }
.platform-tag.bigqmt,
.platform-tag.qmt { border-color: #dbe3ff; }
.platform-tag.bigqmt i,
.platform-tag.qmt i { background: #315efb; }
.platform-tag.miniqmt { border-color: #c9eef8; }
.platform-tag.miniqmt i { background: #0f9fce; }
.platform-tag.ptrade { border-color: #f7dcb9; }
.platform-tag.ptrade i { background: #ed8a25; }
.platform-tag.general { border-color: #e0e3e8; }
.platform-tag.general i { background: #7b8492; }
.tag.solved { color: #087956; background: #e9f8f1; }
.tag.waiting { color: #aa6518; background: #fff4e6; }
.tag.urgent { color: #c44e28; background: #fff0e8; }
.tag.code-attached { color: #5f4aa2; background: #f1edff; }
.topic-row h4 {
  margin: 10px 0 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-summary { margin: 0 0 11px; overflow: hidden; color: #6f7a8c; font-size: 10px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.topic-bottom { color: #9aa3b1; font-size: 9px; }
.reward { color: var(--amber); font-size: 11px; font-weight: 750; }

.wallet-card { overflow: hidden; padding: 20px; background: linear-gradient(145deg, #202b43, #293a5a); border: 0; color: #fff; }
.wallet-label { color: #aeb9cd; font-size: 10px; }
.wallet-balance { margin-top: 5px; color: #fff; font-size: 30px; font-weight: 800; }
.wallet-balance small { margin-left: 5px; color: #aeb9cd; font-size: 10px; font-weight: 400; }
.wallet-tip { margin-top: 8px; color: #b9c3d3; font-size: 9px; line-height: 1.6; }
.wallet-card .button { width: 100%; margin-top: 16px; color: #253653; background: #fff; box-shadow: none; }
.wallet-card .button:hover { background: #f0f3f8; }
.aside-list { padding: 17px; }
.aside-title { margin: 0 0 12px; color: var(--ink); font-size: 12px; }
.package-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.package {
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  text-align: center;
}
.package:hover { border-color: #aebcff; background: #fafbff; }
.package b { display: block; color: var(--blue); font-size: 13px; }
.package span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.quick-recharge .package-list { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.quick-recharge .package { padding: 9px 3px; }
.quick-recharge .package span { display: none; }
.quick-recharge .package b { font-size: 11px; }
.category-aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.category-aside .aside-title { grid-column: 1 / -1; margin-bottom: 2px; }
.category-aside .aside-link {
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: #f5f7fa;
  font-size: 9px;
}
.category-aside .aside-link span:last-child { display: none; }
.aside-list p { margin: 7px 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.aside-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1px;
  border-bottom: 1px solid var(--line);
  color: #606b7c;
  font-size: 10px;
  cursor: pointer;
}
.aside-link:last-child { border-bottom: 0; }
.aside-link:hover { color: var(--blue); }
.certification-aside {
  padding: 18px;
  overflow: hidden;
  border-color: #dce3f7;
  background:
    radial-gradient(circle at 100% 0, rgba(49, 94, 251, .1), transparent 35%),
    #fff;
}
.certification-aside-head { display: flex; align-items: center; gap: 10px; }
.certification-aside-head > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.certification-aside-head small { display: block; color: var(--blue); font-size: 8px; font-weight: 700; }
.certification-aside-head h3 { margin: 3px 0 0; color: var(--ink); font-size: 12px; line-height: 1.35; }
.certification-aside > p { margin: 12px 0 0; color: #6c7789; font-size: 9px; line-height: 1.7; }
.certification-aside ul {
  margin: 11px 0 0;
  padding: 0;
  display: flex;
  gap: 6px;
  list-style: none;
}
.certification-aside li {
  padding: 4px 7px;
  border-radius: 6px;
  color: #5d6b82;
  background: #f2f5fb;
  font-size: 8px;
}
.certification-aside .button { width: 100%; height: 36px; margin-top: 14px; font-size: 10px; }
.certification-aside.approved { border-color: #cee7dc; background: #fbfffd; }
.certification-aside.approved .certification-aside-head > span { background: var(--green); }
.certification-aside.approved .certification-aside-head small { color: var(--green); }
.certification-aside.pending { border-color: #ecdcc1; background: #fffdfa; }
.certification-aside.pending .certification-aside-head > span { color: #98621d; background: #ffebc9; }
.certification-aside.pending .certification-aside-head small { color: var(--amber); }
.certification-aside.rejected { border-color: #eed5d2; background: #fffafa; }
.certification-aside.rejected .certification-aside-head > span { color: #bb4942; background: #ffecea; }
.certification-aside.rejected .certification-aside-head small { color: #bb4942; }
.certification-progress {
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #eee4d4;
  color: #8e6a3d;
  font-size: 8px;
}
.certification-progress i { width: 6px; height: 6px; border-radius: 50%; background: #e5a442; }
.consultation-aside {
  padding: 18px;
  border-color: #d9e7e1;
  background: linear-gradient(145deg, #fbfffd, #f4faf7);
}
.consultation-aside-head { display: flex; align-items: center; gap: 10px; }
.consultation-aside-head > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.consultation-aside-head small { display: block; color: var(--green); font-size: 8px; font-weight: 700; }
.consultation-aside-head h3 { margin: 3px 0 0; color: var(--ink); font-size: 12px; }
.consultation-aside > p { margin: 12px 0 0; color: #68776f; font-size: 9px; line-height: 1.7; }
.private-note {
  width: fit-content;
  margin-top: 11px;
  padding: 6px 8px;
  border: 1px solid #d8e2f1;
  border-radius: 7px;
  color: #52627a;
  background: #f7f9fc;
  font-size: 8px;
  font-weight: 700;
}
.form-private-note { margin: 14px 0 0; font-size: 9px; }
.owner-private-badge {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #52627a;
  background: #f3f6fa;
  font-size: 8px;
  font-weight: 700;
}
.consultation-types { display: flex; gap: 6px; margin-top: 11px; }
.consultation-types span { padding: 4px 7px; border-radius: 6px; color: #39705c; background: #e7f4ed; font-size: 8px; }
.consultation-aside .button { width: 100%; height: 36px; margin-top: 14px; color: var(--green); border-color: #bcded0; }

.forum-head { padding: 22px; }
.forum-head h2, .form-card h2 { margin: 0; color: var(--ink); font-size: 18px; }
.forum-head p, .form-card > p { margin: 6px 0 17px; color: var(--muted); font-size: 10px; }
.toolbar { display: flex; gap: 9px; }
.toolbar input { flex: 1; height: 39px; padding: 0 12px; font-size: 10px; }
.toolbar select { padding: 0 10px; border: 1px solid #dfe3eb; border-radius: 9px; color: var(--text); background: #fff; font-size: 10px; }
.forum-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.forum-tab {
  min-height: 51px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #697487;
  background: #fff;
  text-align: left;
}
.forum-tab:hover { border-color: #bfc7d5; box-shadow: 0 3px 10px rgba(30, 43, 67, .04); }
.forum-tab-mark {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #818a99;
  font-size: 10px;
  font-weight: 800;
}
.forum-tab b, .forum-tab small { display: block; }
.forum-tab b { color: var(--ink); font-size: 10px; }
.forum-tab small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.forum-tab.qmt .forum-tab-mark { background: #315efb; }
.forum-tab.ptrade .forum-tab-mark { background: #ed8a25; }
.forum-tab.qmt { border-color: #dfe5fa; background: #fbfcff; }
.forum-tab.ptrade { border-color: #f0e2cf; background: #fffdf9; }
.forum-tab.active { border-width: 2px; padding: 7px 10px; }
.forum-tab.qmt.active { border-color: #315efb; background: #f2f5ff; }
.forum-tab.ptrade.active { border-color: #ed8a25; background: #fff5e9; }
.forum-tab.general.active { border-color: #707a89; background: #f3f5f7; }

.form-card { padding: 25px; }
.draft-panel { margin-bottom: 13px; padding: 18px 20px; }
.draft-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.draft-panel-head h3 { margin: 0; color: var(--ink); font-size: 14px; }
.draft-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.draft-count { padding: 5px 9px; border-radius: 20px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 700; }
.draft-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.draft-item {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafbfc;
}
.draft-item.active { border-color: #9cadff; background: #f6f8ff; }
.draft-item > button:first-child { min-width: 0; flex: 1; padding: 10px; border: 0; background: transparent; text-align: left; }
.draft-item strong, .draft-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-item strong { color: var(--ink); font-size: 9px; }
.draft-item span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.draft-delete { width: 32px; border: 0; color: #9aa3b1; background: transparent; }
.draft-delete:hover { color: #c24a43; background: #fff0ef; }
.draft-empty { grid-column: 1 / -1; padding: 16px; border-radius: 9px; color: var(--muted); background: #f7f8fa; text-align: center; font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #4d596b; font-size: 10px; font-weight: 650; }
.field input, .field select { height: 41px; padding: 0 12px; font-size: 10px; }
.field textarea { min-height: 130px; padding: 12px; resize: vertical; font-size: 10px; line-height: 1.7; }
.form-note { margin-top: 16px; padding: 12px 14px; border-radius: 9px; color: #697487; background: #f4f6fa; font-size: 9px; line-height: 1.7; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.mine-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.summary-card { padding: 18px; }
.summary-card b { display: block; color: var(--ink); font-size: 23px; }
.summary-card span { color: var(--muted); font-size: 9px; }
.mine-summary.refined .summary-card { display: flex; align-items: center; gap: 13px; padding: 17px; }
.mine-summary.refined .summary-card b { font-size: 21px; line-height: 1.1; }
.mine-summary.refined .summary-card div > span { display: block; margin-top: 5px; }
.summary-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 11px !important;
  font-weight: 800;
}
.summary-icon.blue { color: var(--blue); background: var(--blue-soft); }
.summary-icon.green { color: var(--green); background: var(--green-soft); }
.summary-icon.amber { color: var(--amber); background: var(--amber-soft); }
.mine-section-head { align-items: flex-end; }
.mine-section-head > div p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.mine-section-head > button {
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--blue-soft);
  font-weight: 650;
}
.mine-topic-list .topic-row:last-child { border-bottom: 0; }
.transaction-list { overflow: hidden; }
.transaction-row {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.transaction-row:last-child { border-bottom: 0; }
.transaction-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 750;
}
.transaction-icon.negative { color: #b86618; background: #fff3e5; }
.transaction-main { min-width: 0; flex: 1; }
.transaction-main strong { display: block; color: var(--ink); font-size: 10px; }
.transaction-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.transaction-row > b { color: var(--green); font-size: 11px; }
.transaction-row > b.negative { color: #c16425; }
.consultation-list { overflow: hidden; }
.consultation-row {
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.consultation-row:last-child { border-bottom: 0; }
.consultation-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 800;
}
.consultation-row > div { min-width: 0; flex: 1; }
.consultation-row strong { display: block; color: var(--ink); font-size: 10px; }
.consultation-row p { margin: 4px 0; overflow: hidden; color: #687487; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.consultation-row small { color: var(--muted); font-size: 8px; }
.consultation-status { padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 700; }
.consultation-status.pending { color: #a9681c; background: var(--amber-soft); }
.consultation-status.following { color: var(--blue); background: var(--blue-soft); }
.consultation-status.completed { color: var(--green); background: var(--green-soft); }
.consultation-form-head, .answer-feedback-head, .urgency-modal-head { display: flex; align-items: center; gap: 12px; margin: 0 35px 22px 0; }
.consultation-form-head > span, .answer-feedback-head > span, .urgency-modal-head > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.answer-feedback-head > span { background: #b96b16; }
.urgency-modal-head > span { background: #e26632; }
.consultation-form-head h2, .answer-feedback-head h2, .urgency-modal-head h2 { margin: 0; color: var(--ink); font-size: 20px; }
.consultation-form-head p, .answer-feedback-head p, .urgency-modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.consultation-contact {
  margin-top: 17px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px;
  color: #627064;
  background: #f1f8f4;
  font-size: 9px;
}
.consultation-contact strong { color: var(--ink); font-size: 11px; }
.consultation-contact-preview {
  min-width: 160px;
  display: grid;
  gap: 5px;
  color: #627064;
  font-size: 9px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}
.contact-card {
  padding: 14px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9fc;
}
.contact-card small { color: var(--muted); font-size: 8px; }
.contact-card strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.consultation-dashboard { display: grid; gap: 16px; }
.consultation-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.consultation-stat {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 18px;
  display: grid;
  gap: 5px;
  border-color: var(--line);
  color: var(--text);
  text-align: left;
}
.consultation-stat::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9c2d0;
  content: "";
}
.consultation-stat:hover,
.consultation-stat.active { border-color: #b9c7fd; box-shadow: 0 8px 24px rgba(49, 94, 251, .08); }
.consultation-stat span { color: #647086; font-size: 10px; font-weight: 650; }
.consultation-stat strong { color: var(--ink); font-size: 26px; line-height: 1; }
.consultation-stat small { color: var(--muted); font-size: 8px; font-weight: 500; }
.consultation-stat.blue::after { background: var(--blue); }
.consultation-stat.amber::after { background: #e3a13e; }
.consultation-stat.purple::after { background: #7659d6; }
.consultation-stat.green::after { background: var(--green); }
.consultation-client-card { overflow: hidden; }
.consultation-toolbar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.consultation-toolbar h3 { margin: 0; color: var(--ink); font-size: 14px; }
.consultation-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.consultation-filter-tabs {
  padding: 3px;
  display: flex;
  gap: 3px;
  border-radius: 9px;
  background: var(--soft);
}
.consultation-filter-tabs button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #697488;
  background: transparent;
  font-size: 9px;
}
.consultation-filter-tabs button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 7px rgba(30, 43, 67, .08);
  font-weight: 700;
}
.customer-table-scroll { overflow-x: auto; }
.customer-table { min-width: 980px; }
.customer-table-head,
.customer-row {
  display: grid;
  grid-template-columns: 1.1fr 1.05fr .65fr 1.45fr .95fr 100px;
  gap: 14px;
  align-items: center;
}
.customer-table-head {
  padding: 11px 20px;
  color: #8a94a5;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 700;
}
.customer-row {
  min-height: 80px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.customer-row:last-child { border-bottom: 0; }
.customer-identity { display: flex; align-items: center; gap: 10px; }
.customer-identity > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #485875;
  font-size: 10px;
  font-weight: 750;
}
.customer-identity strong,
.customer-contact span,
.customer-time span { display: block; color: var(--ink); font-size: 9px; font-weight: 650; }
.customer-identity small,
.customer-contact small,
.customer-time small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.customer-note {
  overflow: hidden;
  color: #556176;
  font-size: 9px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-note.empty-note { color: #a0a8b5; }
.customer-action { height: 32px; padding: 0 11px; font-size: 9px; }
.consultation-empty { padding: 60px 20px; color: var(--muted); text-align: center; }
.consultation-empty strong { color: var(--ink); font-size: 12px; }
.consultation-empty p { margin: 7px 0 0; font-size: 9px; }
.consultation-pagination {
  min-height: 56px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.consultation-pagination > div { display: flex; align-items: center; gap: 6px; }
.consultation-pagination button,
.consultation-pagination b {
  min-width: 32px;
  height: 30px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #657086;
  background: #fff;
  font-size: 9px;
}
.consultation-pagination b { color: #fff; background: var(--blue); border-color: var(--blue); }
.consultation-review-form { margin-top: 16px; display: grid; gap: 14px; }
.consultation-review-form .field textarea { min-height: 105px; }
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
}
.certification-invite,
.certification-status {
  margin-bottom: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.certification-invite h3,
.certification-status h3 { margin: 0; color: var(--ink); font-size: 16px; }
.certification-invite p,
.certification-status p { max-width: 600px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.certification-benefits { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.certification-benefits span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #5f6c80;
  background: #f2f4f8;
  font-size: 8px;
}
.certification-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 15px;
  font-weight: 800;
}
.certification-status > div:nth-child(2) { flex: 1; }
.certification-status.approved { border-color: #cde9dd; background: #fbfffd; }
.certification-status.approved .certification-mark { color: var(--green); background: var(--green-soft); }
.certification-status.pending .certification-mark { color: var(--amber); background: var(--amber-soft); }
.certification-status.rejected { border-color: #f0d8d5; background: #fffafa; }
.certification-status.rejected .certification-mark { color: #c24a43; background: #fff0ef; }
.status-pill {
  padding: 6px 10px;
  flex: 0 0 auto;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}
.status-pill.pending { color: #a96618; background: var(--amber-soft); }
.application-list { overflow: hidden; margin-bottom: 18px; }
.application-row {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}
.application-row:last-child { border-bottom: 0; }
.application-avatar {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #35445f;
  font-size: 12px;
  font-weight: 750;
}
.application-avatar.large { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; font-size: 15px; }
.application-main { min-width: 0; flex: 1; }
.application-main div { display: flex; align-items: center; gap: 8px; }
.application-main strong { color: var(--ink); font-size: 11px; }
.application-main div span { color: var(--blue); font-size: 9px; }
.application-main p {
  margin: 5px 0;
  overflow: hidden;
  color: #657083;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.application-main small { color: var(--muted); font-size: 8px; }
.empty.compact { padding: 30px 20px; }
.certification-form-head { display: flex; align-items: center; gap: 13px; margin: 0 35px 22px 0; }
.certification-form-head h2 { margin: 0; color: var(--ink); font-size: 20px; }
.certification-form-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.certification-form-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.image-uploader {
  min-height: 150px;
  padding: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px dashed #cdd5e3;
  border-radius: 11px;
  color: var(--text);
  background: #fafbfc;
  cursor: pointer;
}
.image-uploader:hover { border-color: #9cadff; background: #f8f9ff; }
.upload-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 19px;
}
.image-uploader strong { color: var(--ink); font-size: 11px; }
.image-uploader small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.image-uploader img { width: 100%; max-height: 260px; margin-top: 14px; object-fit: contain; border-radius: 8px; }
.review-head { display: flex; align-items: center; gap: 13px; margin: 0 35px 22px 0; }
.review-head > div:nth-child(2) { min-width: 0; flex: 1; }
.review-head h2 { margin: 0; color: var(--ink); font-size: 20px; }
.review-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.review-section { margin-top: 18px; }
.review-section h4 { margin: 0 0 8px; color: var(--ink); font-size: 11px; }
.review-section p { margin: 0; color: #5e697a; font-size: 10px; line-height: 1.8; white-space: pre-wrap; }
.review-label { display: flex; align-items: center; justify-content: space-between; }
.review-label span { color: var(--muted); font-size: 8px; }
.review-image {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f7f9;
}
.review-note { margin-top: 19px; }
.review-note textarea { min-height: 90px; }
.review-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.empty { padding: 50px 20px; color: var(--muted); text-align: center; font-size: 11px; }
.trash-header {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.trash-header h2 { margin: 0; color: var(--ink); font-size: 18px; }
.trash-header p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.trash-count {
  padding: 6px 10px;
  border-radius: 20px;
  color: #c24a43;
  background: #fff0ef;
  font-size: 10px;
  font-weight: 700;
}
.trash-list { overflow: hidden; margin-top: 13px; }
.trash-row {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.trash-row:last-child { border-bottom: 0; }
.trash-main { min-width: 0; flex: 1; }
.trash-main h4 { margin: 9px 0 5px; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.trash-main p { margin: 0; color: var(--muted); font-size: 9px; }
.trash-actions { display: flex; flex-shrink: 0; gap: 8px; }
.owner-danger-zone {
  margin-top: 25px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #f1d5d2;
  border-radius: 11px;
  background: #fff9f8;
}
.owner-danger-zone b { display: block; color: #a84039; font-size: 10px; }
.owner-danger-zone p { margin: 4px 0 0; color: #9b6a66; font-size: 9px; }
.confirm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #aa6518;
  background: var(--amber-soft);
  font-size: 21px;
  font-weight: 800;
}
.confirm-icon.permanent { color: #bd433c; background: #fff0ef; }
.confirm-title { margin: 17px 0 7px; color: var(--ink); font-size: 20px; }
.confirm-message { margin: 0; color: #5f6b7c; font-size: 11px; line-height: 1.7; }
.confirm-warning { margin-top: 15px; padding: 11px 12px; border-radius: 8px; color: #8e5d22; background: #fff7eb; font-size: 9px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.button.solid-danger { color: #fff; background: #d84b44; }
.button.solid-danger:hover { background: #bd3d37; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 28, 46, .48); backdrop-filter: blur(5px); z-index: 60; }
.modal-card {
  position: relative;
  width: min(680px, 95vw);
  max-height: 88vh;
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 31, 52, .2);
}
.modal-close { position: absolute; top: 14px; right: 17px; border: 0; color: #8390a2; background: transparent; font-size: 21px; }
.detail-title { margin: 13px 40px 12px 0; color: var(--ink); font-size: 21px; line-height: 1.45; }
.detail-meta { display: flex; gap: 14px; margin-bottom: 21px; color: var(--muted); font-size: 9px; }
.detail-section { margin-top: 22px; }
.detail-section h4 { margin: 0 0 9px; color: var(--ink); font-size: 12px; }
.detail-section p { margin: 0; color: #5c6879; font-size: 11px; line-height: 1.8; }
.answer-card { padding: 17px; border: 1px solid #dfe5f4; border-radius: 11px; background: #f7f9ff; }
.answer-card b { color: var(--blue); font-size: 10px; }
.answer-card p { margin-top: 8px; }
.urgency-banner {
  margin: 14px 0 4px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #f3d1bd;
  border-radius: 11px;
  background: #fff7f2;
}
.urgency-banner > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #e26632;
  font-size: 11px;
  font-weight: 800;
}
.urgency-banner b { display: block; color: #ad4c27; font-size: 10px; }
.urgency-banner p { margin: 4px 0 0; color: #9a6a57; font-size: 8px; }
.question-actions {
  margin-top: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #eee2d7;
  border-radius: 10px;
  background: #fffdf9;
}
.question-actions span { color: #89786a; font-size: 8px; line-height: 1.5; }
.urgency-button { flex: 0 0 auto; color: #b94e25; background: #ffebe1; }
.urgency-button:hover { background: #ffdfcf; }
.answer-decision {
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  font-size: 9px;
}
.answer-decision b { font-size: 9px; }
.answer-decision span { color: inherit; opacity: .8; font-size: 8px; }
.answer-decision.accepted { color: #197457; background: #eaf8f2; }
.answer-decision.pending { color: #8b641d; background: #fff5e8; }
.answer-decision.rejected { color: #a4473f; background: #fff0ef; }
.answer-review {
  margin-top: 20px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dce3f5;
  border-radius: 11px;
  background: #f8faff;
}
.answer-review b { color: var(--ink); font-size: 10px; }
.answer-review p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.answer-review > div:last-child { display: flex; gap: 8px; }
.question-code-head { background: #26344c; }
.question-code { background: #29374f; }
.claim-status {
  margin: 16px 0 4px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #dce3f5;
  border-radius: 11px;
  background: #f7f9ff;
}
.claim-status.waiting-claim {
  border-color: #ece7dd;
  background: #fffbf4;
}
.claim-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.waiting-claim .claim-avatar { color: #9a651d; background: #ffebcb; }
.claim-status b { display: block; color: var(--ink); font-size: 11px; }
.claim-status p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.claim-panel,
.answer-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}
.claim-hint { margin: -2px 0 13px !important; color: var(--muted) !important; font-size: 9px !important; }
.claim-controls { display: flex; gap: 9px; }
.claim-controls select {
  min-width: 190px;
  height: 39px;
  padding: 0 11px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  outline: 0;
  font-size: 10px;
}
.claim-controls select:focus { border-color: #9cadff; box-shadow: 0 0 0 3px rgba(49, 94, 251, .08); }
.answer-editor .field + .field { margin-top: 15px; }
.code-toggle {
  width: 100%;
  min-height: 54px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed #cfd7e5;
  border-radius: 10px;
  color: var(--text);
  background: #fafbfc;
  text-align: left;
}
.code-toggle:hover,
.code-toggle.active { border-color: #9cadff; background: #f5f7ff; }
.code-toggle span b,
.code-toggle span small { display: block; }
.code-toggle span b { color: var(--ink); font-size: 10px; }
.code-toggle span small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.code-toggle i { color: var(--blue); font-size: 9px; font-style: normal; font-weight: 700; }
.answer-code-toggle { margin-top: 15px; }
.optional-code { margin-top: 12px; }
.editor-label { display: flex; align-items: center; justify-content: space-between; }
.editor-label span {
  padding: 3px 7px;
  border-radius: 5px;
  color: #97a5b8;
  background: #263247;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
}
.field .code-editor {
  min-height: 210px;
  color: #d8dee9;
  border-color: #2f3b51;
  background:
    linear-gradient(90deg, #1c2638 38px, transparent 38px),
    #222d40;
  font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.75;
  tab-size: 4;
}
.field .code-editor:focus {
  border-color: #668cff;
  box-shadow: 0 0 0 3px rgba(49, 94, 251, .12);
}
.field .code-editor::placeholder { color: #718097; }
.code-block-head {
  margin-top: 17px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px 9px 0 0;
  color: #aab7c9;
  background: #1b2638;
  font-size: 9px;
}
.copy-code {
  padding: 3px 7px;
  border: 1px solid #3d4a61;
  border-radius: 5px;
  color: #c8d1df;
  background: transparent;
  font-size: 8px;
}
.copy-code:hover { color: #fff; border-color: #71819a; }
.python-code {
  max-height: 340px;
  margin: 0;
  overflow: auto;
  padding: 17px;
  border-radius: 0 0 9px 9px;
  color: #d8dee9;
  background: #222d40;
  font-family: Consolas, "SFMono-Regular", "Courier New", monospace;
  font-size: 10px;
  line-height: 1.75;
  white-space: pre;
}
.customer-message-section {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}
.customer-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.customer-message-head h4 { margin-bottom: 5px; }
.customer-message-head p { color: var(--muted); font-size: 9px; }
.customer-message-head > span {
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 700;
}
.customer-message-list { margin-top: 13px; display: grid; gap: 9px; }
.customer-message-item {
  padding: 11px 12px;
  display: flex;
  gap: 10px;
  border: 1px solid #e6eaf1;
  border-radius: 9px;
  background: #fff;
}
.customer-message-item > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4c5d79;
  font-size: 9px;
  font-weight: 700;
}
.customer-message-item > div { min-width: 0; flex: 1; }
.customer-message-item > div > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customer-message-item strong { color: var(--ink); font-size: 9px; }
.customer-message-item small { color: var(--muted); font-size: 8px; }
.customer-message-item p { margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-message-empty { padding: 16px; color: var(--muted); background: #fff; border-radius: 9px; text-align: center; font-size: 9px; }
.customer-message-form { margin-top: 12px; }
.customer-message-form textarea {
  width: 100%;
  min-height: 78px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  outline: 0;
  font-size: 10px;
  line-height: 1.7;
}
.customer-message-form textarea:focus { border-color: #9cadff; box-shadow: 0 0 0 3px rgba(49, 94, 251, .08); }
.customer-message-form > div { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.customer-message-form small { color: var(--muted); font-size: 8px; }
.urgency-balance {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9px;
  color: #697487;
  background: #f5f7fa;
  font-size: 9px;
}
.urgency-balance strong { color: var(--ink); font-size: 16px; }
.urgency-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.urgency-options button {
  padding: 16px 10px;
  border: 1px solid #f0d7c6;
  border-radius: 10px;
  color: #9e4f2d;
  background: #fffaf6;
  text-align: left;
}
.urgency-options button:hover { border-color: #e7a982; background: #fff4eb; }
.urgency-options b, .urgency-options span { display: block; }
.urgency-options b { font-size: 13px; }
.urgency-options span { margin-top: 6px; color: #967667; font-size: 8px; line-height: 1.5; }
.reminder-box {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.reminder-box b { color: var(--ink); font-size: 10px; }
.reminder-box p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.recharge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.recharge-option { padding: 17px 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; text-align: center; }
.recharge-option:hover { border-color: #aebcff; background: #fafbff; }
.recharge-option b { display: block; color: var(--blue); font-size: 17px; }
.recharge-option span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.demo-warning { margin-top: 16px; padding: 12px; border-radius: 9px; color: #96601d; background: var(--amber-soft); font-size: 9px; line-height: 1.7; }
.toast { position: fixed; left: 50%; bottom: 28px; padding: 10px 17px; border-radius: 9px; color: #fff; background: #25324a; opacity: 0; transform: translate(-50%, 20px); transition: .2s; z-index: 100; font-size: 10px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Font upgrade: make the whole product friendlier for quant beginners. */
body { font-size: 15px; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { font-size: 11px; }
.nav-item { font-size: 15px; }
.risk-track { font-size: 13px; }
.points-chip b { font-size: 15px; }
.points-chip small,
.user-button small,
.page-heading p,
.product-card p,
.platform-hero p,
.auth-gate p,
.profile-main p,
.vip-reserve p,
.forum-head p,
.form-card > p,
.wallet-tip,
.aside-list p,
.consultation-aside > p,
.certification-aside > p,
.topic-summary,
.detail-section p,
.answer-card p,
.claim-status p,
.customer-message-head p {
  font-size: 12px;
}
.user-button b { font-size: 13px; }
.role-menu button { font-size: 13px; }
.page-heading h1 { font-size: 26px; }
.welcome h2 { font-size: 34px; }
.welcome p { font-size: 15px; }
.button { font-size: 14px; }
.product-card span,
.eyebrow,
.wallet-label,
.aside-title,
.section-head button,
.tag,
.platform-tag strong,
.topic-bottom,
.private-note,
.owner-private-badge,
.consultation-status,
.form-note,
.demo-warning {
  font-size: 11px;
}
.product-card h3 { font-size: 22px; }
.platform-hero h2 { font-size: 29px; }
.qmt-sub-card b { font-size: 17px; }
.qmt-sub-card p,
.guest-limit-tip span,
.auth-demo-tip,
.auth-modal-head p,
.vip-plan-grid span,
.category-card p,
.package span,
.certification-aside-head small,
.consultation-aside-head small,
.consultation-types span,
.field label,
.transaction-main span,
.customer-identity small,
.customer-contact small,
.customer-time small,
.answer-decision span,
.claim-hint,
.copy-code,
.customer-message-item small,
.customer-message-form small {
  font-size: 10px;
}
.guest-limit-tip b,
.auth-modal-head h2,
.profile-main h2,
.vip-reserve h3,
.section-head h3,
.category-card h4,
.aside-title,
.certification-aside-head h3,
.consultation-aside-head h3,
.forum-head h2,
.form-card h2,
.summary-card b,
.transaction-main strong,
.detail-section h4,
.claim-status b,
.answer-review b,
.customer-message-item strong {
  font-size: 15px;
}
.auth-gate h2 { font-size: 26px; }
.profile-main h2 { font-size: 24px; }
.vip-plan-grid b,
.recharge-option b,
.urgency-options b,
.contact-card strong { font-size: 15px; }
.category-icon,
.summary-icon,
.transaction-icon,
.consultation-icon { font-size: 12px; }
.topic-row h4 { font-size: 17px; }
.reward { font-size: 13px; }
.wallet-balance { font-size: 36px; }
.wallet-balance small { font-size: 12px; }
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select,
.code-toggle span b,
.customer-note,
.customer-contact span,
.customer-time span,
.toast {
  font-size: 13px;
}
.detail-title { font-size: 26px; }
.detail-meta { font-size: 11px; }
.python-code,
.field .code-editor { font-size: 13px; }

@media (max-width: 900px) {
  .header-inner, .page-heading, .workspace { width: min(100% - 28px, 760px); }
  .brand-copy small { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .home-product-grid { grid-template-columns: 1fr; }
  .wallet-aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .consultation-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .site-header { height: auto; }
  .header-inner { padding: 11px 0; flex-wrap: wrap; gap: 10px; }
  .brand { margin-right: auto; }
  .header-actions { margin-left: 0; }
  nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
  }
  nav::-webkit-scrollbar { display: none; }
  .nav-item { height: 35px; flex: 0 0 auto; }
  .nav-item.active::after { display: none; }
  .nav-item.active { border-radius: 8px; background: var(--blue-soft); }
  .user-button div, .user-button i { display: none; }
  .page-heading { padding-top: 18px; }
  .heading-ask { display: none; }
  .welcome { min-height: 0; padding: 25px; align-items: flex-start; flex-direction: column; gap: 20px; }
  .welcome h2 { font-size: 24px; }
  .search-large { margin-right: 12px; margin-left: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .wallet-aside { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input { min-width: 100%; }
  .forum-tabs { grid-template-columns: repeat(2, 1fr); }
  .mine-summary { grid-template-columns: 1fr; }
  .draft-list, .urgency-options { grid-template-columns: 1fr; }
  .answer-review, .question-actions, .reminder-box { align-items: stretch; flex-direction: column; }
  .answer-review > div:last-child { width: 100%; }
  .answer-review .button { flex: 1; }
  .consultation-row { align-items: flex-start; flex-wrap: wrap; }
  .consultation-row .button { width: 100%; }
  .consultation-contact-preview { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .consultation-stat-grid { grid-template-columns: 1fr 1fr; }
  .consultation-toolbar, .consultation-pagination { align-items: flex-start; flex-direction: column; }
  .trash-row { align-items: flex-start; flex-direction: column; }
  .trash-actions { width: 100%; }
  .trash-actions .button { flex: 1; }
  .certification-invite, .certification-status { align-items: flex-start; flex-direction: column; }
  .certification-invite .button, .certification-status .button { width: 100%; }
  .application-row { align-items: flex-start; flex-wrap: wrap; }
  .application-row .button { width: 100%; }
  .review-actions { flex-direction: column-reverse; }
  .review-actions .button { width: 100%; }
}

/* QUANTX web 1.1: restrained blue system, owner tools and mobile utilities. */
:root {
  --blue: #315efb;
  --blue-dark: #244bd4;
  --blue-soft: #eef3ff;
  --green: #5279c7;
  --green-soft: #edf3ff;
}
body { font-size: 14px; }
.nav-item { font-size: 14px; }
.welcome h2 { font-size: 30px; }
.product-card h3 { font-size: 19px; }
.risk-ticker {
  border-color: #f0d0d2;
  color: #9a4d53;
  background: #fff3f3;
}
.tag.pinned {
  color: #315efb;
  border: 1px solid #cfdbff;
  background: #edf3ff;
}
.consultation-aside {
  border-color: #efd6d8;
  background: #fff8f8;
}
.consultation-aside-head > span {
  color: #fff;
  background: #c85f67;
}
.consultation-aside-head small,
.consultation-aside .button {
  color: #b5525b;
}
.consultation-aside .button {
  border-color: #e8c6c9;
  background: #fff;
}
.owner-topic-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #69758a;
  font-size: 12px;
  line-height: 1.6;
}
.agreement-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
}
.agreement-check button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
}
.urgency-check {
  padding: 12px 14px;
  border: 1px solid #f1d5d2;
  border-radius: 10px;
  color: #9a5156;
  background: #fff8f8;
}
.danger-check { color: #a34e54; }
.legal-document {
  max-height: min(72vh, 680px);
  overflow-y: auto;
  padding-right: 5px;
}
.legal-document h2 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 25px;
}
.legal-document h3 {
  margin: 22px 0 7px;
  color: var(--ink);
  font-size: 15px;
}
.legal-document p {
  margin: 0;
  color: #5f6c80;
  font-size: 13px;
  line-height: 1.85;
}
.legal-document .legal-date {
  color: var(--muted);
  font-size: 11px;
}
.account-list { overflow: hidden; margin-bottom: 18px; }
.account-row {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.account-row:last-child { border-bottom: 0; }
.account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 750;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-main { min-width: 0; }
.account-main strong,
.account-main small { display: block; }
.account-main strong { color: var(--ink); font-size: 14px; }
.account-main small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-status {
  padding: 5px 8px;
  border-radius: 7px;
  color: #4e6fae;
  background: #edf3ff;
  font-size: 10px;
  font-weight: 700;
}
.account-status.blocked { color: #ae4c55; background: #fff0f1; }
.floating-doc {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  width: 72px;
  padding: 11px 7px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid #dfe5f5;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(35, 51, 82, .14);
  text-decoration: none;
  transform: translateY(-50%);
  z-index: 34;
}
.floating-doc span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}
.floating-doc b { font-size: 11px; white-space: nowrap; }
.floating-doc:hover { border-color: #b9c8f5; transform: translateY(-50%) translateY(-2px); }
.topic-back {
  margin: 0 0 12px;
  padding: 8px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}
.topic-detail-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 38px);
}
.topic-detail-page .detail-section {
  margin-top: 22px;
}

@media (max-width: 700px) {
  body { font-size: 13px; }
  .welcome h2 { font-size: 23px; }
  .product-card h3 { font-size: 18px; }
  .floating-doc {
    top: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 62px;
    transform: none;
  }
  .floating-doc:hover { transform: translateY(-2px); }
  .floating-doc span { width: 30px; height: 30px; }
  .floating-doc b { font-size: 10px; }
  .account-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .account-row > .button { grid-column: 1 / -1; width: 100%; }
  .account-status { justify-self: end; }
  .owner-danger-zone { align-items: stretch; flex-direction: column; }
  .owner-topic-actions { width: 100%; }
  .owner-topic-actions .button { flex: 1; }
  .topic-detail-page { padding: 18px 15px; }
}

/* QUANTX web 1.2: polished home and a single, dependable login journey. */
:root {
  --canvas: #f4f7fc;
  --ink: #15213a;
  --text: #42506a;
  --muted: #7c899f;
  --line: #e4eaf4;
  --blue: #315efb;
  --blue-dark: #244bd4;
  --blue-soft: #edf3ff;
  --shadow: 0 18px 48px rgba(42, 61, 101, .08);
}
body {
  background:
    radial-gradient(circle at 8% 0, rgba(49, 94, 251, .055), transparent 25%),
    radial-gradient(circle at 92% 10%, rgba(100, 132, 255, .05), transparent 22%),
    var(--canvas);
}
.site-header {
  border-bottom-color: rgba(218, 226, 241, .85);
  background: rgba(255, 255, 255, .9);
}
.brand-logo {
  border-radius: 12px;
  background: linear-gradient(145deg, #244bd4, #4774ff);
  box-shadow: 0 9px 22px rgba(49, 94, 251, .24);
}
.card {
  border-color: rgba(224, 231, 242, .92);
  box-shadow: 0 7px 24px rgba(42, 61, 101, .045);
}
.button {
  border-radius: 11px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: linear-gradient(135deg, #315efb, #4774ff);
  box-shadow: 0 9px 22px rgba(49, 94, 251, .2);
}
.button.primary:hover {
  background: linear-gradient(135deg, #244bd4, #315efb);
  box-shadow: 0 12px 26px rgba(49, 94, 251, .25);
}
.welcome.welcome-premium {
  min-height: 0;
  padding: clamp(38px, 6vw, 64px);
  display: block;
  border-color: #dce5f7;
  background: #f8faff;
  box-shadow: 0 22px 55px rgba(42, 61, 101, .08);
}
.welcome.welcome-premium::before {
  display: none;
}
.welcome.welcome-premium::after {
  display: none;
}
.welcome-copy { position: relative; max-width: 860px; z-index: 2; }
.hero-kicker,
.auth-gate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.hero-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(49, 94, 251, .1);
}
.welcome.welcome-premium h2 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -1.4px;
}
.welcome.welcome-premium p {
  max-width: 720px;
  margin-top: 16px;
  color: #63718a;
  font-size: 14px;
  line-height: 1.9;
}
.welcome.welcome-premium .welcome-actions {
  margin-top: 25px;
  justify-content: flex-start;
}
.welcome.welcome-premium .welcome-actions .button { height: 44px; padding: 0 22px; }
.hero-trust {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-trust span {
  padding: 7px 10px;
  border: 1px solid #e1e8f5;
  border-radius: 9px;
  color: #6b7890;
  background: rgba(255, 255, 255, .72);
  font-size: 10px;
}
.hero-trust b { color: #34425d; }
.software-hub {
  margin-top: 24px;
  padding: 20px;
  border-color: #dfe6f2;
  background: rgba(255, 255, 255, .82);
}
.product-section-head { margin: 0 0 14px; }
.product-section-head h3 { margin-top: 5px; font-size: 17px; }
.product-section-head > span { color: #919caf; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.software-hub .home-product-grid { margin-top: 0; gap: 10px; }
.product-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e7f1;
  border-radius: 14px;
  background: #fff;
  border-color: #e0e7f3;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card::after { display: none; }
.product-card:hover {
  border-color: #bdcbf8;
  box-shadow: 0 10px 24px rgba(49, 94, 251, .08);
  transform: translateY(-2px);
}
.ptrade-product:hover { border-color: #e6c7a1; box-shadow: 0 10px 24px rgba(182, 105, 24, .07); }
.product-card-copy { min-width: 0; }
.product-card-copy > span { display: block; }
.product-card-copy h3 { margin: 4px 0 3px; font-size: 15px; line-height: 1.35; }
.product-card-copy p { overflow: hidden; color: #7d899c; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.product-enter {
  padding: 7px 9px;
  border-radius: 8px;
  color: #7c899e;
  background: #f5f7fa;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.product-enter b { margin-left: 3px; color: var(--blue); }
.ptrade-product .product-enter b { color: #c97924; }
.product-visual {
  width: 48px;
  height: 48px;
  padding: 11px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border: 1px solid #cfdcff;
  border-radius: 14px;
  color: inherit;
  background: #eef3ff;
}
.product-visual i {
  width: 6px;
  border-radius: 4px 4px 2px 2px;
  background: #315efb;
}
.product-visual i:nth-child(1) { height: 12px; }
.product-visual i:nth-child(2) { height: 21px; }
.product-visual i:nth-child(3) { height: 29px; }
.ptrade-visual {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-color: #f1d2ad;
  background: #fff3e6;
}
.ptrade-visual i {
  width: 25px;
  height: 5px !important;
  border-radius: 5px;
  background: #d98228;
}
.ptrade-visual i:nth-child(2) { width: 18px; margin-left: 7px; }
.ptrade-visual i:nth-child(3) { width: 11px; margin-left: 14px; }
.search-large {
  border-radius: 12px;
  box-shadow: none;
}
.guest-limit-tip {
  padding: 18px;
  border-color: #dce5f7;
  border-radius: 15px;
  background: linear-gradient(135deg, #f9fbff, #f1f5ff);
}
.guest-limit-tip > div:nth-child(2) { flex: 1; }
.guest-limit-tip b,
.guest-limit-tip span { display: block; }
.guest-limit-tip span { margin-top: 5px; }
.guest-tip-icon,
.guest-wallet-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
}
.guest-tip-icon { width: 42px; height: 42px; flex: 0 0 auto; }
.guest-wallet-icon { width: 46px; height: 46px; margin-bottom: 15px; }
.guest-wallet-title { margin: 9px 0; color: var(--ink); font-size: 18px; font-weight: 750; }
.guest-account-link,
.account-register-link {
  padding: 7px 0 0;
  border: 0;
  color: #758198;
  background: transparent;
  font-size: 11px;
}
.guest-account-link:hover,
.account-register-link:hover { color: var(--blue); }
.guest-wallet .wechat-entry { width: 100%; margin-top: 17px; }
.wechat-mark {
  position: relative;
  width: 23px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
}
.wechat-mark i {
  position: absolute;
  display: block;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.wechat-mark i:first-child { top: 0; left: 0; width: 16px; height: 13px; }
.wechat-mark i:last-child { right: 0; bottom: 0; width: 13px; height: 11px; background: inherit; }
.wechat-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wechat-entry .wechat-mark { width: 19px; transform: scale(.82); }
.wechat-menu-entry { color: var(--blue) !important; font-weight: 700; }
.auth-gate {
  padding: clamp(34px, 7vw, 58px);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7f9ff);
}
.auth-gate-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(49, 94, 251, .2);
}
.auth-gate-kicker { margin-bottom: 10px; }
.auth-gate h2 { font-size: 28px; }
.auth-gate-actions { margin-top: 25px; }
.modal { background: rgba(20, 31, 55, .56); backdrop-filter: blur(10px); }
.modal-card {
  border: 1px solid rgba(223, 230, 242, .9);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(18, 31, 58, .22);
}
.modal-card:has(.wechat-login-panel) { width: min(500px, calc(100vw - 30px)); padding: 0; overflow: hidden; }
.modal-card:has(.wechat-login-panel) .modal-close {
  top: 17px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  z-index: 2;
}
.wechat-login-panel {
  padding: 25px clamp(24px, 7vw, 42px) 30px;
  text-align: center;
  background: #fff;
}
.wechat-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.wechat-login-brand > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}
.wechat-login-brand b,
.wechat-login-brand small { display: block; }
.wechat-login-brand b { color: var(--ink); font-size: 12px; }
.wechat-login-brand small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.qr-kicker { margin-top: 27px; }
.wechat-login-panel h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 25px;
  letter-spacing: -.4px;
}
.wechat-login-panel > p {
  margin: 0 auto;
  max-width: 340px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
.wechat-qr-guide {
  margin-top: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  background: #f8faff;
}
.wechat-qr-guide div { min-width: 0; }
.wechat-qr-guide b {
  width: 24px;
  height: 24px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 10px;
}
.wechat-qr-guide span {
  display: block;
  color: #66748b;
  font-size: 9px;
  line-height: 1.45;
}
.wechat-qr-status {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #66748b;
  background: #f4f6fa;
  font-size: 9px;
  line-height: 1.55;
}
.wechat-qr-status.active { color: #244fcf; background: #eef3ff; }
.wechat-qr-status.warning { color: #99551d; background: #fff5e9; }
.wechat-login-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0d1d4;
  border-radius: 10px;
  color: #a04f57;
  background: #fff6f6;
  font-size: 10px;
  line-height: 1.6;
}
.wechat-agreement {
  margin: 16px 0 12px;
  text-align: left;
}
.wechat-login-button {
  width: 100%;
  min-height: 58px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #315efb, #4774ff);
  box-shadow: 0 13px 28px rgba(49, 94, 251, .24);
}
.wechat-login-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(49, 94, 251, .28); }
.wechat-login-button:disabled { opacity: .76; }
.wechat-login-button > span:last-child { text-align: left; }
.wechat-login-button b,
.wechat-login-button small { display: block; }
.wechat-login-button b { font-size: 14px; }
.wechat-login-button small { margin-top: 3px; opacity: .72; font-size: 9px; font-weight: 400; }
.auth-divider {
  margin: 20px 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0aabc;
  font-size: 9px;
}
.auth-divider::before,
.auth-divider::after { height: 1px; flex: 1; background: #edf0f5; content: ""; }
.account-login-toggle,
.guest-continue {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #647189;
  background: #f3f5f9;
  font-size: 11px;
}
.account-login-toggle:hover { color: var(--blue); background: var(--blue-soft); }
.guest-continue { margin-top: 7px; background: transparent; }
.login-privacy-note {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #98a3b4;
  font-size: 8px;
}
.login-privacy-note i {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #88a0d0;
  font-size: 8px;
  font-style: normal;
}
.login-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .7s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .welcome.welcome-premium {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .welcome.welcome-premium {
    padding: 27px 22px;
    border-radius: 17px;
  }
  .welcome.welcome-premium h2 {
    margin-top: 14px;
    font-size: 28px;
    letter-spacing: -.8px;
  }
  .welcome.welcome-premium p { margin-top: 12px; font-size: 12px; line-height: 1.75; }
  .welcome.welcome-premium .welcome-actions {
    width: 100%;
    margin-top: 20px;
    flex-direction: row;
  }
  .welcome.welcome-premium .welcome-actions .button { min-width: 0; flex: 1; padding: 0 12px; }
  .hero-trust { margin-top: 18px; gap: 6px; }
  .hero-trust span { padding: 6px 8px; font-size: 8px; }
  .software-hub { padding: 15px; }
  .product-section-head > span { display: none; }
  .product-section-head h3 { font-size: 16px; }
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { min-height: 0; padding: 15px 10px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
  .product-card-copy h3 { margin-top: 4px; font-size: 14px; line-height: 1.35; }
  .product-card-copy p,
  .product-enter { display: none; }
  .product-visual { width: 43px; height: 43px; padding: 9px; }
  .search-large { margin-top: 12px; }
  .search-large input { height: 45px; padding-right: 98px; padding-left: 16px; font-size: 10px; }
  .search-large::before { display: none; }
  .search-large button { height: 35px; padding: 0 12px; font-size: 10px; }
  .guest-limit-tip { align-items: flex-start; flex-wrap: wrap; }
  .guest-limit-tip .wechat-entry { width: 100%; }
  .auth-gate-actions { flex-direction: column; }
  .auth-gate-actions .button { width: 100%; }
  .wechat-login-panel { padding-top: 22px; }
}
@media (max-width: 390px) {
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { min-height: 0; }
}

/* QUANTX web 1.3.2: owner-managed server point grants. */
.admin-users-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.admin-user-actions { display: flex; align-items: center; gap: 8px; }
.admin-users-head .admin-user-actions .button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
}
.admin-users-head .admin-user-actions .button.primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}
.account-row { grid-template-columns: 42px minmax(0, 1fr) auto auto auto; }
.point-grant-head > span { color: #fff; background: var(--blue); }
.point-grant-balance {
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce6fb;
  border-radius: 14px;
  background: #f5f8ff;
}
.point-grant-balance div { min-width: 0; text-align: center; }
.point-grant-balance span,
.point-grant-balance b { display: block; }
.point-grant-balance span { color: var(--muted); font-size: 10px; }
.point-grant-balance b { margin-top: 5px; color: var(--ink); font-size: 21px; }
.point-grant-balance i { color: #9aa8c0; font-style: normal; font-weight: 800; }
.point-grant-balance .result b { color: var(--blue); }
.point-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.point-presets button {
  min-height: 38px;
  border: 1px solid #dfe6f3;
  border-radius: 10px;
  color: #52617b;
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}
.point-presets button:hover,
.point-presets button.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

@media (max-width: 700px) {
  .admin-users-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .admin-user-actions { width: 100%; }
  .admin-user-actions .button { flex: 1; }
  .point-grant-balance { gap: 5px; padding: 13px 8px; }
  .point-grant-balance b { font-size: 18px; }
  .point-presets { grid-template-columns: repeat(2, 1fr); }
}

/* QUANTX web 1.4: server-backed service, trust and governance UX. */
.notification-button {
  position: relative;
  height: 36px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5c687d;
  background: #fff;
  font-size: 10px;
}
.notification-button:hover,
.notification-button.has-unread { border-color: #c8d5ff; color: var(--blue); background: #f6f8ff; }
.notification-button b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #a5afbf;
  font-size: 8px;
}
.notification-button.has-unread b { background: var(--blue); }
.server-warning {
  margin-bottom: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-color: #eadfc9;
  background: #fffaf0;
}
.server-warning b,
.server-warning span { display: block; }
.server-warning b { color: #7f5c28; font-size: 10px; }
.server-warning span { margin-top: 3px; color: #988268; font-size: 8px; }

.topic-service-state {
  margin: 10px 0 2px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  background: #f8fafc;
}
.topic-service-state > span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7e899b;
  background: #e9edf3;
  font-size: 9px;
  font-weight: 800;
}
.topic-service-state.claimed { border-color: #dbe5ff; background: #f5f8ff; }
.topic-service-state.claimed > span { color: var(--blue); background: #e5ebff; }
.topic-service-state b,
.topic-service-state small { display: block; }
.topic-service-state b { color: #38445a; font-size: 10px; }
.topic-service-state small { margin-top: 2px; color: #8a95a7; font-size: 8px; }
.tag.knowledge { color: #5c4ba5; background: #f1eeff; }

.home-proof {
  margin-top: 22px;
  padding-top: 17px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #e2e8f5;
}
.home-proof > div { min-width: 0; }
.home-proof b,
.home-proof span { display: block; }
.home-proof b { color: var(--ink); font-size: 16px; line-height: 1.25; }
.home-proof span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.home-proof.empty-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-proof.empty-proof > p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #8a95a7;
  font-size: 8px;
}
.expert-showcase-panel {
  margin-top: 22px;
  padding: 18px;
  display: block;
  border-color: #dfe6f3;
  background: linear-gradient(135deg, #f8faff, #fff 52%);
}
.expert-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
  padding: 2px;
}
.expert-intro h3 { margin: 6px 0 0; color: var(--ink); font-size: 17px; }
.expert-intro > p { margin: 4px 0 0; color: #738096; font-size: 9px; line-height: 1.7; }
.expert-intro .section-kicker,
.expert-intro h3,
.expert-intro > p { grid-column: 1; }
.expert-trust-note {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #66758e;
  font-size: 8px;
}
.expert-trust-note i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 94, 251, .09);
}
.expert-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: start;
  gap: 10px;
}
.expert-mini-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(42, 61, 101, .045);
}
.expert-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.expert-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: #33415c;
  font-weight: 800;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-mini-card strong,
.expert-mini-card small { display: block; }
.expert-mini-card strong { color: var(--ink); font-size: 11px; }
.expert-mini-card small { margin-top: 3px; color: #66738a; font-size: 8px; }
.expert-online {
  padding: 5px 7px;
  border-radius: 7px;
  color: #65738a;
  background: #f2f5f9;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}
.expert-online.active { color: #3157c9; background: #edf3ff; }
.expert-skill-list { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.expert-skill-list span { padding: 5px 7px; border-radius: 7px; color: #586780; background: #f4f6fa; font-size: 7px; }
.expert-proof-row {
  margin-top: 11px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid #edf0f5;
}
.expert-proof-row span { color: #8b95a6; font-size: 7px; }
.expert-proof-row b { margin-right: 3px; color: #33415a; font-size: 10px; }
.expert-newcomer { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #edf0f5; color: #8490a3; font-size: 8px; line-height: 1.55; }

.ask-form-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.ask-form-heading h2 { margin: 5px 0 0; }
.ask-form-heading p { margin: 6px 0 0; }
.server-status {
  padding: 7px 9px;
  border-radius: 8px;
  color: #8b5f24;
  background: #fff4e4;
  font-size: 8px;
  white-space: nowrap;
}
.server-status.online { color: #247056; background: #eaf7f1; }
.ask-quality {
  margin: 0 0 20px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: minmax(110px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #dce5f7;
  border-radius: 12px;
  background: #f7f9fe;
}
.ask-quality > div { height: 7px; overflow: hidden; border-radius: 7px; background: #e7ebf3; }
.ask-quality > div span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--blue); transition: width .2s ease; }
.ask-quality p { margin: 0; }
.ask-quality b,
.ask-quality small { display: block; }
.ask-quality b { color: #344158; font-size: 10px; }
.ask-quality small { margin-top: 3px; color: #8590a3; font-size: 8px; line-height: 1.5; }
.field-help { margin-top: 6px; display: block; color: #78859b; font-size: 8px; }

.structured-detail .environment-grid {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.environment-grid > div {
  padding: 10px 12px;
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  background: #f8fafc;
}
.environment-grid > div.wide { grid-column: 1 / -1; }
.environment-grid span,
.environment-grid b { display: block; }
.environment-grid span { color: #8a95a8; font-size: 8px; }
.environment-grid b { margin-top: 4px; color: #3b475c; font-size: 10px; font-weight: 650; }
.detail-copy-block {
  padding: 12px 0;
  border-top: 1px solid #edf0f5;
}
.detail-copy-block > span { color: #78859a; font-size: 9px; font-weight: 750; }
.detail-copy-block > p { margin: 7px 0 0; white-space: pre-wrap; }
.detail-copy-block.error { margin-top: 3px; padding: 12px; border: 1px solid #f1dadd; border-radius: 10px; background: #fff8f8; }
.detail-copy-block.error > span { color: #a5525c; }
.detail-copy-block.expected { padding-bottom: 0; }
.service-timeline {
  margin: 12px 0 22px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  background: #fafbfd;
}
.claim-status.overdue { border-color: #efd6d9; background: #fff7f7; }
.claim-status.overdue .claim-avatar { color: #fff; background: #b95b65; }
.claim-status.overdue p { color: #a0545d; }
.answer-card p { white-space: pre-wrap; }
.service-timeline > div { min-width: 0; display: flex; align-items: center; gap: 7px; opacity: .58; }
.service-timeline > div.done { opacity: 1; }
.service-timeline i {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #79869b;
  background: #e9edf3;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.service-timeline .done i { color: #fff; background: var(--blue); }
.service-timeline b,
.service-timeline small { display: block; }
.service-timeline b { color: #465269; font-size: 8px; }
.service-timeline small { margin-top: 2px; color: #929cad; font-size: 7px; }
.text-action {
  padding: 2px 4px;
  border: 0;
  color: #98a2b2;
  background: transparent;
  font-size: 8px;
}
.text-action:hover { color: #b65761; }
.customer-message-item > div > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.service-overview {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.service-overview > div { padding: 12px; border-radius: 10px; background: #f6f8fc; }
.service-overview span,
.service-overview b { display: block; }
.service-overview span { color: #7e899c; font-size: 8px; }
.service-overview b { margin-top: 6px; color: var(--ink); font-size: 18px; }
.notification-health {
  margin-top: 10px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eadfca;
  border-radius: 10px;
  color: #8a642d;
  background: #fff9ee;
  font-size: 8px;
}
.notification-health.ready { border-color: #d4eadf; color: #286d58; background: #f0faf5; }
.notification-health b { font-size: 9px; white-space: nowrap; }
.governance-head { margin-top: 26px; }
.governance-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 12px; }
.report-queue,
.audit-panel { padding: 16px; }
.panel-title { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.panel-title b,
.panel-title span { display: block; }
.panel-title b { color: var(--ink); font-size: 12px; }
.panel-title span { margin-top: 3px; color: #8994a5; font-size: 8px; }
.report-row {
  padding: 11px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf0f5;
}
.report-reason { padding: 5px 7px; border-radius: 7px; color: #a24e57; background: #fff0f1; font-size: 8px; font-weight: 700; }
.report-row strong,
.report-row p,
.report-row small { display: block; }
.report-row strong { color: #3e4a60; font-size: 9px; }
.report-row p { margin: 4px 0 0; color: #6f7b8f; font-size: 8px; }
.report-row small { margin-top: 3px; color: #9aa3b2; font-size: 7px; }
.audit-row { padding: 9px 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid #edf0f5; }
.audit-row > span { color: var(--blue); font-size: 8px; font-weight: 700; }
.audit-row b,
.audit-row small { display: block; }
.audit-row b { color: #455168; font-size: 9px; }
.audit-row small,
.audit-row time { color: #929cad; font-size: 7px; }
.expertise-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.expertise-checks label { position: relative; cursor: pointer; }
.expertise-checks input { position: absolute; opacity: 0; pointer-events: none; }
.expertise-checks span { padding: 7px 9px; display: block; border: 1px solid #dfe5ef; border-radius: 8px; color: #657188; background: #fff; font-size: 8px; }
.expertise-checks input:checked + span { border-color: #aebfff; color: var(--blue); background: var(--blue-soft); }

.notification-center { max-height: min(720px, calc(100vh - 100px)); display: flex; flex-direction: column; }
.notification-head { padding-right: 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.notification-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 22px; }
.notification-head p { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.notification-list { margin-top: 16px; overflow: auto; border-top: 1px solid #edf0f5; }
.notification-item {
  width: 100%;
  padding: 13px 3px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  color: inherit;
  background: #fff;
  text-align: left;
}
.notification-item:hover { background: #fafbfe; }
.notification-item.unread { background: #f7f9ff; }
.notification-type { padding: 5px 7px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 700; }
.notification-item strong,
.notification-item p,
.notification-item small { display: block; }
.notification-item strong { color: var(--ink); font-size: 10px; }
.notification-item p { margin: 5px 0 0; color: #68758a; font-size: 9px; line-height: 1.55; }
.notification-item small { margin-top: 4px; color: #98a2b2; font-size: 7px; }
.notification-item > i { padding: 3px 5px; border-radius: 6px; color: #fff; background: var(--blue); font-size: 7px; font-style: normal; }
.notification-foot { margin-top: 12px; color: #909aab; font-size: 8px; line-height: 1.6; }
.report-form-head,
.report-review-head { margin-bottom: 17px; display: flex; align-items: center; gap: 11px; }
.report-form-head > span,
.report-review-head > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #b85a64; font-weight: 800; }
.report-form-head h2,
.report-review-head h2 { margin: 0; color: var(--ink); font-size: 18px; }
.report-form-head p,
.report-review-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.reported-preview { border: 1px solid #e8ecf3; border-radius: 10px; background: #f8fafc; }
.reported-preview p { white-space: pre-wrap; }

@media (max-width: 900px) {
  .governance-grid { grid-template-columns: 1fr; }
  .service-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-actions { gap: 5px; }
  .notification-button { width: 34px; padding: 0; justify-content: center; }
  .notification-button > span { display: none; }
  .notification-button b { min-width: 19px; }
  .home-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-proof.empty-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .expert-showcase-panel { padding: 15px; }
  .expert-intro { display: block; padding: 0; }
  .expert-intro > p { max-width: 440px; }
  .expert-trust-note { margin-top: 10px; }
  .expert-strip { grid-template-columns: 1fr; }
  .ask-form-heading { flex-direction: column; gap: 10px; }
  .ask-quality { grid-template-columns: 1fr; }
  .structured-detail .environment-grid { grid-template-columns: 1fr; }
  .environment-grid > div.wide { grid-column: auto; }
  .service-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-timeline { grid-template-columns: 1fr; }
  .report-row { grid-template-columns: auto minmax(0, 1fr); }
  .report-row .button { grid-column: 1 / -1; width: 100%; }
  .audit-row { grid-template-columns: 62px minmax(0, 1fr); }
  .audit-row time { grid-column: 2; }
  .notification-head { flex-direction: column; }
  .notification-head .button { width: 100%; }
}

/* TradingView-inspired light workspace */
:root {
  --ink: #131722;
  --text: #434651;
  --muted: #787b86;
  --soft: #f0f3fa;
  --canvas: #f7f8fa;
  --paper: #ffffff;
  --line: #e0e3eb;
  --blue: #2962ff;
  --blue-dark: #1e53e5;
  --blue-soft: #edf2ff;
  --green: #089981;
  --green-soft: #e8f7f4;
  --amber: #b96b16;
  --amber-soft: #fff4e5;
  --shadow: none;
}

body {
  color: var(--text);
  background: var(--canvas);
}

.site-header {
  height: 58px;
  background: rgba(255, 255, 255, .98);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}
.header-inner,
.page-heading,
.workspace { width: min(1240px, calc(100% - 32px)); }
.header-inner { gap: 24px; }
.brand { gap: 9px; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--blue);
  box-shadow: none;
  font-size: 17px;
}
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 1px; font-size: 9px; }
nav { gap: 0; }
.nav-item { padding: 0 13px; color: #50535e; font-size: 13px; }
.nav-item:hover { color: #131722; background: #f7f8fa; }
.nav-item.active { color: #131722; font-weight: 700; }
.nav-item.active::after {
  right: 13px;
  left: 13px;
  height: 2px;
  border-radius: 0;
  background: var(--blue);
}
.points-chip,
.user-button,
.notification-button { border-radius: 6px; }
.role-menu {
  top: 43px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(19, 23, 34, .12);
}
.role-menu button { border-radius: 4px; }

.risk-ticker {
  top: 58px;
  height: 29px;
  border-color: #f0d0d2;
  color: #9b4d54;
  background: #fff5f6;
}
.risk-track { gap: 42px; font-size: 10px; font-weight: 600; }

.main { min-height: calc(100vh - 87px); }
.page-heading { padding: 17px 0 11px; }
.page-heading h1 { font-size: 23px; letter-spacing: -.4px; }
.page-heading p { margin-top: 4px; font-size: 11px; }
.workspace { gap: 12px; padding-bottom: 44px; }
.card {
  border-color: var(--line);
  border-radius: 7px;
  box-shadow: none;
}

.button {
  height: 36px;
  padding: 0 15px;
  border-radius: 5px;
  font-size: 12px;
  box-shadow: none;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.button:hover { transform: none; }
.button.primary,
.button.primary:hover {
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}
.button.primary:hover { background: var(--blue-dark); }
.button.light {
  color: #131722;
  border-color: #cfd3dc;
  background: #fff;
}
.button.light:hover { border-color: #9ca3b3; background: #f7f8fa; }
.button.gray { color: #50535e; background: #f0f3fa; }

.welcome.welcome-premium {
  padding: 34px 36px 32px;
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}
.welcome-copy { max-width: 900px; }
.hero-kicker,
.auth-gate-kicker { color: var(--blue); font-size: 11px; }
.hero-kicker i,
.auth-gate-kicker i { box-shadow: none; }
.welcome.welcome-premium h2 {
  max-width: none;
  margin-top: 15px;
  font-size: clamp(30px, 3.3vw, 40px);
  line-height: 1.12;
  letter-spacing: -1px;
}
.welcome.welcome-premium p {
  max-width: 780px;
  margin-top: 13px;
  color: #5d606b;
  font-size: 13px;
  line-height: 1.7;
}
.welcome.welcome-premium .welcome-actions { margin-top: 21px; }
.welcome.welcome-premium .welcome-actions .button { height: 38px; padding: 0 18px; }
.hero-trust { margin-top: 18px; gap: 7px; }
.hero-trust span {
  padding: 6px 9px;
  border-color: var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 9px;
}

.software-hub {
  margin-top: 12px;
  padding: 16px;
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
}
.product-section-head { margin: 0 0 11px; }
.product-section-head h3 { margin-top: 3px; font-size: 16px; }
.software-hub .home-product-grid { gap: 8px; }
.product-card {
  min-height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 14px;
  border-color: var(--line);
  border-radius: 6px;
  background: #fff;
}
.product-card:hover,
.ptrade-product:hover {
  border-color: #aeb4c2;
  background: #fafbfc;
  box-shadow: none;
  transform: none;
}
.product-visual {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}
.product-card-copy h3 { margin: 2px 0; font-size: 14px; }
.product-card-copy p { color: #787b86; font-size: 10px; }
.product-enter {
  padding: 6px 8px;
  border-radius: 4px;
  color: #5d606b;
  background: #f0f3fa;
}
.search-large { margin-top: 10px; border-radius: 5px; }
.search-large input {
  height: 42px;
  padding-left: 40px;
  border-color: var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.search-large::before { top: 11px; }
.search-large button { top: 3px; right: 3px; }

.section-head { margin: 20px 2px 9px; }
.section-head h3 { font-size: 16px; }
.section-head button { font-size: 11px; }
.topic-list { border-radius: 7px; }
.topic-row {
  padding: 14px 16px 14px 19px;
  transition: background .12s ease;
}
.topic-row::before { top: 14px; bottom: 14px; left: 0; width: 2px; border-radius: 0; }
.topic-row:hover,
.topic-row.platform-bigqmt:hover,
.topic-row.platform-qmt:hover,
.topic-row.platform-ptrade:hover,
.topic-row.platform-general:hover { background: #f7f8fa; }
.topic-row h4 { margin: 8px 0 5px; font-size: 15px; }
.tag { border-radius: 4px; }

.wallet-aside { gap: 10px; }
.wallet-card {
  padding: 17px;
  border-radius: 7px;
  background: #131722;
}
.wallet-card .button { color: #fff; background: var(--blue); }
.wallet-card .button:hover { background: var(--blue-dark); }
.aside-list,
.certification-aside,
.consultation-aside { padding: 15px; border-radius: 7px; }

.platform-hero,
.forum-head,
.form-card,
.draft-panel,
.summary-card,
.profile-center,
.consultation-stat,
.consultation-client-card,
.report-queue,
.audit-panel,
.trash-header,
.trash-list,
.auth-gate,
.answer-card,
.service-timeline,
.service-overview {
  border-radius: 7px;
  box-shadow: none;
}
.platform-hero,
.platform-hero.ptrade { padding: 25px; border-color: var(--line); background: #fff; }
.forum-head,
.form-card { padding: 20px; }
.toolbar input,
.toolbar select,
.field input,
.field select,
.field textarea,
.form-input {
  border-color: #cfd3dc;
  border-radius: 5px;
  background: #fff;
}
.toolbar input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(41, 98, 255, .12);
}
.modal { background: rgba(19, 23, 34, .55); backdrop-filter: blur(2px); }
.modal-card { border-radius: 8px; box-shadow: 0 18px 48px rgba(19, 23, 34, .2); }
.floating-doc { border-radius: 7px; box-shadow: 0 6px 20px rgba(19, 23, 34, .14); }

@media (max-width: 900px) {
  .header-inner,
  .page-heading,
  .workspace { width: min(100% - 24px, 1240px); }
  .workspace { gap: 10px; }
  .welcome.welcome-premium { padding: 28px; }
}

@media (max-width: 700px) {
  .site-header { height: auto; }
  .header-inner { gap: 8px; }
  .risk-ticker { top: 94px; }
  .page-heading { padding-top: 14px; }
  .page-heading h1 { font-size: 21px; }
  .welcome.welcome-premium { padding: 22px 20px; }
  .welcome.welcome-premium h2 { font-size: 29px; letter-spacing: -.6px; }
  .welcome.welcome-premium p { font-size: 12px; line-height: 1.65; }
  .welcome.welcome-premium .welcome-actions { margin-top: 17px; }
  .hero-trust { margin-top: 15px; }
  .software-hub { padding: 13px; }
  .product-card {
    min-height: 104px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    padding: 13px 8px;
    text-align: center;
  }
  .product-card-copy h3 { margin-top: 2px; font-size: 12px; }
  .product-card-copy p,
  .product-enter { display: none; }
  .search-large input { padding-right: 82px; font-size: 10px; }
  .search-large .button { padding: 0 10px; font-size: 10px; }
  .topic-row { padding: 13px 13px 13px 17px; }
  .topic-row h4 { font-size: 14px; }
  .forum-head,
  .form-card,
  .platform-hero { padding: 16px; }
  .floating-doc {
    width: 46px;
    min-height: 46px;
    padding: 6px;
  }
  .floating-doc b { display: none; }
}

/* Launch polish 1.6 */
:root {
  --workspace-width: 1280px;
  --surface-hover: #f7f8fa;
  --focus-ring: 0 0 0 3px rgba(41, 98, 255, .18);
}

body { font-size: 14px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-150%);
  transition: transform .16s ease;
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.header-inner {
  width: min(var(--workspace-width), calc(100% - 32px));
  max-width: var(--workspace-width);
  padding: 0;
  gap: 16px;
}
.brand { min-width: 136px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { font-size: 10px; }
.header-search {
  width: clamp(190px, 20vw, 270px);
  flex-basis: 270px;
  font-size: 12px;
}
.nav-item { padding: 0 12px; font-size: 13px; }
.nav-item.active { color: var(--blue); }
.user-button b { font-size: 12px; }
.user-button small { font-size: 10px; }

.risk-track { font-size: 11px; }
.risk-ticker:hover .risk-track { animation-play-state: paused; }

.page-heading,
.workspace { width: min(var(--workspace-width), calc(100% - 32px)); }
.page-heading {
  min-height: 72px;
  padding: 17px 0 12px;
}
.page-heading h1 { font-size: 24px; }
.page-heading p { font-size: 12px; }
body[data-page="home"] .page-heading,
body[data-page="topic"] .page-heading { display: none; }
body[data-page="home"] .workspace,
body[data-page="topic"] .workspace { padding-top: 16px; }

.workspace {
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 16px;
  padding-bottom: 52px;
}
.wallet-aside { top: 100px; gap: 10px; }
.card { border-radius: 7px; }

.button {
  min-height: 36px;
  padding: 0 15px;
  font-size: 12px;
}

.welcome.welcome-premium {
  min-height: 0;
  padding: 27px 30px 24px;
  display: block;
}
.welcome-copy { max-width: none; }
.hero-kicker,
.auth-gate-kicker { font-size: 11px; }
.welcome.welcome-premium h2 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(31px, 3vw, 39px);
}
.welcome.welcome-premium p {
  max-width: 760px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.welcome.welcome-premium .welcome-actions { margin-top: 17px; }
.hero-trust {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.hero-trust span {
  padding: 0;
  border: 0;
  color: #787b86;
  background: transparent;
  font-size: 11px;
}
.hero-trust span:hover { border: 0; }
.hero-trust b { color: #434651; }

.software-hub { margin-top: 12px; padding: 16px; }
.product-section-head { margin-bottom: 12px; }
.product-section-head h3 { font-size: 17px; }
.product-section-head > span { font-size: 10px; }
.software-hub .home-product-grid { gap: 10px; }
.product-card {
  min-height: 86px;
  padding: 14px 15px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
}
.product-visual { width: 44px; height: 44px; }
.product-card-copy > span { font-size: 10px; }
.product-card-copy h3 { font-size: 15px; }
.product-card-copy p { font-size: 11px; }
.product-enter { font-size: 10px; }
.search-large { margin-top: 10px; }
.search-large input { height: 44px; padding-left: 14px; font-size: 12px; }
.search-large button { top: 4px; height: 36px; }

.section-head { margin: 20px 2px 9px; }
.section-head h3 { font-size: 16px; }
.section-head p { font-size: 10px; }
.section-head button { min-height: 34px; font-size: 11px; }

.topic-row {
  padding: 15px 16px 13px 19px;
  grid-template-columns: minmax(0, 1fr) 180px;
  column-gap: 16px;
}
.topic-row::before { top: 13px; bottom: 13px; }
.topic-row h4 { margin: 8px 0 5px; font-size: 15px; line-height: 1.45; }
.topic-summary { font-size: 11px; line-height: 1.6; }
.tag { font-size: 9px; }
.reward { font-size: 11px; }
.topic-service-state {
  margin: 5px 0 0;
  padding: 2px 0 2px 13px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.topic-service-state.claimed { border-color: var(--line); background: transparent; }
.topic-service-state > span { width: 28px; height: 28px; }
.topic-service-state b { font-size: 10px; }
.topic-service-state small { font-size: 9px; }
.topic-bottom { font-size: 10px; }

.wallet-card,
.guest-wallet,
.aside-list,
.certification-aside,
.consultation-aside { padding: 16px; }
.guest-wallet-icon { width: 38px; height: 38px; }
.guest-wallet-title { margin-top: 9px; font-size: 17px; line-height: 1.4; }
.wallet-tip { margin-top: 8px; font-size: 10px; line-height: 1.65; }
.guest-benefits {
  margin: 13px 0 4px;
  padding: 10px 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guest-benefits span { color: #787b86; font-size: 10px; line-height: 1.45; }
.guest-benefits b { margin-right: 7px; color: #434651; font-size: 10px; }
.aside-title { font-size: 13px; }
.aside-list p,
.certification-aside > p,
.consultation-aside > p { font-size: 10px; line-height: 1.65; }

.forum-head { padding: 20px; }
.forum-head h2,
.form-card h2 { font-size: 19px; }
.forum-head p,
.form-card > p { font-size: 11px; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 8px;
}
.toolbar input,
.toolbar select { height: 40px; font-size: 12px; }
.forum-tabs { margin: 10px 0; }
.forum-tab { min-height: 46px; }
.forum-tab b { font-size: 11px; }
.forum-tab small { font-size: 9px; }

.platform-hero,
.platform-hero.ptrade { padding: 24px; }
.platform-hero h2 { font-size: 23px; }
.platform-hero p { font-size: 11px; }
.qmt-sub-card b { font-size: 13px; }
.qmt-sub-card p { font-size: 10px; line-height: 1.6; }

.form-card { padding: 23px; }
.ask-form-heading h2 { font-size: 20px; }
.ask-form-heading p { font-size: 11px; }
.field label { font-size: 11px; }
.field input,
.field select,
.field textarea,
.form-input { font-size: 12px; }
.field input,
.field select,
.form-input { min-height: 41px; }
.field textarea { min-height: 116px; }
.ask-quality b { font-size: 11px; }
.ask-quality small,
.field-help { font-size: 9px; }

body[data-page="topic"] .content { width: min(100%, 980px); margin: 0 auto; }
.topic-back { width: 100%; font-size: 11px; }
.topic-detail-page { padding: 25px; }
.detail-title { font-size: 25px; line-height: 1.35; }
.detail-meta { font-size: 10px; }
.detail-section > h4,
.customer-message-head h4 { font-size: 14px; }
.detail-copy-block > span { font-size: 10px; }
.detail-copy-block > p,
.answer-card p { font-size: 12px; line-height: 1.75; }
.customer-message-head p,
.customer-message-item p { font-size: 10px; }

.modal-card:has(.wechat-login-panel) { width: min(460px, calc(100vw - 28px)); }
.wechat-login-panel { padding: 24px 32px 27px; }
.wechat-login-panel h2 { font-size: 24px; }
.wechat-login-panel > p { font-size: 11px; }
.wechat-qr-guide { border-radius: 7px; background: #fafafa; }
.wechat-qr-guide b { border-radius: 4px; }
.wechat-login-button { min-height: 52px; border-radius: 6px; background: var(--blue); box-shadow: none; }
.wechat-login-button:hover { background: var(--blue-dark); box-shadow: none; transform: none; }
.account-login-toggle,
.guest-continue { border-radius: 5px; }

.floating-doc {
  top: 62%;
  right: 0;
  bottom: auto;
  width: 64px;
  min-height: 56px;
  border-radius: 6px 0 0 6px;
  opacity: .94;
}
.floating-doc:hover { opacity: 1; }

@media (max-width: 1120px) {
  .header-inner,
  .page-heading,
  .workspace { width: min(100% - 24px, var(--workspace-width)); }
  .header-inner { width: min(100% - 24px, var(--workspace-width)); }
  .workspace { grid-template-columns: minmax(0, 1fr) 252px; }
}

@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .wallet-aside { display: none; }
  .welcome.welcome-premium { padding: 25px 24px 22px; }
}

@media (max-width: 700px) {
  .site-header { height: 92px; }
  .header-inner {
    width: 100%;
    padding: 0 9px;
    grid-template-rows: 50px 42px;
  }
  .brand-logo { width: 32px; height: 32px; }
  .brand-copy strong { font-size: 14px; }
  .header-actions { gap: 4px; }
  .user-button { height: 38px; padding: 4px; }
  .user-button > div,
  .user-button > i { display: none; }
  nav { margin: 0 -9px; padding: 0 4px; }
  .nav-item { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .risk-ticker { top: 92px; height: 29px; }
  .risk-track { font-size: 10px; }
  .page-heading,
  .workspace { width: calc(100% - 16px); }
  .page-heading { min-height: 62px; padding: 12px 0 9px; }
  .page-heading h1 { font-size: 20px; }
  .page-heading p { max-width: 255px; font-size: 10px; line-height: 1.4; }
  body[data-page="home"] .workspace,
  body[data-page="topic"] .workspace { padding-top: 10px; }
  .workspace { gap: 9px; padding-bottom: 72px; }
  .welcome.welcome-premium { padding: 20px 17px 18px; }
  .welcome.welcome-premium h2 { margin-top: 10px; font-size: 27px; line-height: 1.2; }
  .welcome.welcome-premium p { margin-top: 9px; font-size: 12px; line-height: 1.65; }
  .welcome.welcome-premium .welcome-actions { gap: 7px; }
  .welcome.welcome-premium .welcome-actions .button { min-height: 42px; }
  .hero-trust {
    margin-top: 15px;
    padding-top: 11px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hero-trust span {
    padding: 7px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.4;
    white-space: normal;
  }
  .software-hub { padding: 11px; }
  .product-section-head h3 { font-size: 15px; }
  .product-section-head > span { display: none; }
  .product-card { min-height: 108px; padding: 12px 7px; }
  .product-card-copy h3 { font-size: 12px; }
  .search-large input { height: 44px; padding-right: 91px; font-size: 12px; }
  .search-large .button { height: 36px; font-size: 11px; }
  .section-head { margin-top: 18px; }
  .section-head h3 { font-size: 15px; }
  .section-head p { font-size: 9px; }
  .topic-row { display: block; padding: 13px 13px 12px 16px; }
  .topic-row h4 { font-size: 14px; line-height: 1.45; }
  .topic-summary { font-size: 10px; line-height: 1.55; }
  .topic-service-state {
    margin-top: 10px;
    padding: 9px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .topic-service-state small { display: none; }
  .topic-bottom { font-size: 9px; }
  .forum-head,
  .form-card,
  .platform-hero,
  .topic-detail-page { padding: 16px; }
  .forum-head h2,
  .form-card h2 { font-size: 18px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar input { grid-column: 1 / -1; min-width: 0; }
  .toolbar select,
  .toolbar .button { min-width: 0; min-height: 42px; }
  .forum-tab { min-height: 48px; }
  .field input,
  .field select,
  .field textarea,
  .form-input { font-size: 16px; }
  .field label { font-size: 12px; }
  .form-actions .button { min-height: 42px; }
  .topic-detail-page { padding-top: 18px; }
  .detail-title { font-size: 21px; }
  .detail-meta { gap: 8px; font-size: 9px; }
  .service-timeline { gap: 7px; }
  .modal-card:has(.wechat-login-panel) { width: calc(100vw - 18px); }
  .wechat-login-panel { padding: 22px 17px 23px; }
  .wechat-login-panel h2 { font-size: 22px; }
  .wechat-qr-guide { padding: 11px 6px; }
  .wechat-qr-guide span { font-size: 8px; }
  .wechat-agreement { font-size: 10px; }
  .wechat-login-button { min-height: 50px; }
  .floating-doc {
    top: 68%;
    right: 0;
    bottom: auto;
    width: 40px;
    min-height: 44px;
    padding: 6px 4px;
    border-radius: 6px 0 0 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .risk-track { transform: none; }
}

/* TradingView workspace system 1.5 */
:root {
  --ink: #131722;
  --text: #434651;
  --muted: #787b86;
  --soft: #f0f3fa;
  --canvas: #f0f3fa;
  --paper: #ffffff;
  --line: #dfe1e6;
  --line-strong: #c8ccd4;
  --blue: #2962ff;
  --blue-dark: #1e53e5;
  --blue-soft: #eef2ff;
  --green: #089981;
  --green-soft: #e7f7f3;
  --red: #f23645;
  --red-soft: #fff0f1;
  --amber: #b96b16;
  --amber-soft: #fff4e5;
  --shadow: 0 1px 2px rgba(19, 23, 34, .04);
}

html { color-scheme: light; scrollbar-color: #b2b5be #f0f3fa; }
body {
  min-width: 320px;
  color: var(--text);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
}
::selection { color: #fff; background: var(--blue); }

.site-header {
  height: 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: 100%;
  max-width: none;
  padding: 0 16px;
  gap: 12px;
}
.brand { min-width: 132px; gap: 9px; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--blue);
  box-shadow: none;
  font-size: 16px;
}
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 1px; color: #787b86; font-size: 9px; }
.header-search {
  width: clamp(170px, 19vw, 252px);
  height: 34px;
  padding: 0 8px 0 12px;
  display: flex;
  flex: 0 1 252px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #787b86;
  background: #f0f3fa;
  font-size: 11px;
  text-align: left;
}
.header-search:hover { border-color: #c8ccd4; background: #fff; }
.header-search kbd {
  padding: 2px 6px;
  border: 1px solid #d6d9df;
  border-radius: 4px;
  color: #787b86;
  background: #fff;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
nav {
  min-width: 0;
  flex: 1 1 auto;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
.nav-item {
  min-width: max-content;
  padding: 0 11px;
  color: #50535e;
  font-size: 12px;
}
.nav-item:hover { color: #131722; background: #f7f8fa; }
.nav-item.active { color: #131722; font-weight: 700; }
.nav-item.active::after {
  right: 11px;
  left: 11px;
  height: 2px;
  border-radius: 0;
  background: var(--blue);
}
.header-actions { gap: 6px; }
.points-chip,
.notification-button {
  height: 34px;
  border-color: var(--line);
  border-radius: 5px;
  background: #fff;
}
.points-chip:hover,
.notification-button:hover { border-color: var(--line-strong); background: #f7f8fa; }
.user-button { height: 40px; border-radius: 5px; }
.user-button:hover { background: #f0f3fa; }
.user-button > span { width: 30px; height: 30px; border-radius: 50%; }
.role-menu {
  top: 43px;
  width: 168px;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(19, 23, 34, .14);
}
.role-menu button { padding: 9px 10px; border-radius: 4px; font-size: 11px; }

.risk-ticker {
  top: 56px;
  height: 28px;
  border-bottom-color: #f2cdd0;
  color: #a1454d;
  background: #fff5f6;
}
.risk-track { gap: 46px; font-size: 10px; font-weight: 600; }
.risk-track span { padding-left: 24px; }

.main { min-height: calc(100vh - 84px); }
.page-heading,
.workspace {
  width: min(1440px, calc(100% - 28px));
}
.page-heading {
  min-height: 67px;
  padding: 15px 2px 11px;
  align-items: center;
}
.page-heading h1 { font-size: 22px; letter-spacing: -.45px; }
.page-heading p { margin-top: 3px; color: #787b86; font-size: 10px; }
.heading-ask { height: 34px; }
.workspace {
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 10px;
  padding-bottom: 46px;
}
.wallet-aside {
  position: sticky;
  top: 96px;
  gap: 8px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.button:hover { transform: none; }
.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: none; }
.button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button.light { color: #131722; border-color: #cfd3dc; background: #fff; }
.button.light:hover { border-color: #9da3ae; background: #f7f8fa; }
.button.gray { color: #434651; border-color: #f0f3fa; background: #f0f3fa; }
.button.gray:hover { background: #e6e9ef; }
.button.danger { color: #c73541; border-color: #f5c9cd; background: #fff5f6; }
.button.danger:hover { color: #fff; border-color: var(--red); background: var(--red); }
.eyebrow { color: var(--blue); font-size: 10px; letter-spacing: .04em; }

.welcome.welcome-premium {
  min-height: 0;
  padding: 30px 34px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}
.welcome.welcome-premium::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}
.welcome.welcome-premium::after { display: none; }
.welcome-copy { max-width: 920px; }
.hero-kicker,
.auth-gate-kicker { color: var(--blue); font-size: 10px; }
.welcome.welcome-premium h2 {
  margin-top: 13px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -1.1px;
}
.welcome.welcome-premium p {
  max-width: 820px;
  margin-top: 12px;
  color: #5d606b;
  font-size: 12px;
  line-height: 1.75;
}
.welcome.welcome-premium .welcome-actions { margin-top: 19px; }
.welcome.welcome-premium .welcome-actions .button { height: 36px; }
.hero-trust { margin-top: 17px; gap: 5px; }
.hero-trust span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #5d606b;
  background: #fff;
  font-size: 9px;
}
.hero-trust span:hover { border-color: #b8bdc7; }

.software-hub {
  margin-top: 10px;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
}
.product-section-head { margin: 0 0 10px; }
.product-section-head h3 { margin-top: 3px; font-size: 15px; }
.product-section-head > span { color: #787b86; font-size: 9px; }
.software-hub .home-product-grid { gap: 7px; }
.product-card {
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.product-card:hover,
.ptrade-product:hover {
  border-color: #aab0bb;
  background: #f7f8fa;
  box-shadow: none;
  transform: none;
}
.product-visual { width: 40px; height: 40px; border-radius: 5px; }
.product-card-copy > span { font-size: 9px; }
.product-card-copy h3 { margin: 2px 0 3px; font-size: 13px; }
.product-card-copy p { color: #787b86; font-size: 9px; line-height: 1.55; }
.product-enter { padding: 5px 7px; border-radius: 4px; color: #50535e; background: #f0f3fa; font-size: 9px; }
.search-large { margin-top: 8px; }
.search-large::before { display: none; }
.search-large input {
  height: 40px;
  padding: 0 104px 0 12px;
  border-color: var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
}
.search-large button { top: 3px; right: 3px; height: 34px; }

.section-head { margin: 17px 2px 8px; }
.section-head h3 { font-size: 14px; }
.section-head p { margin: 3px 0 0; color: #787b86; font-size: 9px; }
.section-head button { color: var(--blue); font-size: 10px; font-weight: 650; }
.topic-list { overflow: hidden; border-radius: 6px; }
.topic-row {
  padding: 13px 15px 12px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  column-gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topic-row::before { top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 0; }
.topic-row:hover,
.topic-row.platform-bigqmt:hover,
.topic-row.platform-qmt:hover,
.topic-row.platform-ptrade:hover,
.topic-row.platform-general:hover { background: #f7f8fa; }
.topic-top { grid-column: 1 / -1; }
.topic-row h4 { grid-column: 1; margin: 8px 0 4px; font-size: 14px; }
.topic-summary { grid-column: 1; margin: 0; color: #787b86; font-size: 10px; }
.topic-service-state {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 0;
  margin: 7px 0 0;
  padding: 8px 9px;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fafafa;
}
.topic-service-state > span { width: 25px; height: 25px; border-radius: 50%; }
.topic-service-state b { font-size: 9px; }
.topic-service-state small { font-size: 8px; }
.topic-bottom { grid-column: 1 / -1; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f0f0f0; font-size: 9px; }
.tag { padding: 3px 6px; border-radius: 3px; font-size: 8px; }
.platform-tag { height: 21px; padding: 2px 6px 2px 3px; border-radius: 3px; }
.platform-tag i { width: 15px; height: 15px; border-radius: 3px; }
.reward { color: #b96b16; font-size: 10px; }
.guest-limit-tip { margin-top: 9px; padding: 12px 14px; border-radius: 6px; background: #fff; }

.wallet-card,
.guest-wallet {
  padding: 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.wallet-card::before {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 13px;
  background: var(--blue);
  content: "";
}
.wallet-label { color: #787b86; font-size: 9px; }
.wallet-balance { margin-top: 4px; color: #131722; font-size: 27px; }
.wallet-balance small { color: #787b86; }
.wallet-tip { color: #5d606b; font-size: 9px; }
.wallet-card .button { width: 100%; margin-top: 13px; color: #fff; background: var(--blue); }
.wallet-card .button:hover { color: #fff; background: var(--blue-dark); }
.guest-wallet-icon { color: var(--blue); background: var(--blue-soft); }
.guest-wallet-title { color: #131722; }
.guest-account-link { color: #787b86; }
.aside-list,
.certification-aside,
.consultation-aside { padding: 14px; border-radius: 6px; background: #fff; }
.aside-title { margin-bottom: 9px; font-size: 12px; }
.aside-list p,
.certification-aside > p,
.consultation-aside > p { color: #787b86; font-size: 9px; }
.certification-aside,
.consultation-aside { border-color: var(--line); }
.certification-aside-head > span,
.consultation-aside-head > span { border-radius: 5px; background: var(--blue); }
.consultation-aside-head small,
.certification-aside-head small { color: var(--blue); }
.consultation-aside .button { color: #131722; border-color: #cfd3dc; }

.platform-hero,
.platform-hero.ptrade {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.platform-hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--blue);
  content: "";
}
.platform-hero.ptrade::before { background: #ff9800; }
.platform-hero h2 { font-size: 21px; }
.platform-hero p { margin-top: 6px; font-size: 10px; line-height: 1.65; }
.qmt-sub-grid { margin-top: 8px; gap: 8px; }
.qmt-sub-card,
.big-qmt-card,
.qmt-data-card { padding: 14px; border-radius: 5px; border-color: var(--line); background: #fff; }
.qmt-sub-card b { font-size: 12px; }
.qmt-sub-card p { margin-top: 5px; font-size: 9px; }

.forum-head,
.form-card,
.draft-panel,
.profile-center,
.vip-reserve,
.trash-header,
.trash-list,
.consultation-client-card,
.report-queue,
.audit-panel,
.topic-detail-page {
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.forum-head { padding: 18px; }
.forum-head h2,
.form-card h2 { font-size: 17px; }
.forum-head p,
.form-card > p { margin: 5px 0 14px; font-size: 10px; }
.toolbar { gap: 6px; }
.toolbar input,
.toolbar select {
  height: 36px;
  border-color: #cfd3dc;
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
}
.forum-tabs {
  display: flex;
  gap: 2px;
  margin: 8px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.forum-tab,
.forum-tab.qmt,
.forum-tab.ptrade {
  min-height: 42px;
  flex: 1;
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.forum-tab:hover { border: 0; background: #f0f3fa; box-shadow: none; }
.forum-tab.active,
.forum-tab.qmt.active,
.forum-tab.ptrade.active,
.forum-tab.general.active {
  padding: 6px 9px;
  border: 0;
  background: #f0f3fa;
  box-shadow: inset 0 -2px 0 var(--blue);
}
.forum-tab-mark { width: 27px; height: 27px; border-radius: 4px; }
.forum-tab b { font-size: 10px; }
.forum-tab small { font-size: 8px; }

.form-card { padding: 21px; border-top: 2px solid var(--blue); }
.draft-panel { margin-bottom: 8px; padding: 15px; }
.draft-list { margin-top: 11px; gap: 6px; }
.draft-item { border-radius: 4px; }
.draft-count,
.server-status { border-radius: 4px; }
.ask-form-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.ask-quality { margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafafa; }
.form-grid { gap: 13px 11px; }
.field label { margin-bottom: 6px; color: #434651; font-size: 10px; font-weight: 650; }
.field input,
.field select,
.field textarea,
.form-input {
  border: 1px solid #cfd3dc;
  border-radius: 4px;
  color: #131722;
  background: #fff;
}
.field input,
.field select,
.form-input { min-height: 38px; }
.field textarea { min-height: 108px; line-height: 1.65; }
.toolbar input:focus,
.toolbar select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(41, 98, 255, .12);
}
.code-toggle { border-radius: 5px; background: #fafafa; }
.code-toggle:hover,
.code-toggle.active { border-color: var(--blue); background: #f5f7ff; }
.python-code {
  border: 1px solid #2a2e39;
  border-radius: 0 0 5px 5px;
  color: #d1d4dc;
  background: #131722;
}
.code-block-head { border-radius: 5px 5px 0 0; background: #2a2e39; }
.form-note { border-radius: 4px; }
.form-actions { padding-top: 14px; border-top: 1px solid var(--line); }

.profile-center { margin-bottom: 8px; padding: 16px; }
.profile-main > span { width: 48px; height: 48px; border-radius: 50%; }
.profile-main h2 { font-size: 17px; }
.profile-actions { gap: 6px; }
.mine-summary,
.mine-summary.refined { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 8px; }
.mine-summary.refined .summary-card { min-height: 72px; padding: 13px; border-radius: 5px; }
.summary-icon { width: 32px; height: 32px; border-radius: 4px; }
.mine-summary.refined .summary-card b { font-size: 19px; }
.vip-reserve { margin: 8px 0; padding: 15px; background: #fff; }
.transaction-list { border-radius: 6px; }
.transaction-row { padding: 11px 14px; }
.transaction-icon { border-radius: 4px; }

.service-overview { padding: 10px; gap: 6px; border-radius: 6px; }
.service-overview > div { padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.service-overview span { font-size: 8px; }
.service-overview b { font-size: 17px; }
.consultation-stat-grid { gap: 7px; }
.consultation-stat { border-radius: 5px; box-shadow: none; }
.consultation-stat:hover,
.consultation-stat.active { border-color: var(--blue); box-shadow: none; }
.consultation-toolbar { padding: 14px; }
.consultation-filter-tabs { gap: 3px; padding: 3px; border-radius: 5px; background: #f0f3fa; }
.consultation-filter-tabs button { border-radius: 3px; }
.consultation-row,
.account-row,
.application-row,
.trash-row { padding: 11px 14px; }
.consultation-pagination { border-top-color: var(--line); background: #fafafa; }
.consultation-pagination button,
.consultation-pagination b { border-radius: 4px; }
.governance-grid { gap: 8px; }
.report-queue,
.audit-panel { padding: 14px; }
.report-row,
.audit-row { border-top-color: var(--line); }

.topic-back {
  width: min(100%, 910px);
  margin: 0 auto 9px;
  display: block;
  color: #50535e;
  font-size: 10px;
  text-align: left;
}
.topic-detail-page { padding: 22px; }
.detail-title { margin-top: 11px; font-size: 23px; letter-spacing: -.35px; }
.detail-meta { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 9px; }
.claim-status,
.service-timeline,
.answer-card,
.answer-review,
.owner-danger-zone,
.question-actions { border-radius: 5px; box-shadow: none; }
.claim-status { border-color: var(--line); background: #fafafa; }
.service-timeline { padding: 10px; gap: 5px; border-color: var(--line); background: #fafafa; }
.service-timeline i { border-radius: 4px; }
.structured-detail .environment-grid { gap: 6px; }
.environment-grid > div { padding: 9px 10px; border-color: var(--line); border-radius: 4px; background: #fafafa; }
.detail-copy-block { border-top-color: var(--line); }
.detail-copy-block.error { border-radius: 4px; }
.answer-card { border-color: var(--line); background: #fafafa; }
.customer-message-item { border-bottom-color: var(--line); }
.customer-message-form textarea { border-radius: 4px; }

.modal { background: rgba(19, 23, 34, .58); backdrop-filter: blur(2px); }
.modal-card {
  border: 1px solid #d3d6dc;
  border-radius: 7px;
  box-shadow: 0 18px 50px rgba(19, 23, 34, .22);
}
.modal-close { color: #787b86; }
.notification-center { border-radius: 7px; }
.notification-list { border-top-color: var(--line); }
.notification-item { border-bottom-color: var(--line); }
.notification-item:hover { background: #f7f8fa; }
.notification-item.unread { background: #f5f7ff; }

.floating-doc {
  top: 62%;
  right: 12px;
  bottom: auto;
  width: 72px;
  min-height: 58px;
  padding: 7px;
  border: 1px solid #cfd3dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(19, 23, 34, .13);
  transform: translateY(-50%);
}
.floating-doc:hover { border-color: var(--blue); transform: translateY(-50%); }
.floating-doc span { width: 28px; height: 28px; border-radius: 5px; background: var(--blue); }
.floating-doc b { color: #131722; font-size: 9px; }

@media (max-width: 1120px) {
  .header-search { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 900px) {
  .header-inner,
  .page-heading,
  .workspace { width: min(100% - 20px, 1440px); }
  .header-inner { width: 100%; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .wallet-aside { position: static; }
  .welcome.welcome-premium { padding: 25px; }
  .topic-row { grid-template-columns: minmax(0, 1fr) 185px; }
}

@media (max-width: 700px) {
  .site-header { height: 96px; }
  .header-inner {
    padding: 0 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 44px;
    gap: 0 8px;
  }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-actions .points-chip { display: none; }
  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -10px;
    padding: 0 6px;
    border-top: 1px solid var(--line);
  }
  .nav-item { flex: 1 0 auto; padding: 0 13px; font-size: 11px; }
  .nav-item.active::after { right: 13px; left: 13px; }
  .risk-ticker { top: 96px; height: 27px; }
  .risk-track { font-size: 9px; }
  .page-heading { min-height: 62px; padding: 12px 0 9px; }
  .page-heading h1 { font-size: 19px; }
  .page-heading p { max-width: 240px; font-size: 9px; }
  .heading-ask { height: 32px; padding: 0 11px; font-size: 10px; }
  .workspace { gap: 8px; padding-bottom: 78px; }
  .welcome.welcome-premium { padding: 21px 18px; }
  .welcome.welcome-premium h2 { font-size: 27px; letter-spacing: -.65px; }
  .welcome.welcome-premium p { font-size: 11px; }
  .welcome.welcome-premium .welcome-actions { width: 100%; }
  .welcome.welcome-premium .welcome-actions .button { flex: 1; padding: 0 10px; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-trust span { padding: 5px 4px; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .software-hub { padding: 11px; }
  .software-hub .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card {
    min-height: 99px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 11px 7px;
    text-align: center;
  }
  .product-card-copy h3 { font-size: 11px; }
  .product-card-copy p,
  .product-enter { display: none; }
  .search-large input { padding-right: 82px; }
  .search-large .button { padding: 0 9px; }
  .topic-row { display: block; padding: 12px 12px 11px 15px; }
  .topic-row h4 { margin-top: 8px; font-size: 13px; white-space: normal; }
  .topic-summary { font-size: 9px; white-space: normal; }
  .topic-service-state { margin-top: 9px; }
  .topic-bottom { margin-top: 8px; }
  .forum-head,
  .form-card,
  .platform-hero,
  .topic-detail-page { padding: 15px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input { flex: 1 0 100%; }
  .toolbar select,
  .toolbar .button { flex: 1; }
  .forum-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-tab { min-width: 0; }
  .platform-hero { align-items: flex-start; }
  .platform-hero .button { flex: 0 0 auto; }
  .qmt-sub-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .ask-form-heading { align-items: stretch; }
  .mine-summary,
  .mine-summary.refined { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-center { align-items: flex-start; }
  .profile-actions { width: 100%; justify-content: flex-start; }
  .profile-actions .button { flex: 1; }
  .service-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-timeline { grid-template-columns: 1fr; }
  .floating-doc {
    top: 68%;
    right: 10px;
    bottom: auto;
    width: 44px;
    min-height: 44px;
    padding: 6px;
  }
  .floating-doc span { width: 28px; height: 28px; }
  .floating-doc b { display: none; }
}
