:root {
  color-scheme: light;
  --ink: #16231d;
  --muted: #65746e;
  --line: #d8e6df;
  --paper: #f8fbf6;
  --panel: #ffffff;
  --panel-soft: #fbfdf9;
  --teal: #119799;
  --teal-dark: #086b6d;
  --mint: #dcf3ea;
  --mint-soft: #f1faf5;
  --amber: #f1c94f;
  --amber-soft: #fff7d7;
  --red: #be4b49;
  --shadow: 0 16px 38px rgba(32, 58, 45, 0.07);
  --soft-glow: 0 18px 60px rgba(17, 151, 153, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(17, 151, 153, 0.09), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(241, 201, 79, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfdf9 0%, #f8fbf6 46%, #fffaf0 100%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  cursor: pointer;
}

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

.app-shell.logged-out {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.logged-out .sidebar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 253, 249, 0.82));
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.brand small,
.metric span,
.eyebrow,
label,
.form-message,
.badge {
  color: var(--muted);
}

.brand strong,
.brand small {
  display: block;
}

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

.nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 12px 14px;
  text-decoration: none;
}

.nav a.active,
.nav a:hover {
  background: linear-gradient(135deg, var(--mint), rgba(255, 247, 215, 0.72));
  color: var(--teal-dark);
}

.ghost {
  margin-top: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.logout-button {
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  width: fit-content;
}

.logout-button:hover {
  background: var(--mint-soft);
  color: var(--teal-dark);
}

.workspace {
  padding: 28px;
}

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

.topbar-status {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.site-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1;
  text-transform: lowercase;
}

h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

h3 {
  margin: 0;
}

.status-pill,
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 12px;
  white-space: nowrap;
}

.status-pill.ok {
  background: var(--mint);
  border-color: rgba(17, 151, 153, 0.28);
  color: var(--teal-dark);
}

.status-pill.warn {
  background: var(--amber-soft);
  border-color: rgba(241, 201, 79, 0.45);
  color: #8a6713;
}

.status-pill.bad {
  background: rgba(190, 75, 73, 0.1);
  border-color: rgba(190, 75, 73, 0.28);
  color: var(--red);
}

.auth-panel {
  min-height: 66vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 32px;
}

.auth-copy h2 {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.08;
}

.auth-copy p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.auth-form,
.panel,
.metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 249, 0.92));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--mint-soft);
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px;
  color: var(--muted);
}

.segmented button.selected {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(24, 48, 37, 0.08);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 680;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.13);
}

.checkbox-line {
  align-items: center;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  padding: 12px 13px;
}

.checkbox-line input {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

.primary,
.secondary,
.danger {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 780;
}

.primary {
  border: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  box-shadow: 0 10px 22px rgba(17, 151, 153, 0.16);
}

.primary:hover {
  background: var(--teal-dark);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 720;
  justify-self: center;
  padding: 0;
}

.text-button:hover {
  color: var(--teal);
}

.secondary {
  border: 1px solid var(--teal);
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal-dark);
}

.secondary.compact {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding: 8px 11px;
}

.home-action-link {
  text-decoration: none;
}

.danger {
  border: 0;
  background: var(--red);
  color: white;
}

