:root {
  --bg: #0d1118;
  --bg-2: #121925;
  --panel: rgba(18, 25, 37, .92);
  --panel-2: rgba(24, 33, 48, .94);
  --line: rgba(149, 173, 211, .18);
  --line-strong: rgba(128, 204, 255, .34);
  --text: #f4f7fb;
  --muted: rgba(228, 237, 247, .72);
  --faint: rgba(228, 237, 247, .5);
  --cyan: #52d5e8;
  --blue: #6aa8ff;
  --amber: #f2a34a;
  --green: #65d49a;
  --red: #ff6f73;
  --purple: #a98cff;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(135deg, #0c1119 0%, #101927 46%, #151612 100%);
  background-size: 36px 36px, 36px 36px, auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.workbench-shell {
  grid-template-columns: 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 21, .82);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 22px;
}

.brand-flower {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
  padding: 3px;
  border: 1px solid rgba(82, 213, 232, .24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(82,213,232,.08), rgba(242,163,74,.06));
  box-shadow: 0 0 24px rgba(82, 213, 232, .10);
}

.brand-flower-ring,
.brand-flower-petals,
.brand-flower-center {
  transform-origin: 18px 18px;
}

.brand-flower-ring {
  stroke: rgba(82, 213, 232, .56);
  opacity: .5;
  animation: brand-flower-spin 22s linear infinite;
}

.brand-flower-petals {
  fill: rgba(82, 213, 232, .62);
  animation: brand-flower-spin-reverse 16s linear infinite;
}

.brand-flower-petals ellipse:nth-child(2) {
  fill: rgba(242, 163, 74, .46);
}

.brand-flower-petals ellipse:nth-child(3),
.brand-flower-petals ellipse:nth-child(4) {
  fill: rgba(106, 168, 255, .38);
}

.brand-flower-center {
  fill: rgba(242, 163, 74, .78);
  animation: brand-flower-breathe 3.6s ease-in-out infinite;
}

.brand-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
}

@keyframes brand-flower-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes brand-flower-spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes brand-flower-breathe {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: .96; transform: scale(1.05); }
}

.nav {
  display: grid;
  gap: 7px;
}

.mobile-nav-toggle {
  display: none;
}

.nav-link {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(82, 213, 232, .32);
  background: rgba(82, 213, 232, .09);
  color: var(--text);
}

.nav-link.active {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.sidebar-note {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(242, 163, 74, .28);
  border-radius: 8px;
  background: rgba(242, 163, 74, .08);
  color: rgba(255, 231, 204, .86);
  font-size: 12px;
  line-height: 1.65;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--line-strong);
}

.btn.primary {
  border-color: rgba(82, 213, 232, .5);
  background: linear-gradient(135deg, rgba(82,213,232,.22), rgba(106,168,255,.18));
}

.btn.warn {
  border-color: rgba(242, 163, 74, .42);
  background: rgba(242, 163, 74, .12);
}

.btn.ghost {
  background: transparent;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab:last-child {
  border-right: 0;
}

.auth-tab.active {
  background: rgba(82, 213, 232, .12);
  color: var(--text);
  font-weight: 800;
}

.auth-switch {
  display: flex;
  justify-content: flex-end;
}

.auth-switch .auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(82, 213, 232, .34);
  border-radius: 999px;
  background: rgba(82, 213, 232, .1);
  color: #c8f8ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-switch .auth-tab.active {
  display: none;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.layout-grid {
  display: grid;
  gap: 16px;
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.cols-aside {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.card,
.table-card,
.module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card,
.module {
  padding: 16px;
}

.growth-snapshot {
  margin-bottom: 16px;
}

.growth-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 14px;
}

.growth-summary-panel,
.growth-recent-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 21, .3);
}

.growth-balance-copy {
  margin-top: 10px;
}

.growth-balance-copy strong {
  color: var(--cyan);
  font-size: 22px;
}