.form-message {
  min-height: 20px;
  margin-bottom: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

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

.overview-home {
  background:
    linear-gradient(135deg, rgba(232, 248, 241, 0.82), rgba(255, 251, 232, 0.58)),
    var(--panel);
}

.overview-home .panel-heading {
  margin-bottom: 14px;
}

.overview-home .panel-heading p:last-child {
  color: var(--muted);
  line-height: 1.55;
  margin: 7px 0 0;
}

.metric {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.home-insight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  margin-top: 14px;
}

.home-insight-card,
.home-leaderboard-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.home-section-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home-section-head h3 {
  font-size: 1rem;
}

.home-recommendation-card {
  display: grid;
  gap: 10px;
}

.home-empty-copy {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.home-recommendation-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.home-recommendation-head strong,
.home-recommendation-head span {
  display: block;
}

.home-recommendation-head strong {
  font-size: 1.08rem;
}

.home-recommendation-head span,
.home-recommendation-card p,
.home-recommendation-card small {
  color: var(--muted);
}

.home-recommendation-head em {
  background: var(--mint);
  border: 1px solid rgba(17, 151, 153, 0.18);
  border-radius: 999px;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 860;
  padding: 8px 12px;
  white-space: nowrap;
}

.home-recommendation-card p,
.home-recommendation-card small {
  line-height: 1.55;
  margin: 0;
}

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

.assistant-prompt-grid button {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 760;
  min-height: 42px;
  padding: 9px 10px;
}

.assistant-prompt-grid button.selected,
.assistant-prompt-grid button:hover {
  background: var(--mint);
  border-color: rgba(17, 151, 153, 0.28);
  color: var(--teal-dark);
}

.assistant-answer {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.assistant-answer p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.assistant-chat-form {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) max-content;
  margin-top: 10px;
}

.assistant-chat-form input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  outline: none;
  padding: 0 12px;
}

.assistant-chat-form input:focus {
  border-color: rgba(17, 151, 153, 0.58);
  box-shadow: 0 0 0 3px rgba(17, 151, 153, 0.1);
}

.assistant-chat-log {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 250px;
  overflow: auto;
  padding-right: 2px;
}

.assistant-empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.assistant-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.assistant-message span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.assistant-message p {
  color: var(--ink);
  line-height: 1.58;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-message.user {
  background: rgba(255, 255, 255, 0.92);
}

.assistant-message.assistant {
  background: linear-gradient(135deg, var(--mint-soft), rgba(255, 247, 215, 0.52));
  border-color: rgba(17, 151, 153, 0.2);
}

.home-leaderboard-panel {
  margin-top: 14px;
}

.strategy-leaderboard {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.leaderboard-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(0, 1fr) minmax(140px, max-content) max-content;
  padding: 12px;
}

.leaderboard-row.active {
  border-color: rgba(17, 151, 153, 0.42);
  box-shadow: var(--soft-glow);
}

.leaderboard-rank {
  align-items: center;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 860;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.leaderboard-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-title-line strong {
  font-size: 1rem;
}

.leaderboard-title-line span {
  background: var(--mint);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 760;
  padding: 4px 8px;
}

.leaderboard-main p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 5px 0 8px;
}

.leaderboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.leaderboard-tags span {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  padding: 4px 7px;
}

.leaderboard-score {
  text-align: right;
}

.leaderboard-score span,
.leaderboard-score small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
}

.leaderboard-score strong {
  display: block;
  font-size: 1rem;
  margin: 3px 0;
}

.leaderboard-score strong.positive {
  color: var(--teal-dark);
}

.leaderboard-score strong.negative {
  color: var(--red);
}

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

.panel {
  padding: 18px;
}

.workbench-panel {
  background:
    linear-gradient(180deg, #fbfdf9, #ffffff),
    white;
  overflow: hidden;
  padding: 0;
}

.workbench-panel > .checkbox-line,
.workbench-panel > .action-row,
.workbench-panel > .form-message {
  margin-left: 18px;
  margin-right: 18px;
}

.workbench-panel > .form-message:last-child {
  margin-bottom: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.workbench-heading {
  background:
    linear-gradient(135deg, rgba(17, 151, 153, 0.08), rgba(241, 201, 79, 0.1));
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  margin-bottom: 0;
  padding: 20px 22px 14px;
}

.workbench-heading .eyebrow,
.workbench-heading p {
  color: var(--muted);
}

.workbench-heading h2 {
  font-size: 1.55rem;
}

.workbench-heading p:last-child {
  line-height: 1.55;
  margin: 8px 0 0;
}

.workbench-heading .badge {
  background: var(--amber-soft);
  border-color: rgba(226, 181, 31, 0.32);
  color: #8c6b00;
}

.workflow-strip {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 22px;
}

.workflow-step {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
}

.workflow-step span {
  align-items: center;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.workflow-step strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.workflow-step small {
  color: var(--muted);
  line-height: 1.35;
}

.workflow-step.active {
  border-color: rgba(15, 139, 141, 0.42);
  box-shadow: var(--soft-glow);
}

.stacked-form,
.risk-grid {
  display: grid;
  gap: 14px;
}

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

.green {
  background: var(--mint);
  color: var(--teal-dark);
  border-color: transparent;
}

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

.strategy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 14px;
  min-height: 240px;
}

.strategy-card .secondary,
.strategy-card .primary {
  width: 100%;
}

.strategy-note {
  color: var(--muted);
  line-height: 1.65;
}

.strategy-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) max-content;
  margin-top: 16px;
}

.calculator {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.advanced-settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 0;
}

.advanced-settings summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 780;
  list-style: none;
  padding: 12px 14px;
}

.advanced-settings summary::-webkit-details-marker {
  display: none;
}

.advanced-settings summary::after {
  content: "+";
  float: right;
}

.advanced-settings[open] summary::after {
  content: "-";
}

.advanced-settings .risk-grid {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.live-test-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
}

.compact-heading {
  margin-bottom: 0;
}

.toast-layer {
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  left: 0;
  padding: 24px;
  pointer-events: auto;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.toast-card {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 18px;
  width: min(420px, 100%);
}

.toast-layer.error .toast-card {
  border-left-color: var(--red);
}

.toast-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.toast-card strong,
.toast-card span {
  display: block;
}

.modal-layer {
  align-items: center;
  background: rgba(12, 20, 16, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 30;
}

.modal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  max-width: 480px;
  padding: 22px;
  width: min(100%, 480px);
}

.modal-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

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

.cooperation-modal-card {
  max-width: 520px;
  position: relative;
}

.contact-modal-close {
  align-items: center;
  background: #f4f8f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 8px;
}

.contact-item {
  align-items: center;
  background: linear-gradient(135deg, rgba(234, 249, 242, .86), rgba(255, 251, 231, .72));
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  padding: 14px;
}

.contact-item span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}

.contact-item strong {
  color: var(--ink);
  font-size: 1rem;
  word-break: break-all;
}

@media (max-width: 520px) {
  .contact-item {
    grid-template-columns: 1fr auto;
  }

  .contact-item span {
    grid-column: 1 / -1;
  }
}

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

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

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

.calc-metrics.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.calc-metrics div {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.calc-metrics span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.calc-metrics strong {
  display: block;
  font-size: 1rem;
}

.plan-table {
  border-collapse: collapse;
  font-size: 0.88rem;
  width: 100%;
}

.plan-table th,
.plan-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.plan-table th {
  color: var(--muted);
  font-size: 0.78rem;
}

.signal-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  margin: 18px;
  margin-bottom: 16px;
}

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

.field-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
  margin-bottom: 8px;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
  line-height: 1.45;
}

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

.mode-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 249, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 13px 14px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mode-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 151, 153, 0.12), var(--soft-glow);
}

.mode-card:hover {
  border-color: rgba(15, 139, 141, 0.45);
  transform: translateY(-1px);
}

.mode-card strong {
  font-size: 1rem;
}

.mode-card span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mode-card small {
  align-self: end;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 760;
  justify-self: start;
  padding: 5px 8px;
}

.auto-direction-note {
  align-items: center;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px 13px;
}

.auto-direction-note span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
}

.signal-confirm-line {
  margin-top: 6px;
}

.signal-action-row button {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
}

.signal-output {
  align-self: start;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.market-console-head {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(17, 151, 153, 0.08), rgba(241, 201, 79, 0.1));
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 15px 16px 12px;
}

.generated-console-head {
  border-radius: 8px 8px 0 0;
  margin-top: 14px;
}

.market-console-head .eyebrow {
  color: var(--muted);
}

.market-console-head h3 {
  font-size: 1rem;
}

.status-dot {
  align-items: center;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 780;
  gap: 6px;
  margin-top: 2px;
}

.status-dot::before {
  background: #2ee6a6;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(46, 230, 166, 0.12);
  content: "";
  height: 8px;
  width: 8px;
}

.signal-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
  padding: 12px 14px 0;
}

.recommendation-actions {
  margin-top: 10px;
  padding: 0 14px;
}

.recommendation-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 10px 14px 0;
  padding: 12px;
}

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

.recommendation-head h3 {
  font-size: 1rem;
  margin-top: 3px;
}

.recommendation-reason {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.recommendation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.recommendation-meta span {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 8px;
}

.recommendation-card small {
  color: var(--muted);
  line-height: 1.45;
}

.signal-action-message {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
}

.signal-action-message.error {
  background: #fff7f5;
  border-color: rgba(190, 75, 73, 0.32);
  color: var(--red);
}

.signal-action-message.success {
  background: var(--mint);
  border-color: rgba(15, 139, 141, 0.24);
  color: var(--teal-dark);
}

.strategy-data-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin: 12px 14px 14px;
  padding-top: 12px;
}