.growth-milestone-list,
.growth-log-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.growth-milestone,
.growth-log {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(149, 173, 211, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}

.growth-milestone div,
.growth-log div {
  display: grid;
  gap: 3px;
}

.growth-milestone small,
.growth-log small,
.growth-log-empty {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

.growth-milestone-icon {
  color: var(--faint);
  font-size: 19px;
  text-align: center;
}

.growth-milestone.completed .growth-milestone-icon {
  color: var(--green);
}

.growth-milestone.in_progress .growth-milestone-icon {
  color: var(--cyan);
}

.growth-milestone.locked {
  opacity: .72;
}

.growth-milestone-reward,
.growth-log em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.growth-log {
  grid-template-columns: minmax(0, 1fr) auto;
}

.growth-log em {
  color: var(--green);
}

.growth-log-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

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

.card-title {
  display: grid;
  gap: 4px;
}

.card-title small {
  color: var(--faint);
  font-size: 12px;
}

.metric {
  display: grid;
  gap: 9px;
}

.metric-value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.account-value {
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.workbench-topbar {
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(149, 173, 211, .12);
}

.workbench-brand {
  min-width: 240px;
  padding: 0;
}

.workbench-account-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 620px;
}

.workbench-account-strip div,
.workbench-chip {
  min-width: 104px;
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(149, 173, 211, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.workbench-chip:hover,
.workbench-chip:focus-visible {
  border-color: rgba(82, 213, 232, .52);
  background: rgba(82, 213, 232, .08);
  outline: none;
}

.workbench-account-strip span {
  color: var(--faint);
  font-size: 11px;
}

.workbench-account-strip strong {
  max-width: 168px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-detail-modal {
  width: min(620px, 100%);
}

.workbench-detail-section {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.credit-detail-list {
  display: grid;
  gap: 10px;
}

.credit-detail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.credit-detail-item > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.credit-detail-item strong {
  color: var(--text);
}

.credit-detail-item span,
.credit-detail-item small {
  color: var(--muted);
  line-height: 1.5;
}

.credit-detail-item em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.credit-detail-item.is-expense em {
  color: #ff9b9b;
}

.qr-detail-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.qr-box {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-box img,
.qr-box canvas {
  width: 168px;
  height: 168px;
}

.invite-detail-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.invite-code-display {
  display: grid;
  gap: 6px;
}

.invite-code-display span,
.invite-url-field span {
  color: var(--faint);
  font-size: 12px;
}

.invite-code-display strong {
  color: #ffe0ae;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  word-break: break-word;
}

.invite-url-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 163, 74, .24);
  border-radius: 8px;
  background: rgba(242, 163, 74, .07);
}

.invite-url-field code {
  min-width: 0;
  color: #ffe0ae;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.invite-actions {
  justify-content: flex-start;
}

.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.workbench-hero > div,
.workbench-user-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(82, 213, 232, .12), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.workbench-hero > div {
  min-height: 178px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.workbench-hero h2 {
  font-size: 30px;
}

.workbench-user-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.workbench-user-card span,
.workbench-user-card small {
  color: var(--faint);
  font-size: 12px;
}

.workbench-user-card strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 24px;
}

.workbench-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workbench-entry {
  min-height: 172px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 25, 37, .88);
  box-shadow: var(--shadow);
}

.workbench-entry:hover {
  border-color: rgba(82, 213, 232, .38);
  background: rgba(21, 31, 45, .94);
}

.workbench-entry > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 213, 232, .22);
  border-radius: 8px;
  background: rgba(82, 213, 232, .09);
  color: var(--cyan);
  font-weight: 900;
}

.workbench-entry h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.workbench-entry p {
  max-width: 520px;
  font-size: 14px;
}

.workbench-entry em {
  grid-column: 2;
  justify-self: start;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(242, 163, 74, .34);
  border-radius: 999px;
  color: #ffe0ae;
  background: rgba(242, 163, 74, .1);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.workbench-entry.primary-entry {
  border-color: rgba(82, 213, 232, .34);
  background:
    radial-gradient(circle at top right, rgba(82, 213, 232, .14), transparent 38%),
    rgba(18, 25, 37, .94);
}

.workbench-entry.primary-entry em {
  border-color: rgba(82, 213, 232, .36);
  color: #c8f8ff;
  background: rgba(82, 213, 232, .09);
}

.workbench-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 14px;
  margin-top: 14px;
}

.workbench-panel {
  display: grid;
  gap: 14px;
}

.workbench-checklist,
.workbench-benefits {
  display: grid;
  gap: 10px;
}

.workbench-checklist span,
.workbench-benefits span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(149, 173, 211, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
}

.workbench-checklist span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(82, 213, 232, .36);
}

.workbench-benefits strong {
  max-width: 220px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-module-grid {
  margin-top: 14px;
}

.feature-locked {
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: none;
}

.feature-locked .status {
  justify-self: start;
}

.metric.cyan .metric-value,
.text-cyan {
  color: var(--cyan);
}

.metric.blue .metric-value,
.text-blue {
  color: var(--blue);
}

.metric.amber .metric-value,
.text-amber {
  color: var(--amber);
}

.metric.green .metric-value,
.text-green {
  color: var(--green);
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.status,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.status.done {
  border-color: rgba(101, 212, 154, .36);
  color: #b6ffd3;
  background: rgba(101, 212, 154, .09);
}

.status.pending {
  border-color: rgba(242, 163, 74, .34);
  color: #ffe0ae;
  background: rgba(242, 163, 74, .1);
}

.status.risk {
  border-color: rgba(255, 111, 115, .36);
  color: #ffc6c8;
  background: rgba(255, 111, 115, .09);
}

.status.info {
  border-color: rgba(82, 213, 232, .36);
  color: #c8f8ff;
  background: rgba(82, 213, 232, .09);
}

.table-card {
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.table-head {
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.table-row {
  border-bottom: 1px solid rgba(149, 173, 211, .1);
  background: rgba(8, 13, 21, .28);
  color: var(--muted);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row:hover {
  background: rgba(255, 255, 255, .035);
}

button.table-row {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  appearance: none;
  background: rgba(8, 13, 21, .28);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.table-row strong {
  color: var(--text);
}

.recent-table .table-head,
.recent-table .table-row {
  grid-template-columns: 1.25fr 1.1fr 1fr .8fr 72px;
}

.customer-table .table-head,
.customer-table .table-row {
  grid-template-columns: 1fr 1.35fr .95fr .85fr .78fr .72fr .85fr 92px;
}

.customer-start-button {
  min-height: 32px;
  padding: 6px 9px;
  white-space: nowrap;
}

.import-file-actions .field {
  max-width: 520px;
}

.finger-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finger-confirm-row {
  display: grid;
  grid-template-columns: 42px minmax(86px, 1fr) minmax(86px, 1fr);
  align-items: center;
  gap: 8px;
}

.import-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  line-height: 1.6;
}

.review-table .table-head,
.review-table .table-row {
  grid-template-columns: .85fr 1fr .75fr .85fr 74px;
}

.searchbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 142px 142px;
  gap: 10px;
  margin-bottom: 16px;
}

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  outline: none;
}

.field,
.select {
  height: 40px;
  padding: 0 12px;
}

.textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.field::placeholder,
.textarea::placeholder {
  color: rgba(228, 237, 247, .45);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.source-item {
  min-height: 88px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.source-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.source-item strong {
  color: var(--cyan);
  font-size: 28px;
  line-height: 1;
}

.credit-card {
  border-color: rgba(82, 213, 232, .28);
  background:
    radial-gradient(circle at top right, rgba(82, 213, 232, .14), transparent 34%),
    linear-gradient(135deg, rgba(18, 25, 37, .96), rgba(20, 29, 44, .92));
}

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

.credit-overview div {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(149, 173, 211, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.credit-overview span,
.invite-link-box span {
  color: var(--faint);
  font-size: 12px;
}

.credit-overview strong {
  color: var(--cyan);
  font-size: 26px;
  line-height: 1;
}

.invite-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(242, 163, 74, .24);
  border-radius: 8px;
  background: rgba(242, 163, 74, .07);
}

.invite-link-box code {
  color: #ffe0ae;
  font-weight: 800;
}

.reward-steps {
  display: grid;
  gap: 10px;
}

.reward-steps div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.reward-steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(82, 213, 232, .1);
  color: var(--cyan);
  font-weight: 900;
}

.reward-steps strong {
  color: var(--text);
  font-size: 13px;
}

.reward-steps em {
  color: var(--amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.invite-rule-card.compact .reward-steps {
  gap: 8px;
}

.invite-rule-card.compact .reward-steps div {
  min-height: 52px;
  padding: 9px 10px;
}

.invite-rule-card.compact .footer-note {
  margin-top: 10px;
}

.quick-link {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.quick-link:hover {
  border-color: var(--line-strong);
  background: rgba(82, 213, 232, .06);
}

.quick-link span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(82, 213, 232, .1);
  color: var(--cyan);
}

.announcement {
  display: grid;
  gap: 12px;
}

.notice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.rules-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.rules-list li::marker {
  color: var(--cyan);
  font-weight: 900;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 0;
  align-items: start;
  justify-content: center;
  padding: 18px 0 44px;
}

.register-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(82, 213, 232, .12), transparent 34%),
    var(--panel);
}

.register-card h1 {
  max-width: 520px;
  font-size: 38px;
  line-height: 1.12;
}

.register-form {
  margin-top: 18px;
}

.register-section {
  padding: 14px;
  border: 1px solid rgba(149, 173, 211, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.register-section strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.register-section p,
.register-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.register-guide {
  position: sticky;
  top: 24px;
  align-self: start;
}

.register-guide h2 {
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.25;
}

.register-guide-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.register-guide-list div {
  padding: 14px;
  border: 1px solid rgba(149, 173, 211, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.register-guide-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.session-grid {
  display: grid;
  grid-template-columns: minmax(290px, .86fr) minmax(370px, 1.04fr) minmax(390px, 1.14fr);
  gap: 14px;
  align-items: start;
}

.session-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sticky-column {
  position: sticky;
  top: 20px;
}

.data-list {
  display: grid;
  gap: 9px;
}

.data-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.data-item strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.finger-summary {
  display: grid;
  gap: 6px;
}

.finger-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
}

.finger-row h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-align: center;
  word-break: keep-all;
}

.finger-row h3 span {
  display: block;
  white-space: nowrap;
}

.finger-row:nth-child(1) h3 {
  color: #ffb8b8;
  background: rgba(255, 111, 115, .15);
  border: 1px solid rgba(255, 111, 115, .22);
}

.finger-row:nth-child(2) h3 {
  color: #b0d4ff;
  background: rgba(106, 168, 255, .15);
  border: 1px solid rgba(106, 168, 255, .22);
}

.finger-row:nth-child(3) h3 {
  color: #a8f5ca;
  background: rgba(101, 212, 154, .15);
  border: 1px solid rgba(101, 212, 154, .22);
}

.finger-row:nth-child(4) h3 {
  color: #b8f4ff;
  background: rgba(82, 213, 232, .15);
  border: 1px solid rgba(82, 213, 232, .22);
}

.finger-row:nth-child(5) h3 {
  color: #ffe0a8;
  background: rgba(242, 163, 74, .15);
  border: 1px solid rgba(242, 163, 74, .22);
}

.finger-pair {
  display: contents;
}

.finger-hand {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 6px;
  border: 1px solid rgba(149, 173, 211, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .028);
  overflow: hidden;
  transition: border-color .15s;
}

.finger-hand:hover {
  border-color: rgba(149, 173, 211, .3);
}

.finger-hand::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, 0%);
  background: linear-gradient(90deg, rgba(82, 213, 232, .18), rgba(242, 163, 74, .2));
  opacity: .85;
}

.finger-hand::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(calc(var(--value, 50%) / 100%));
  transform-origin: left center;
}

.finger-hand span {
  position: relative;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.finger-hand strong {
  position: relative;
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  z-index: 1;
}

.finger-hand strong i {
  display: block;
  font-style: normal;
  white-space: nowrap;
}

.finger-hand em {
  position: relative;
  color: var(--amber);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  z-index: 1;
  white-space: nowrap;
}

.bar-item {
  display: grid;
  grid-template-columns: 70px 1fr 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.progress-line {
  height: 9px;
  margin: 10px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--amber));
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-card {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.step-card:hover,
.step-card.active {
  border-color: var(--line-strong);
  background: rgba(82, 213, 232, .08);
}

.step-card.active {
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.step-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(82, 213, 232, .12);
  color: var(--cyan);
  font-weight: 900;
}

.step-card small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  line-height: 1.55;
}

.guide-list,
.speech-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li,
.speech-list li {
  padding: 10px 11px;
  border: 1px solid rgba(149, 173, 211, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
  color: var(--muted);
  line-height: 1.7;
}

.ai-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.ai-section h3 {
  color: var(--text);
}

.ai-section.why {
  border-color: rgba(82, 213, 232, .34);
  background: rgba(82, 213, 232, .07);
}

.ai-section.say {
  border-color: rgba(101, 212, 154, .28);
}

.ai-section.no {
  border-color: rgba(255, 111, 115, .3);
}

.section-copy {
  color: var(--muted);
  line-height: 1.75;
}

.session-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-step {
  position: relative;
  min-height: 144px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.pipeline-step:not(:last-child)::after {
  content: "->";
  position: absolute;
  top: 50%;
  right: -17px;
  color: var(--cyan);
  font-weight: 900;
}

.pipeline-step b {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.pipeline-step p {
  font-size: 13px;
}

.score-grid {
  display: grid;
  gap: 10px;
}

.score-item {
  display: grid;
  grid-template-columns: 110px 1fr 46px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.active {
  border-color: var(--line-strong);
  background: rgba(82, 213, 232, .1);
  color: var(--text);
}

.review-demo-card {
  display: none;
}

.review-demo-card.active {
  display: block;
}

.boundary {
  border-color: rgba(242, 163, 74, .34);
  background: linear-gradient(135deg, rgba(242,163,74,.1), rgba(82,213,232,.06));
}

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

.mini-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.mini-card strong {
  display: block;
  margin-bottom: 5px;
}

.footer-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
}

.public-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.public-hero,
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  align-items: stretch;
}

.public-hero {
  min-height: 390px;
  align-items: center;
}

.public-hero h1,
.entry-card h1,
.auth-card h1 {
  font-size: 44px;
  line-height: 1.12;
}

.hero-copy {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.public-hero-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 18% 15%, rgba(82, 213, 232, .16), transparent 36%),
    radial-gradient(circle at 88% 76%, rgba(242, 163, 74, .14), transparent 34%),
    var(--panel);
}

.url-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.url-stack span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.value-card {
  min-height: 158px;
}

.value-card.accent {
  border-color: rgba(242, 163, 74, .36);
  background: linear-gradient(135deg, rgba(242, 163, 74, .11), rgba(82, 213, 232, .05));
}

body[data-page="advisor"] .public-shell {
  padding-top: 18px;
  padding-bottom: 44px;
}

body[data-page="advisor"] .public-nav {
  margin-bottom: 22px;
}

body[data-page="advisor"] .public-hero {
  min-height: 330px;
  align-items: center;
}

body[data-page="advisor"] .public-hero h1 {
  font-size: 40px;
}

body[data-page="advisor"] .hero-copy {
  margin: 10px 0 8px;
  font-size: 20px;
}

body[data-page="advisor"] .hero-actions {
  margin-top: 14px;
}

body[data-page="advisor"] .public-hero-panel {
  align-content: center;
  gap: 14px;
}

body[data-page="advisor"] .value-grid {
  gap: 12px;
  margin-top: 14px;
}

body[data-page="advisor"] .value-card {
  min-height: 142px;
  padding: 14px;
}

.auth-shell {
  width: min(1120px, calc(100% - 48px));
}

.auth-layout {
  display: grid;
  justify-items: center;
  padding: 44px 0 20px;
}

.login-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 48px;
  padding: 28px 0 46px;
}

.login-story {
  max-width: 760px;
}

.login-story h1 {
  max-width: 560px;
  font-size: 48px;
  line-height: 1.08;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 32px;
}

.login-feature-grid article {
  min-height: 128px;
  padding: 13px;
  border: 1px solid rgba(149, 173, 211, .14);
  border-radius: 8px;
  background: rgba(18, 25, 37, .56);
}

.login-feature-grid strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.login-feature-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(228, 237, 247, .7);
  font-size: 13px;
  line-height: 1.55;
}

.auth-grid {
  grid-template-columns: minmax(420px, 1fr) minmax(330px, .78fr);
}

.auth-card {
  grid-row: span 2;
}

.auth-card-centered {
  width: min(100%, 440px);
}

.login-card {
  width: min(100%, 370px);
  justify-self: end;
  padding: 18px;
}

.login-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.login-card-head h2 {
  font-size: 24px;
  line-height: 1.22;
}

.auth-pane {
  margin-top: 18px;
}

.auth-stack {
  display: grid;
  margin-top: 18px;
  padding: 12px 12px 0 0;
}

.auth-stack .auth-pane {
  grid-area: 1 / 1;
  margin-top: 0;
  min-height: 310px;
  padding: 16px;
  border: 1px solid rgba(149, 173, 211, .2);
  border-radius: 8px;
  background: rgba(12, 17, 25, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease, border-color .2s ease;
}

.auth-stack .auth-pane.is-front {
  z-index: 2;
  opacity: 1;
  border-color: rgba(82, 213, 232, .28);
  transform: translate(0, 0) scale(1);
}

.auth-stack .auth-pane.is-back {
  z-index: 1;
  opacity: .5;
  pointer-events: none;
  transform: translate(12px, -12px) scale(.97);
  filter: saturate(.7);
}

.auth-pane-title {
  display: grid;
  gap: 4px;
  padding-bottom: 2px;
}

.auth-pane-title strong {
  color: var(--text);
  font-size: 16px;
}

.auth-pane-title span {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.auth-helper-text {
  width: 100%;
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.advisor-entry-layout {
  min-height: calc(100vh - 110px);
  align-content: center;
}

.advisor-entry-card {
  text-align: left;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid label,
.identity-group legend {
  color: var(--muted);
  font-size: 13px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 8px;
}

.wechat-mock,
.identity-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}

.wechat-mock {
  min-height: 42px;
  cursor: pointer;
}

.identity-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 12px;
}

.identity-group legend {
  padding: 0 4px;
}

.check-line {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.check-line a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.check-line a:hover {
  text-decoration: underline;
}

.legal-shell {
  width: min(900px, calc(100% - 48px));
}

.legal-card {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(82, 213, 232, .12), transparent 34%),
    var(--panel);
}

.legal-card h1 {
  font-size: 40px;
  line-height: 1.12;
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.85;
}

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

.legal-card section {
  padding-top: 2px;
}

.legal-card a {
  color: var(--cyan);
  font-weight: 800;
}

.legal-updated,
.legal-example {
  padding: 12px 14px;
  border: 1px solid rgba(82, 213, 232, .18);
  border-radius: 8px;
  background: rgba(82, 213, 232, .06);
}

.auth-success {
  display: grid;
  gap: 14px;
  border-color: rgba(101, 212, 154, .28);
}

.auth-success:not(.show) {
  opacity: .72;
}

.safety-card {
  align-self: start;
}

.entry-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
}

.entry-card {
  width: min(860px, 100%);
  padding: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(82, 213, 232, .15), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(242, 163, 74, .13), transparent 36%),
    var(--panel);
}

.split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.split-actions .mini-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.center-entry {
  border-color: rgba(82, 213, 232, .28);
}

.modal-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 11, .68);
  backdrop-filter: blur(14px);
  z-index: 20;
}

.modal-layer.open {
  display: grid;
}

.modal-card {
  width: min(480px, 100%);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(82, 213, 232, .14), transparent 34%),
    var(--panel-2);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .45);
}

.credit-insufficient {
  display: none;
}

.modal-card.is-insufficient .credit-confirm {
  display: none;
}

.modal-card.is-insufficient .credit-insufficient {
  display: block;
}

@media (max-width: 1320px) {
  .session-grid {
    grid-template-columns: 1fr;
  }

  .sticky-column {
    position: static;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 50;
    top: 0;
    height: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar > .brand {
    min-height: 44px;
    padding: 0 58px 0 0;
  }

  .sidebar > .brand .brand-flower {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .sidebar > .brand .brand-subtitle {
    display: none;
  }

  .mobile-nav-toggle {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
    background: rgba(18, 25, 37, .96);
    cursor: pointer;
  }

  .mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }

  .mobile-nav-icon {
    display: grid;
    width: 18px;
    gap: 4px;
  }

  .mobile-nav-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .16s ease, opacity .16s ease;
  }

  .sidebar.mobile-nav-ready:not(.is-open) .nav,
  .sidebar.mobile-nav-ready:not(.is-open) .sidebar-note {
    display: none;
  }

  .sidebar.mobile-nav-ready.is-open .nav {
    display: grid;
    margin-top: 10px;
  }

  .sidebar.mobile-nav-ready.is-open .sidebar-note {
    display: block;
    margin-top: 12px;
  }

  .sidebar.is-open .mobile-nav-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .sidebar.is-open .mobile-nav-icon span:nth-child(2) {
    opacity: 0;
  }

  .sidebar.is-open .mobile-nav-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .cols-3,
  .cols-2,
  .cols-aside,
  .growth-snapshot-grid,
  .quick-grid,
  .source-grid,
  .credit-overview,
  .workbench-hero,
  .workbench-entry-grid,
  .workbench-bottom-grid,
  .public-hero,
  .auth-grid,
  .register-layout,
  .login-showcase,
  .value-grid,
  .split-actions,
  .timeline,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    gap: 24px;
    min-height: auto;
    padding-top: 18px;
  }

  .login-card {
    justify-self: stretch;
    width: 100%;
    order: -1;
  }

  .login-story h1 {
    font-size: 34px;
  }

  .login-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-guide {
    position: static;
  }

  .register-card h1 {
    font-size: 32px;
  }

  .auth-stack .auth-pane {
    min-height: 300px;
  }

  .pipeline-step::after {
    display: none;
  }

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

  .finger-confirm-grid {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr !important;
  }

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

  .workbench-shell .main {
    padding: 14px;
  }

  .workbench-account-strip {
    width: 100%;
    justify-content: stretch;
  }

  .workbench-account-strip div,
  .workbench-chip {
    flex: 1 1 140px;
  }

  .qr-detail-grid {
    grid-template-columns: 1fr;
  }

  .workbench-entry {
    min-height: 150px;
  }
}