.running-strategy-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.running-strategy-card.clickable {
  cursor: pointer;
}

.running-strategy-card.clickable:hover,
.running-strategy-card.clickable:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
  outline: none;
}

.running-strategy-card.muted {
  background: var(--mint-soft);
}

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

.running-strategy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.running-strategy-meta span {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
  padding: 6px 9px;
}

.strategy-data-heading {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

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

.strategy-stat-grid div {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.strategy-stat-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 720;
  margin-bottom: 4px;
}

.strategy-stat-grid strong {
  display: block;
  font-size: 1rem;
}

.strategy-stat-grid strong.positive {
  color: var(--teal-dark);
}

.strategy-stat-grid strong.negative {
  color: var(--red);
}

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

.strategy-data-actions .secondary {
  min-height: 38px;
  width: auto;
}

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

.strategy-orders-wrap {
  display: grid;
  gap: 10px;
}

.strategy-orders-wrap.hidden {
  display: none;
}

.strategy-orders-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.strategy-orders-pagination span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.strategy-orders-pagination button {
  min-height: 34px;
  width: auto;
}

.strategy-data-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.strategy-data-row small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  margin-top: 3px;
}

.strategy-data-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

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

.balance-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

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

.balance-grid div,
.balance-list-item {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.balance-grid span,
.balance-list-item span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 720;
}

.balance-grid strong {
  display: block;
  font-size: 1.22rem;
  margin-top: 4px;
}

.balance-list {
  display: grid;
  gap: 8px;
}

.balance-list-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-row button {
  flex: 1 1 180px;
}

.compact-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.compact-actions button {
  flex: 0 0 auto;
  padding: 8px 10px;
}

.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border: 1px solid rgba(11,100,102,.16); background: rgba(255,255,255,.72); color: inherit; }
.admin-stat strong { font-size: 1.35rem; }
.admin-stat span { color: #66736d; font-size: .82rem; }
.admin-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 190px)); gap: 12px; margin-bottom: 14px; }
.admin-toolbar label { display: grid; gap: 6px; color: #66736d; font-size: .82rem; }
.admin-table-wrap { overflow-x: auto; border: 1px solid rgba(11,100,102,.12); border-radius: 14px; }
.admin-user-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.admin-user-table th, .admin-user-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(11,100,102,.1); }
.admin-user-table th { color: #66736d; font-size: .78rem; background: rgba(11,100,102,.04); }
.admin-user-table td small { display: block; margin-top: 5px; color: #66736d; line-height: 1.55; }
.admin-empty { text-align: center !important; color: #66736d; padding: 26px !important; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.admin-pagination button { width: auto; }
.admin-stat.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
@media (max-width: 720px) { .admin-summary { grid-template-columns: repeat(2, 1fr); } .admin-toolbar { grid-template-columns: 1fr; } }

.strategy-card p {
  color: var(--muted);
  line-height: 1.55;
}

.strategy-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bot-lab-panel {
  background:
    linear-gradient(135deg, rgba(232, 248, 241, 0.72), rgba(255, 251, 232, 0.42)),
    var(--panel);
}

.bot-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.bot-feature-strip span,
.bot-card-meta span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  padding: 6px 9px;
}

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

.market-ticker-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.home-market-panel {
  margin: 14px 0 0;
}

.market-ticker-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.market-ticker-heading h3 {
  font-size: 1rem;
  margin-top: 3px;
}

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

.market-ticker-card {
  background:
    linear-gradient(135deg, rgba(247, 252, 248, 0.98), rgba(255, 253, 244, 0.88));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.market-sparkline {
  display: block;
  height: 58px;
  overflow: visible;
  width: 100%;
}

.market-sparkline .sparkline-line {
  fill: none;
  stroke: #1bb47a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.market-sparkline .sparkline-area {
  fill: rgba(27, 180, 122, 0.09);
}

.market-sparkline.negative .sparkline-line {
  stroke: #ef6a6a;
}

.market-sparkline.negative .sparkline-area {
  fill: rgba(239, 106, 106, 0.08);
}

.market-coin,
.market-price,
.market-range {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.coin-icon {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 860;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.coin-icon.eth {
  background: #4f63d8;
}

.coin-icon.btc {
  background: #f49b36;
}

.market-coin strong,
.market-price strong {
  display: block;
  font-size: 1rem;
}

.market-coin small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  margin-top: 2px;
}

.market-price span {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 8px;
}

.market-price .positive {
  background: rgba(18, 150, 106, 0.12);
  color: #0c7a58;
}

.market-price .negative {
  background: rgba(190, 75, 73, 0.1);
  color: var(--red);
}

.market-range {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 680;
}

.bot-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.bot-card.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 151, 153, 0.1), var(--soft-glow);
}

.bot-card:hover {
  border-color: rgba(15, 139, 141, 0.42);
  transform: translateY(-1px);
}

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

.bot-card h3 {
  font-size: 1rem;
}

.bot-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.bot-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.bot-card-stats div {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}

.bot-card-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 720;
  margin-bottom: 3px;
}

.bot-card-stats strong {
  display: block;
  font-size: 0.9rem;
}

.bot-card-stats strong.positive {
  color: var(--teal-dark);
}

.bot-card-stats strong.negative {
  color: var(--red);
}

.bot-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.filter-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 760;
  padding: 8px 13px;
}

.filter-tabs button.selected,
.filter-tabs button:hover {
  background: var(--mint);
  border-color: rgba(17, 151, 153, 0.28);
  color: var(--teal-dark);
}

.activity-filter-wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 100%;
}

.activity-filter-wrap span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.activity-filter-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
  margin: 10px 0 14px;
}

.row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.guide-panel .panel-heading p:last-child {
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 680px;
}

.product-panel {
  background:
    linear-gradient(135deg, rgba(17, 151, 153, 0.08), rgba(241, 201, 79, 0.08)),
    var(--panel);
}

.product-heading p:last-child {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 820px;
}

.product-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(241, 201, 79, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(241, 250, 245, 0.96), rgba(255, 253, 245, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 20px;
}

.product-hero > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-hero h3 {
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.15;
  margin: 0;
}

.product-hero p,
.product-feature-grid p,
.product-flow p,
.product-risk-note p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.product-feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.product-feature-grid article,
.product-flow > div,
.product-risk-note {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.product-feature-grid strong,
.product-flow strong,
.product-risk-note strong {
  color: var(--ink);
  display: block;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.product-flow {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.product-flow span {
  align-items: center;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 12px;
  width: 34px;
}

.product-risk-note {
  border-color: rgba(226, 181, 31, 0.35);
  background: rgba(255, 247, 215, 0.42);
}

.product-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(214, 247, 239, 0.72), transparent 34rem),
    linear-gradient(135deg, #f7fbf7 0%, #fffdf4 100%);
  color: var(--ink);
}

.product-page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

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

.product-page-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px;
  background: linear-gradient(135deg, rgba(239, 250, 246, 0.94), rgba(255, 253, 244, 0.94));
  box-shadow: var(--shadow);
}

.product-page-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.product-page-hero h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.product-page-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.72;
}

.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.product-page-grid article,
.product-page-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.product-page-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.product-page-grid strong,
.product-page-note strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
}

.product-page-grid p,
.product-page-note p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-page-note {
  margin-top: 20px;
  background: #fff8ea;
  border-color: #f0c27b;
}

.guide-viewer {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: min(78vh, 860px);
  min-height: 560px;
  overflow: hidden;
}

.guide-viewer iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

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

  .product-page-shell {
    width: min(100% - 28px, 720px);
    padding: 18px 0 40px;
  }

  .product-page-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .product-page-topbar a,
  .product-page-actions a {
    justify-content: center;
    width: 100%;
  }

  .product-page-hero {
    padding: 28px;
  }

  .product-page-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .ghost {
    margin-top: 0;
    margin-left: auto;
  }

  .auth-panel,
  .split,
  .signal-layout,
  .strategy-grid,
  .metric-grid,
  .risk-grid,
  .calc-metrics,
  .calc-metrics.compact,
  .balance-grid,
  .bot-lab-grid,
  .market-ticker-grid,
  .strategy-mode-grid,
  .home-insight-grid,
  .leaderboard-row,
  .product-feature-grid,
  .product-flow {
    grid-template-columns: 1fr;
  }

  .leaderboard-score {
    text-align: left;
  }

  .workspace {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .topbar,
  .panel-heading,
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-viewer {
    height: 72vh;
    min-height: 460px;
  }

  .sidebar {
    padding: 16px;
  }

  .assistant-prompt-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    flex-direction: column;
  }
}