/* ============================================================
   V4.0 新增样式 — 指导师工作台升级
   ============================================================ */

.stage-tag {
  display: inline-flex; align-items: center; min-height: 26px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px;
  font-weight: 800; white-space: nowrap;
}
.stage-tag.initial { border:1px solid rgba(82,213,232,.36); color:#c8f8ff; background:rgba(82,213,232,.09); }
.stage-tag.early { border:1px solid rgba(106,168,255,.36); color:#c0d8ff; background:rgba(106,168,255,.09); }
.stage-tag.deep { border:1px solid rgba(169,140,255,.36); color:#d8ccff; background:rgba(169,140,255,.09); }
.stage-tag.consolidation { border:1px solid rgba(101,212,154,.36); color:#b6ffd3; background:rgba(101,212,154,.09); }

.case-candidate-tag {
  display: inline-flex; align-items: center; min-height: 22px;
  padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800;
  border: 1px solid rgba(242,163,74,.4); color: #ffe0ae; background: rgba(242,163,74,.08);
}

.coaching-output { display: grid; gap: 14px; }
.coaching-section { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.coaching-section h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.coaching-section h3 span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; font-size: 13px; font-weight: 900; }
.coaching-understanding { border-color: rgba(82,213,232,.28); background: rgba(82,213,232,.05); }
.coaching-understanding h3 span { background: rgba(82,213,232,.16); color: var(--cyan); }
.coaching-direction h3 span { background: rgba(106,168,255,.16); color: var(--blue); }
.coaching-script { border-color: rgba(101,212,154,.22); }
.coaching-script h3 span { background: rgba(101,212,154,.16); color: var(--green); }
.coaching-risk { border-color: rgba(242,163,74,.24); }
.coaching-risk h3 span { background: rgba(242,163,74,.16); color: var(--amber); }

.timeline-list { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.028); }
.timeline-meta { display: grid; gap: 4px; align-content: start; }
.timeline-meta time { color: var(--cyan); font-size: 13px; font-weight: 800; }
.timeline-meta .source { color: var(--faint); font-size: 11px; }
.timeline-body { display: grid; gap: 8px; }
.timeline-body p { color: var(--muted); line-height: 1.75; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.direction-tag {
  display: inline-flex; align-items: center; min-height: 22px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.direction-tag.improving { border:1px solid rgba(101,212,154,.36); color:#b6ffd3; }
.direction-tag.declining { border:1px solid rgba(255,111,115,.36); color:#ffc6c8; }
.direction-tag.stable { border:1px solid rgba(149,173,211,.36); color:var(--muted); }
.direction-tag.new_emergence { border:1px solid rgba(242,163,74,.36); color:#ffe0ae; }
.direction-tag.resolved { border:1px solid rgba(101,212,154,.36); color:#b6ffd3; }

.coaching-input-area { display: grid; gap: 12px; }
.coaching-input-area textarea { min-height: 110px; }

.archive-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.archive-tab { min-height: 36px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; font-size: 14px; }
.archive-tab:hover { border-color: var(--line-strong); }
.archive-tab.active { border-color: var(--line-strong); background: rgba(82,213,232,.1); color: var(--text); }
.archive-tab em { margin-left: 6px; color: var(--cyan); font-style: normal; font-weight: 800; }

.growth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.growth-form-grid .full-width { grid-column: 1 / -1; }

.clue-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.028); display: grid; gap: 10px; cursor: pointer; }
.clue-card:hover { border-color: var(--line-strong); background: rgba(82,213,232,.05); }
.clue-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.clue-card-header strong { color: var(--text); font-size: 14px; }
.clue-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.clue-card .clue-action { color: var(--cyan); font-size: 12px; font-weight: 800; justify-self: end; }

.case-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999; display: grid; place-items: center; padding: 16px; }
.case-modal { width: 560px; max-width: 100%; max-height: 85vh; overflow-y: auto; padding: 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); display: grid; gap: 16px; }
.case-modal h2 { font-size: 16px; }
.case-modal .form-row { display: grid; gap: 6px; }
.case-modal .form-row label { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.case-modal textarea { min-height: 100px; }
.case-modal .btn-row { display: flex; gap: 8px; justify-content: flex-end; }

.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.case-list { display: grid; gap: 10px; }
.case-card-item { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.028); display: grid; gap: 8px; }
.case-card-item:hover { border-color: var(--line-strong); }
.case-card-item .case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.case-card-item .case-title { color: var(--text); font-size: 14px; font-weight: 800; }
.case-card-item .case-summary { color: var(--muted); font-size: 13px; line-height: 1.7; }
.case-visibility-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.case-visibility-tag.private { border:1px solid rgba(149,173,211,.3); color:var(--muted); }
.case-visibility-tag.submitted { border:1px solid rgba(242,163,74,.3); color:#ffe0ae; }
.case-visibility-tag.shared { border:1px solid rgba(101,212,154,.3); color:#b6ffd3; }
.case-visibility-tag.returned { border:1px solid rgba(255,111,115,.3); color:#ffc6c8; }

.insight-bar { padding: 10px 14px; border-radius: 8px; font-size: 12px; display: grid; gap: 4px; }
.insight-bar.warn { border: 1px solid rgba(242,163,74,.3); background: rgba(242,163,74,.06); color: #ffe0ae; }
.insight-bar.info { border: 1px solid rgba(82,213,232,.3); background: rgba(82,213,232,.06); color: #c8f8ff; }
.insight-bar.good { border: 1px solid rgba(101,212,154,.3); background: rgba(101,212,154,.06); color: #b6ffd3; }

.customer-table.v4-table .table-head,
.customer-table.v4-table .table-row { grid-template-columns: minmax(120px,1.15fr) repeat(7,minmax(84px,.8fr)) minmax(100px,.9fr) minmax(220px,1.4fr); }
.v4-row-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.v4-empty-state { padding: 22px; color: var(--muted); text-align: center; }
.v4-risk-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }

@media (max-width: 980px) {
  .growth-form-grid { grid-template-columns: 1fr; }
  .growth-form-grid .full-width { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; }
  .case-modal { padding: 18px; }
}