/* WEEX Nova V2 presentation layer. Business controls and element IDs remain unchanged. */
.brand { gap: 11px; }
.brand-mark { align-items: center; background: linear-gradient(145deg, var(--teal), var(--teal-dark)); border-radius: 12px; box-shadow: 0 8px 22px rgba(17,151,153,.2); color: #fff; display: inline-flex; font-size: 1rem; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.brand strong { font-size: .96rem; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: .65rem; margin-top: 2px; text-transform: uppercase; }
.nav-label { color: #91a09a; font-size: .68rem; font-weight: 800; letter-spacing: .11em; margin: 12px 12px 2px; text-transform: uppercase; }
.nav a { align-items: center; display: flex; gap: 10px; }
.nav a > span { color: var(--teal-dark); display: inline-block; font-weight: 850; text-align: center; width: 18px; }
.nav a.active { box-shadow: inset 3px 0 0 var(--teal); }
.site-title { letter-spacing: -.045em; text-transform: none; }
.overview-home { border-color: rgba(17,151,153,.18); overflow: hidden; position: relative; }
.overview-home::before { background: radial-gradient(circle, rgba(17,151,153,.13), transparent 68%); content: ""; height: 300px; pointer-events: none; position: absolute; right: -110px; top: -140px; width: 300px; }
.overview-heading { position: relative; }
.overview-heading h2 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); letter-spacing: -.035em; }
.quick-action-section { border-top: 1px solid rgba(17,151,153,.14); margin-top: 18px; padding-top: 18px; }
.section-note { color: var(--muted); font-size: .78rem; }
.quick-action-grid { display: grid; gap: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.quick-action-grid a { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); display: grid; gap: 4px; min-height: 112px; padding: 14px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.quick-action-grid a:hover { border-color: rgba(17,151,153,.42); box-shadow: 0 12px 30px rgba(32,58,45,.08); transform: translateY(-2px); }
.quick-action-grid small { color: var(--muted); font-size: .76rem; }
.quick-icon { align-items: center; background: var(--mint); border-radius: 10px; color: var(--teal-dark); display: inline-flex; font-weight: 900; height: 32px; justify-content: center; margin-bottom: 4px; width: 32px; }
.panel, .metric, .home-insight-card, .home-leaderboard-panel { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.panel:hover { border-color: rgba(17,151,153,.24); }
.admin-view-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.admin-view-tab { background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 780; padding: 9px 14px; }
.admin-view-tab:hover, .admin-view-tab.approved:hover { background: var(--mint); border-color: rgba(17,151,153,.32); color: var(--teal-dark); }
.support-panel { align-items: center; background: linear-gradient(135deg, rgba(232,248,241,.92), rgba(255,251,232,.72)); display: flex; gap: 24px; justify-content: space-between; }
.support-copy p:last-child { color: var(--muted); line-height: 1.6; margin: 10px 0 0; max-width: 660px; }
.support-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.support-options span { background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; color: var(--teal-dark); font-size: .82rem; font-weight: 780; padding: 9px 12px; }
@media (max-width: 1100px) { .quick-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 920px) { .nav-label { display: none; } .support-panel { align-items: flex-start; flex-direction: column; } .support-options { justify-content: flex-start; } }
@media (max-width: 560px) { .quick-action-grid { grid-template-columns: 1fr; } .quick-action-grid a { min-height: 96px; } .admin-view-tabs { flex-direction: column; } }

/* Reference-dashboard layout: visual-only composition using existing live data. */
.workspace { background: #f7faf8; }
.dashboard { gap: 14px; }
.panel { border-color: #e3ebe7; border-radius: 10px; box-shadow: 0 5px 18px rgba(31,55,43,.045); }
.overview-home { background: transparent; border: 0; box-shadow: none; overflow: visible; padding: 0; }
.overview-home::before { display: none; }
.overview-heading { margin: 0 0 14px; }
.overview-heading h2 { font-size: 1.28rem; }
.overview-heading p { font-size: .84rem; margin-top: 5px !important; }
.dashboard-summary-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.dashboard-summary-grid .home-market-panel,
.dashboard-summary-grid .market-ticker-grid,
.dashboard-summary-grid .metric-grid { display: contents; }
.dashboard-summary-grid #marketTickerUpdatedAt { display: none; }
.dashboard-summary-grid .market-ticker-card,
.dashboard-summary-grid .metric { background: #fff; border: 1px solid #e3ebe7; border-radius: 10px; box-shadow: 0 5px 18px rgba(31,55,43,.045); min-height: 202px; padding: 18px; }
.dashboard-summary-grid .market-price { font-size: 1.7rem; }
.dashboard-summary-grid .market-sparkline { height: 66px; }
.dashboard-status-card { align-content: start; display: grid; }
.dashboard-status-card span { color: var(--ink); font-weight: 800; }
.dashboard-status-card strong { color: #13a66a; font-size: 1.65rem; margin-top: 34px; }
.dashboard-status-card small { color: var(--muted); margin-top: 12px; }
.dashboard-status-card.earnings-card strong { font-size: clamp(1.25rem,2vw,1.65rem); white-space: nowrap; }
.dashboard-status-card.earnings-card strong.negative { color: var(--red); }
.home-insight-grid { grid-template-columns: minmax(0,1fr); }
.compact-quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.compact-quick-grid a { align-items: center; background: #fff; border: 1px solid #e3ebe7; border-radius: 8px; color: var(--ink); display: flex; gap: 10px; min-height: 62px; padding: 12px; text-decoration: none; }
.compact-quick-grid a:hover { border-color: rgba(17,151,153,.38); background: var(--mint-soft); }
.compact-quick-grid span { color: #13a66a; font-size: 1.3rem; }
.compact-quick-grid strong { font-size: .88rem; }
.home-assistant-panel { margin-top: 14px; }
.assistant-layout { display: grid; gap: 10px; grid-template-columns: minmax(270px,.75fr) minmax(0,1.25fr); }
.assistant-layout .assistant-prompt-grid { align-content: start; }
.assistant-layout .assistant-answer { margin-top: 0; }
.home-leaderboard-panel { background: #fff; }
.strategy-leaderboard {
  border: 1px solid #e6ece9;
  border-radius: 8px;
  display: block;
  overflow-x: auto;
}

.strategy-table-row {
  align-items: center;
  background: #fff;
  border-top: 1px solid #edf1ef;
  display: grid;
  font-size: 0.78rem;
  gap: 14px;
  grid-template-columns: minmax(125px, 1.05fr) minmax(90px, .75fr) minmax(180px, 1.5fr) minmax(130px, 1fr) minmax(180px, 1.4fr) 64px;
  min-width: 900px;
  padding: 13px 16px;
}

.strategy-table-row:first-child {
  border-top: 0;
}

.strategy-table-row.active {
  background: rgba(233, 249, 242, 0.55);
}

.strategy-table-head {
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 780;
  padding-bottom: 11px;
  padding-top: 11px;
}

.strategy-table-row > strong {
  align-items: center;
  display: flex;
  gap: 7px;
}

.strategy-table-row > strong em {
  background: var(--mint);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.64rem;
  font-style: normal;
  padding: 3px 6px;
}

.strategy-table-row > span {
  color: var(--muted);
  line-height: 1.45;
}

.risk-indicator {
  align-items: center;
  display: flex;
  gap: 4px;
}

.risk-indicator i {
  border: 1px solid #b8cbc3;
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.risk-indicator i.filled {
  background: #18ad73;
  border-color: #18ad73;
}

.risk-indicator small {
  font-size: 0.66rem;
  margin-left: 4px;
  white-space: nowrap;
}

.strategy-reason {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workbench-panel { border-radius: 10px; }
.signal-layout { grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); }
@media (max-width: 1180px) { .dashboard-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 920px) { .assistant-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .dashboard-summary-grid, .compact-quick-grid { grid-template-columns: 1fr; } .dashboard-summary-grid .market-ticker-card, .dashboard-summary-grid .metric { min-height: 160px; } }
