* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

:root {
  --bg: #07111f;
  --surface: rgba(14, 25, 43, 0.86);
  --surface-soft: rgba(21, 35, 56, 0.88);
  --line: rgba(122, 162, 199, 0.18);
  --line-strong: rgba(126, 211, 247, 0.34);
  --text: #e7f1ff;
  --muted: #91a8bd;
  --primary: #31c3ff;
  --primary-strong: #7dd3fc;
  --positive: #ff5d73;
  --negative: #21d189;
  --warning: #f7c948;
  --info: #67e8f9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --glow: 0 0 28px rgba(49, 195, 255, 0.24);
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 8%, rgba(49, 195, 255, 0.28), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(33, 209, 137, 0.18), transparent 28%),
    radial-gradient(circle at 48% 78%, rgba(255, 93, 115, 0.11), transparent 32%),
    linear-gradient(180deg, #081326 0%, var(--bg) 46%, #050913 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto, auto;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: screen;
  opacity: 0.42;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 25, 43, 0.82), rgba(11, 20, 34, 0.56));
  box-shadow: var(--shadow);
  padding: 12px 14px;
  backdrop-filter: blur(18px);
}

.action-toast {
  position: sticky;
  top: 78px;
  z-index: 12;
  width: fit-content;
  max-width: min(680px, calc(100vw - 36px));
  margin: 10px auto 0;
  border: 1px solid rgba(33, 209, 137, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.18), rgba(49, 195, 255, 0.12)),
    rgba(8, 19, 38, 0.96);
  color: #eafff7;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), 0 0 22px rgba(33, 209, 137, 0.18);
  backdrop-filter: blur(16px);
}

.brand-block,
.topbar-actions,
.result-header,
.panel-heading,
.form-row {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, #10213a 0%, #31c3ff 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(49, 195, 255, 0.46);
}

h1 {
  font-size: 24px;
  line-height: 1.15;
}

.brand-block p,
.result-header p,
.disclaimer,
.empty-state p,
small {
  color: var(--muted);
}

.brand-block p {
  margin-top: 5px;
}

.topbar-actions {
  gap: 10px;
}

.pv-mini {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(8, 19, 38, 0.44);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
  white-space: nowrap;
}

.poster-top-link {
  min-height: 32px;
  border-color: rgba(255, 93, 115, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.14), rgba(49, 195, 255, 0.08)),
    rgba(8, 19, 38, 0.42);
  color: #ffe9ee;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.poster-top-link:hover {
  border-color: rgba(255, 93, 115, 0.52);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 93, 115, 0.16);
}

.account-button {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-switcher {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.7);
  padding: 4px;
}

.view-tab {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9db7ca;
  padding: 0 12px;
  font-weight: 800;
}

.view-tab.active {
  background: linear-gradient(135deg, rgba(49, 195, 255, 0.96), rgba(33, 209, 137, 0.88));
  color: #04101d;
  box-shadow: var(--glow);
}

.app-view.hidden {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--negative));
  color: #04101d;
  box-shadow: 0 12px 28px rgba(49, 195, 255, 0.18);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), #5ff0b5);
  box-shadow: 0 14px 34px rgba(49, 195, 255, 0.32);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button.ghost {
  background: rgba(8, 19, 38, 0.66);
  border-color: var(--line);
  color: var(--primary);
}

.button.ghost:hover {
  background: rgba(49, 195, 255, 0.12);
  border-color: var(--primary);
}

.full-width {
  width: 100%;
}

.service-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.service-muted {
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid rgba(247, 201, 72, 0.28);
  color: #ffe8a3;
}

.service-ok {
  background: rgba(33, 209, 137, 0.12);
  border: 1px solid rgba(33, 209, 137, 0.28);
  color: var(--negative);
}

.service-error {
  background: rgba(255, 93, 115, 0.12);
  border: 1px solid rgba(255, 93, 115, 0.28);
  color: var(--positive);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(1, 8, 15, 0.52);
  backdrop-filter: blur(4px);
}

.user-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  display: grid;
  grid-auto-rows: max-content;
  gap: 14px;
  width: min(440px, 100vw);
  height: 100vh;
  border-left: 1px solid rgba(125, 211, 252, 0.24);
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.13), transparent 34%),
    rgba(8, 19, 38, 0.96);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.42);
  padding: 18px;
  transform: translateX(104%);
  transition: transform 0.22s ease;
  backdrop-filter: blur(18px);
  overflow: auto;
}

.user-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  align-items: flex-start;
}

.drawer-header .icon-button {
  margin-left: auto;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(49, 195, 255, 0.42);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(49, 195, 255, 0.94), rgba(33, 209, 137, 0.86));
  color: #04101d;
  font-size: 20px;
  font-weight: 1000;
  box-shadow: var(--glow);
  flex: 0 0 auto;
}

.drawer-header p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.72);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.auth-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.1), transparent 54%),
    rgba(8, 19, 38, 0.58);
  padding: 12px;
}

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

.auth-tabs button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 19, 38, 0.72);
  color: var(--muted);
  font-weight: 900;
}

.auth-tabs button.active {
  border-color: rgba(49, 195, 255, 0.5);
  background: rgba(49, 195, 255, 0.16);
  color: #ffffff;
  box-shadow: var(--glow);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-message {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-card strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.user-card h2 {
  font-size: 22px;
}

.user-card p {
  margin-top: 7px;
  color: var(--muted);
}

.quota-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(49, 195, 255, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(49, 195, 255, 0.18), rgba(8, 19, 38, 0.74) 58%),
    conic-gradient(from 180deg, var(--primary), var(--negative), rgba(255, 255, 255, 0.08));
  box-shadow: var(--glow);
}

.quota-ring strong,
.quota-ring span {
  display: block;
}

.quota-ring strong {
  font-size: 28px;
  line-height: 1;
}

.quota-ring span {
  color: var(--muted);
  font-size: 12px;
}

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

.quota-grid article,
.quota-mini,
.model-mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.62);
  padding: 12px;
}

.quota-grid span,
.quota-mini span,
.quota-mini small,
.model-mini span,
.model-mini small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quota-grid strong,
.quota-mini strong,
.model-mini strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.tier-actions {
  display: grid;
  gap: 8px;
  min-width: 142px;
}

.tier-actions .button {
  width: 100%;
}

.quota-mini {
  margin-top: 12px;
}

.model-mini {
  margin-top: 10px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.12), transparent 44%),
    rgba(8, 19, 38, 0.66);
}

.model-mini strong {
  width: fit-content;
  border-radius: 6px;
  background: rgba(49, 195, 255, 0.12);
  color: var(--primary);
  padding: 5px 8px;
  font-size: 13px;
}

.model-mini small {
  margin-top: 8px;
  line-height: 1.45;
}

.model-mini.model-vip {
  border-color: rgba(247, 201, 72, 0.3);
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.12), transparent 44%),
    rgba(8, 19, 38, 0.66);
}

.model-mini.model-vip strong {
  background: rgba(247, 201, 72, 0.14);
  color: var(--warning);
}

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

.benefit-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.56);
  padding: 10px;
}

.benefit-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.benefit-strip strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.paper-account-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(33, 209, 137, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.11), transparent 48%),
    rgba(8, 19, 38, 0.58);
  padding: 12px;
}

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

.paper-account-grid article,
.paper-account-mini article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.62);
  padding: 10px;
}

.paper-account-grid span,
.paper-account-mini span,
.paper-position-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.paper-account-grid strong,
.paper-account-mini strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profit {
  color: var(--positive) !important;
}

.loss {
  color: var(--negative) !important;
}

.paper-position-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.64);
  padding: 10px;
}

.paper-position-item em {
  font-style: normal;
  font-weight: 900;
}

.paper-order-action {
  justify-self: start;
  width: fit-content;
  border: 1px solid rgba(255, 93, 115, 0.34);
  border-radius: 8px;
  background: rgba(255, 93, 115, 0.1);
  color: var(--positive);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.paper-order-action:hover {
  background: rgba(255, 93, 115, 0.18);
  color: #ffffff;
}

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

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

.paper-tabs button,
.paper-mode-switch button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 19, 38, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.paper-tabs button.active,
.paper-mode-switch button.active {
  border-color: rgba(33, 209, 137, 0.48);
  background: rgba(33, 209, 137, 0.14);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(33, 209, 137, 0.14);
}

.paper-performance-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.paper-performance-card div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.62);
  padding: 10px;
}

.paper-performance-card span,
.paper-cost-line,
.paper-explain,
.paper-review-card small,
.risk-pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.paper-performance-card strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 17px;
}

.paper-asset-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
  min-height: 116px;
  align-items: end;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.5);
  padding: 10px;
}

.asset-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  align-items: end;
  min-width: 0;
  height: 96px;
}

.asset-bar i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(33, 209, 137, 0.98), rgba(49, 195, 255, 0.48));
  box-shadow: 0 0 18px rgba(33, 209, 137, 0.2);
}

.asset-bar span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.paper-cost-line {
  margin: 0;
  line-height: 1.5;
}

.paper-explain {
  display: block;
  line-height: 1.45;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  padding: 5px 8px;
  line-height: 1.2;
}

.risk-profit {
  border-color: rgba(33, 209, 137, 0.28);
  background: rgba(33, 209, 137, 0.1);
  color: #b6f8db;
}

.risk-warning {
  border-color: rgba(247, 201, 72, 0.3);
  background: rgba(247, 201, 72, 0.1);
  color: #ffe49a;
}

.risk-danger {
  border-color: rgba(255, 93, 115, 0.32);
  background: rgba(255, 93, 115, 0.11);
  color: #ffb5c1;
}

.paper-review-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(49, 195, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.1), transparent 46%),
    rgba(8, 19, 38, 0.64);
  padding: 11px;
}

.paper-review-card div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.paper-review-card strong,
.paper-position-item strong {
  color: #ffffff;
}

.paper-review-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.paper-review-card em {
  width: fit-content;
  font-style: normal;
  font-weight: 900;
}

.paper-review-card p {
  margin: 0;
  color: #c6d9e8;
  font-size: 13px;
  line-height: 1.48;
}

.drawer-section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.drawer-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

.workspace-item,
.history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.64);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.workspace-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.workspace-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.workspace-select:hover {
  color: var(--primary);
}

.workspace-select span,
.history-item span,
.history-item small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-remove {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(255, 93, 115, 0.08);
  color: var(--positive);
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  cursor: pointer;
}

.workspace-remove:hover {
  background: rgba(255, 93, 115, 0.16);
  color: #ffffff;
}

.history-item small {
  white-space: normal;
  line-height: 1.4;
}

.quota-mini small {
  margin-top: 7px;
  font-weight: 700;
}

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

.ticker-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 62px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 48%),
    rgba(14, 25, 43, 0.78);
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  position: relative;
}

.ticker-chip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.7;
}

.ticker-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticker-chip strong {
  grid-row: 2;
  font-size: 20px;
  line-height: 1;
}

.ticker-chip em {
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.ticker-up {
  color: var(--positive);
}

.ticker-neutral {
  color: var(--accent);
}

.ticker-flat {
  color: var(--muted);
}

.ticker-up em {
  background: rgba(255, 93, 115, 0.12);
}

.ticker-down {
  color: var(--negative);
}

.ticker-down em {
  background: rgba(33, 209, 137, 0.12);
}

.ticker-flat em {
  background: rgba(148, 163, 184, 0.12);
}

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

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 25, 43, 0.96), rgba(5, 17, 32, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(33, 209, 137, 0.22), transparent 34%),
    radial-gradient(circle at 20% 72%, rgba(49, 195, 255, 0.2), transparent 38%),
    #07111f;
  color: #ffffff;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(49, 195, 255, 0.1) 50%, transparent 54%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(125, 211, 252, 0.04) 24px 25px);
  transform: translateX(-28%);
  animation: scanPanel 7s linear infinite;
  pointer-events: none;
}

.hero-copy,
.hero-search,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  max-width: 720px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(49, 195, 255, 0.22);
}

.hero-copy p {
  max-width: 680px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.hero-panel .eyebrow {
  color: var(--primary-strong);
}

.hero-decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 1040px;
  grid-column: 1 / -1;
}

.hero-decision-strip article {
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.11), transparent 46%),
    rgba(4, 16, 29, 0.54);
  padding: 12px;
}

.hero-decision-strip span,
.hero-decision-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.hero-decision-strip strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.hero-decision-strip small {
  margin-top: 6px;
  line-height: 1.35;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px minmax(230px, 0.75fr) 128px;
  gap: 12px;
  max-width: 1040px;
  grid-column: 1 / -1;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.64);
  padding: 16px;
  backdrop-filter: blur(16px);
}

.workbench-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

.workbench-card,
.sync-speed-grid article {
  min-height: 92px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), transparent 45%),
    rgba(4, 16, 29, 0.66);
  padding: 14px;
  overflow: hidden;
  position: relative;
}

.workbench-card::after,
.sync-speed-grid article::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.7;
}

.workbench-card span,
.workbench-card small,
.sync-speed-grid span,
.sync-speed-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.workbench-card strong,
.sync-speed-grid strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.workbench-card small,
.sync-speed-grid small {
  margin-top: 8px;
  line-height: 1.35;
}

.tone-cyan {
  color: var(--primary);
}

.tone-green {
  color: var(--negative);
}

.tone-red {
  color: var(--positive);
}

.tone-amber {
  color: var(--warning);
}

.home-decision-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

.home-decision-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 206px;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 44%),
    rgba(4, 16, 29, 0.7);
  padding: 15px;
  overflow: hidden;
  position: relative;
}

.home-decision-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 11px;
  height: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.62;
}

.home-decision-card.featured {
  color: var(--primary);
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.16), transparent 42%),
    rgba(4, 16, 29, 0.72);
}

.home-decision-card.review {
  color: var(--negative);
}

.home-decision-card.next {
  color: var(--warning);
}

.home-after-close-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 92, 92, 0.1), transparent 44%),
    rgba(4, 16, 29, 0.76);
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.home-after-close-panel::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--negative), var(--primary), transparent);
  opacity: 0.55;
}

.after-close-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.after-close-copy strong {
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.after-close-copy p {
  max-width: 720px;
  color: #c8dced;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.after-close-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.after-close-metrics span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.52);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.after-close-metrics b {
  color: #ffffff;
  font-size: 18px;
}

.after-close-metrics b.up {
  color: var(--negative);
}

.after-close-metrics b.down {
  color: var(--positive);
}

.after-close-metrics b.flat {
  color: var(--muted);
}

.after-close-reason {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.1), rgba(33, 209, 137, 0.05)),
    rgba(8, 19, 38, 0.46);
  padding: 11px 12px;
}

.after-close-reason span {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.after-close-reason p {
  max-width: none;
  color: #e6f5ff;
  font-size: 13px;
  line-height: 1.55;
}

.after-close-poster {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.72);
  box-shadow: 0 20px 44px rgba(0, 8, 20, 0.34);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.after-close-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  display: grid;
  place-content: center;
  gap: 8px;
  height: 100%;
  padding: 18px;
  text-align: center;
}

.poster-fallback span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.poster-fallback strong {
  color: #ffffff;
  font-size: 20px;
}

.poster-fallback small {
  color: var(--muted);
  font-weight: 800;
}

.poster-link {
  text-decoration: none;
}

.home-card-topline,
.home-card-metrics,
.home-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.home-card-topline {
  justify-content: space-between;
}

.home-card-topline span,
.home-card-topline em,
.home-card-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.home-card-topline em,
.home-card-metrics span {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(8, 19, 38, 0.46);
  padding: 5px 8px;
}

.home-decision-card strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.home-decision-card p {
  color: #c8dced;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.home-card-actions {
  margin-top: auto;
  padding-bottom: 6px;
}

.home-card-actions .button,
.home-decision-card > .button {
  min-height: 34px;
  width: auto;
  padding: 0 12px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.home-hot-concepts {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.1), transparent 38%),
    rgba(4, 16, 29, 0.64);
  padding: 14px;
  position: relative;
  z-index: 1;
}

.home-hot-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.home-hot-head h3 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
}

.home-hot-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

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

.home-hot-list button {
  display: grid;
  gap: 5px;
  min-height: 70px;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.66);
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.home-hot-list button:hover {
  border-color: rgba(45, 212, 191, 0.62);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(49, 195, 255, 0.08)),
    rgba(8, 19, 38, 0.78);
  transform: translateY(-1px);
}

.home-hot-list strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hot-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-search label {
  color: rgba(255, 255, 255, 0.78);
}

.ai-tier-field {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.ai-tier-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 46px;
}

.ai-tier-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 7px;
  background: rgba(8, 19, 38, 0.78);
  color: #c9dff1;
  cursor: pointer;
  padding: 6px 8px;
  transition: 0.18s ease;
}

.ai-tier-option strong {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: rgba(49, 195, 255, 0.12);
  color: var(--primary);
  font-size: 12px;
}

.ai-tier-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.ai-tier-option:hover,
.ai-tier-option.active {
  border-color: rgba(105, 232, 193, 0.72);
  background: linear-gradient(135deg, rgba(49, 195, 255, 0.16), rgba(33, 209, 137, 0.12));
  box-shadow: var(--glow);
  color: #ffffff;
}

.ai-tier-option.locked {
  opacity: 0.64;
}

.ai-tier-option.locked strong {
  background: rgba(247, 201, 72, 0.14);
  color: var(--warning);
}

.hero-search .button {
  height: 46px;
  background: linear-gradient(135deg, #e7faff, #69e8c1);
  color: #04101d;
  align-self: end;
}

.hero-search .button:hover {
  background: linear-gradient(135deg, #ffffff, #b8fff0);
}

.hero-visual {
  min-height: 0;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 18%, rgba(49, 195, 255, 0.2), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(255, 93, 115, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(10, 29, 48, 0.92), rgba(5, 15, 28, 0.78));
  box-shadow: inset 0 0 32px rgba(49, 195, 255, 0.08), var(--glow);
  overflow: hidden;
  padding: 12px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.terminal-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d73;
}

.terminal-header span:nth-child(2) {
  background: #f7c948;
}

.terminal-header span:nth-child(3) {
  background: #21d189;
}

.terminal-header strong {
  margin-left: auto;
}

.strategy-preview-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.preview-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(49, 195, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.13), transparent 48%),
    rgba(4, 16, 29, 0.58);
  padding: 11px 12px;
}

.preview-score span,
.preview-signal-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-score strong {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 195, 255, 0.2), rgba(33, 209, 137, 0.12));
  color: #ffffff;
  font-size: 16px;
  padding: 6px 10px;
  white-space: nowrap;
}

.preview-signal-list {
  display: grid;
  gap: 7px;
}

.preview-signal-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.52);
  padding: 7px 9px;
}

.preview-signal-list strong {
  min-width: 0;
  color: #eef8ff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.radar-orbit {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  margin: 18px auto 0;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(125, 211, 252, 0.24) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(125, 211, 252, 0.24) 50%, transparent 51%);
  position: relative;
}

.radar-orbit::before,
.radar-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(33, 209, 137, 0.2);
  border-radius: 50%;
}

.radar-orbit::after {
  inset: 48px;
}

.radar-core {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--negative));
  color: #04101d;
  font-weight: 1000;
  box-shadow: 0 0 42px rgba(49, 195, 255, 0.5);
  position: relative;
}

.radar-core::after {
  content: "";
  position: absolute;
  width: 126px;
  height: 1px;
  background: linear-gradient(90deg, rgba(49, 195, 255, 0.9), transparent);
  transform-origin: left center;
  animation: radarSweep 3.8s linear infinite;
}

.sparkline-board {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 58px;
  margin-top: 16px;
  border-top: 1px solid rgba(125, 211, 252, 0.16);
  padding-top: 12px;
}

.sparkline-board i {
  flex: 1;
  min-width: 0;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--negative), var(--primary));
  box-shadow: 0 0 16px rgba(33, 209, 137, 0.22);
  animation: barPulse 2.8s ease-in-out infinite;
}

.sparkline-board i:nth-child(2n) {
  background: linear-gradient(180deg, var(--positive), #f7c948);
  animation-delay: 0.3s;
}

.recommendation-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.11), transparent 34%),
    linear-gradient(160deg, transparent 38%, rgba(255, 93, 115, 0.08)),
    var(--surface);
  box-shadow: var(--shadow), var(--glow);
  padding: 20px;
}

.recommendation-header {
  order: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.recommendation-header h2 {
  font-size: 28px;
}

.recommendation-header p {
  max-width: 780px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.recommendation-mode-bar {
  order: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 24, 0.42);
}

.recommendation-mode {
  display: grid;
  gap: 4px;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.recommendation-mode strong {
  color: var(--text);
  font-size: 14px;
}

.recommendation-mode span {
  font-size: 12px;
  line-height: 1.45;
}

.recommendation-mode.active {
  border-color: rgba(45, 212, 191, 0.72);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(125, 211, 252, 0.08));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08) inset;
}

.recommendation-panel > .disclaimer {
  order: 11;
}

.recommendation-panel > .message {
  order: 3;
}

.recommendation-guide-strip {
  order: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recommendation-guide-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 82px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.12), transparent 44%),
    rgba(4, 16, 29, 0.54);
  padding: 13px;
}

.recommendation-guide-strip span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 950;
}

.recommendation-guide-strip strong {
  min-width: 0;
  color: #ffffff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.recommendation-guide-strip small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.recommendation-filter-board {
  order: 5;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 42%),
    rgba(3, 15, 30, 0.68);
  padding: 15px;
}

.trade-gate-board {
  order: 5;
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(255, 93, 115, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.12), transparent 48%),
    rgba(26, 8, 20, 0.62);
  padding: 15px;
  box-shadow: 0 16px 38px rgba(255, 93, 115, 0.08);
}

.trade-gate-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.trade-gate-copy h3 {
  color: #ffffff;
  font-size: 20px;
}

.trade-gate-copy p {
  color: #ffd5dc;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

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

.trade-gate-list article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 93, 115, 0.18);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.68);
  padding: 10px;
}

.trade-gate-list strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-gate-list span {
  color: #ffd5dc;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.trade-gate-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.recommendation-filter-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.recommendation-filter-copy h3 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
}

.recommendation-filter-copy p {
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-align: right;
}

.concept-filter-row,
.quality-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.concept-filter-row button,
.quality-filter-row button {
  min-height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(8, 19, 38, 0.72);
  color: #b9cde0;
  font-weight: 900;
  padding: 0 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

.concept-filter-row button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.concept-filter-row small {
  color: #78d6ff;
  font-size: 11px;
}

.concept-filter-row button:hover,
.quality-filter-row button:hover,
.concept-filter-row button.active,
.quality-filter-row button.active {
  border-color: rgba(49, 195, 255, 0.72);
  background: rgba(49, 195, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(49, 195, 255, 0.14);
}

.recommendation-section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  border-top: 1px solid rgba(125, 211, 252, 0.14);
  padding-top: 14px;
}

.recommendation-section-title h3 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 22px;
}

.recommendation-section-title p {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  text-align: right;
}

.recommendation-validation-title {
  order: 7;
}

.recommendation-compare-card {
  order: 9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 45%),
    rgba(4, 14, 30, 0.72);
  padding: 16px;
}

.recommendation-history-card {
  order: 11;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.68fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.1), transparent 36%),
    linear-gradient(145deg, transparent 44%, rgba(33, 209, 137, 0.08)),
    rgba(4, 14, 30, 0.72);
  padding: 16px;
}

.recommendation-evaluation-card {
  order: 10;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.12), transparent 38%),
    linear-gradient(145deg, transparent 46%, rgba(247, 201, 72, 0.08)),
    rgba(4, 14, 30, 0.74);
  padding: 16px;
}

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

.evaluation-heading h3 {
  color: #ffffff;
  font-size: 22px;
}

.evaluation-heading p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.evaluation-default {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(33, 209, 137, 0.2);
  border-radius: 8px;
  background: rgba(33, 209, 137, 0.07);
  padding: 12px;
}

.evaluation-default span,
.evaluation-default small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.evaluation-default strong {
  color: #9df6cf;
  font-size: 18px;
}

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

.evaluation-window-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.55);
  padding: 13px;
}

.evaluation-window-card.evaluation-feedback {
  border-color: rgba(33, 209, 137, 0.34);
}

.evaluation-window-card.evaluation-baseline {
  border-color: rgba(125, 211, 252, 0.36);
}

.evaluation-window-card.evaluation-insufficient {
  border-color: rgba(247, 201, 72, 0.28);
}

.evaluation-window-title {
  display: grid;
  gap: 5px;
}

.evaluation-window-title span,
.evaluation-window-title small,
.evaluation-industry-list > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.evaluation-window-title strong {
  color: #ffffff;
  font-size: 20px;
}

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

.evaluation-strategy-grid div,
.evaluation-industry-list div {
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.52);
  padding: 10px;
}

.evaluation-strategy-grid span,
.evaluation-strategy-grid small,
.evaluation-industry-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.evaluation-strategy-grid strong {
  display: block;
  margin: 5px 0;
  font-size: 20px;
}

.evaluation-industry-list {
  display: grid;
  gap: 7px;
}

.evaluation-industry-list strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 4px;
}

.history-copy {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.history-copy h3 {
  color: #ffffff;
  font-size: 22px;
}

.history-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.history-industry-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.history-industry-filter button {
  min-height: 30px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(8, 19, 38, 0.48);
  color: #b8cce0;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.history-industry-filter button.active {
  border-color: rgba(255, 93, 115, 0.46);
  background: rgba(255, 93, 115, 0.14);
  color: #fff0f3;
}

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

.recommendation-date-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.54);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  transition: 0.18s ease;
}

.recommendation-date-list button:hover,
.recommendation-date-list button.active {
  border-color: rgba(49, 195, 255, 0.68);
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.16), rgba(33, 209, 137, 0.08)),
    rgba(8, 19, 38, 0.78);
  box-shadow: 0 12px 28px rgba(49, 195, 255, 0.12);
}

.recommendation-date-list strong {
  color: #ffffff;
  font-size: 15px;
}

.recommendation-date-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recommendation-date-list .load-more-date {
  display: flex;
  justify-content: center;
  min-height: 40px;
  border-style: dashed;
  color: #78d6ff;
  font-weight: 900;
  text-align: center;
}

.history-detail-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

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

.history-detail-head div {
  display: grid;
  gap: 4px;
}

.history-detail-head span,
.history-detail-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.history-detail-head strong {
  color: #ffffff;
  font-size: 20px;
}

.history-detail-panel p {
  color: #b9cde0;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

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

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

.history-summary-grid article,
.history-day-list article,
.history-industry-rank article,
.recommendation-paper-link {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.5);
}

.history-summary-grid article {
  display: grid;
  gap: 7px;
  min-height: 98px;
  padding: 12px;
}

.history-summary-grid span,
.history-summary-grid small,
.history-day-list span,
.history-day-list small,
.history-industry-rank span,
.history-industry-rank small,
.recommendation-paper-link span,
.recommendation-paper-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.history-summary-grid strong {
  color: #ffffff;
  font-size: 22px;
}

.history-summary-grid strong.up,
.history-day-list strong.up,
.history-industry-rank strong.up,
.recommendation-paper-link strong.up {
  color: var(--positive);
}

.history-summary-grid strong.down,
.history-day-list strong.down,
.history-industry-rank strong.down,
.recommendation-paper-link strong.down {
  color: var(--negative);
}

.history-summary-grid strong.flat,
.history-day-list strong.flat,
.history-industry-rank strong.flat,
.recommendation-paper-link strong.flat {
  color: #dcecff;
}

.history-day-list,
.history-industry-rank {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.history-day-list article,
.history-industry-rank article {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 10px;
}

.history-day-list strong,
.history-industry-rank strong {
  color: #ffffff;
  font-size: 17px;
}

.recommendation-date-detail-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.recommendation-date-detail-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 110px 150px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.5);
  padding: 10px 12px;
}

.recommendation-date-detail-list article:first-of-type {
  min-height: 38px;
  border-color: rgba(125, 211, 252, 0.08);
  background: rgba(125, 211, 252, 0.06);
}

.recommendation-date-detail-list div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recommendation-date-detail-list strong {
  color: #ffffff;
  font-size: 15px;
}

.recommendation-date-detail-list strong.up {
  color: var(--positive);
}

.recommendation-date-detail-list strong.down {
  color: var(--negative);
}

.recommendation-date-detail-list strong.flat {
  color: #dcecff;
}

.recommendation-date-detail-list span,
.recommendation-date-detail-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.compare-copy h3 {
  font-size: 22px;
}

.compare-copy p,
.compare-copy small {
  color: var(--muted);
  line-height: 1.55;
}

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

.compare-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.compare-grid span,
.compare-grid small {
  color: var(--muted);
}

.compare-grid strong {
  font-size: 24px;
}

.recommendation-hero {
  order: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 14px;
  align-items: stretch;
}

.recommendation-hero-copy,
.top-pick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(8, 19, 38, 0.68);
  padding: 16px;
}

.recommendation-hero-copy h3 {
  margin-top: 6px;
  font-size: 24px;
}

.recommendation-hero-copy p,
.top-pick-card p {
  margin-top: 8px;
  color: #dcecff;
  line-height: 1.65;
}

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

.recommendation-stat-grid article {
  min-height: 86px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.56);
  padding: 12px;
}

.recommendation-stat-grid span,
.recommendation-stat-grid strong,
.recommendation-stat-grid small,
.top-pick-card span,
.top-pick-card strong,
.top-pick-card small {
  display: block;
}

.recommendation-stat-grid span,
.top-pick-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recommendation-stat-grid strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.recommendation-stat-grid strong.up,
.top-performance-grid strong.up,
.period-return-row strong.up,
.recommendation-performance-line strong.up {
  color: var(--positive);
}

.recommendation-stat-grid strong.down,
.top-performance-grid strong.down,
.period-return-row strong.down,
.recommendation-performance-line strong.down {
  color: var(--negative);
}

.recommendation-stat-grid strong.flat,
.top-performance-grid strong.flat,
.period-return-row strong.flat,
.recommendation-performance-line strong.flat {
  color: #dcecff;
}

.recommendation-stat-grid small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.top-pick-card {
  display: grid;
  gap: 12px;
}

.top-pick-card > div:first-child strong {
  margin-top: 7px;
  color: #ffffff;
  font-size: 20px;
}

.performance-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  color: #cfe4f5;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.performance-realized,
.performance-positive {
  border-color: rgba(255, 93, 115, 0.3);
  background: rgba(255, 93, 115, 0.1);
  color: var(--positive);
}

.performance-drawdown,
.performance-risk {
  border-color: rgba(33, 209, 137, 0.28);
  background: rgba(33, 209, 137, 0.1);
  color: var(--negative);
}

.performance-observing {
  border-color: rgba(247, 201, 72, 0.26);
  background: rgba(247, 201, 72, 0.08);
  color: var(--warning);
}

.probability-meter {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid rgba(255, 93, 115, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 93, 115, 0.18), transparent 62%),
    rgba(4, 16, 29, 0.72);
}

.probability-meter strong {
  color: var(--positive);
  font-size: 34px;
  line-height: 1;
}

.probability-meter span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.top-performance-grid span {
  min-height: 62px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.48);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 9px;
}

.top-performance-grid strong {
  margin-top: 6px;
  color: #ffffff;
  font-size: 16px;
}

.period-return-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.period-return-row.compact {
  margin-top: 8px;
}

.period-return-row span {
  min-height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 8px;
}

.period-return-row strong {
  display: inline;
  margin-left: 4px;
  color: #dcecff;
}

.recommendation-paper-link {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
}

.recommendation-paper-link.compact {
  margin-top: 8px;
}

.recommendation-paper-link strong {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.recommendation-paper-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-review-card {
  order: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.12), transparent 38%),
    rgba(8, 19, 38, 0.62);
  padding: 16px;
}

.review-copy h3 {
  margin-top: 6px;
  color: #ffffff;
  font-size: 22px;
}

.review-copy p {
  max-width: 920px;
  margin-top: 8px;
  color: #dcecff;
  line-height: 1.7;
}

.review-copy small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.review-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.review-insight-grid article {
  min-height: 94px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.42);
  padding: 10px;
}

.review-insight-grid strong,
.review-insight-grid span {
  display: block;
}

.review-insight-grid strong {
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 7px;
}

.review-insight-grid span {
  color: #dcecff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

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

.review-stat-grid article {
  min-height: 92px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.52);
  padding: 12px;
}

.review-stat-grid span,
.review-stat-grid strong,
.review-stat-grid small {
  display: block;
}

.review-stat-grid span,
.review-stat-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-stat-grid strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.review-stat-grid strong.up {
  color: var(--positive);
}

.review-stat-grid strong.down {
  color: var(--negative);
}

.review-stat-grid strong.flat {
  color: #dcecff;
}

.review-stat-grid small {
  margin-top: 6px;
}

.recommendation-layout {
  order: 6;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 14px;
  align-items: start;
}

.recommendation-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.recommendation-card {
  display: grid;
  grid-template-columns: minmax(76px, 82px) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 144px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.1), transparent 36%),
    rgba(8, 19, 38, 0.72);
  color: var(--text);
  padding: 12px;
  text-align: left;
  transition: 0.18s ease;
}

.recommendation-card:hover {
  border-color: var(--primary);
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.16), rgba(33, 209, 137, 0.1)),
    rgba(8, 19, 38, 0.86);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.compact-card {
  grid-template-columns: minmax(72px, 78px) minmax(0, 1fr);
  min-height: 132px;
}

.recommendation-rank {
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(49, 195, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.68);
  padding: 10px;
}

.recommendation-rank span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recommendation-rank strong {
  margin-top: 8px;
  color: var(--negative);
  font-size: 20px;
  line-height: 1;
}

.recommendation-rank small {
  margin-top: 8px;
  border: 1px solid rgba(33, 209, 137, 0.22);
  border-radius: 999px;
  color: #9df6cf;
  background: rgba(33, 209, 137, 0.08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.recommendation-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

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

.recommendation-copy strong {
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-copy em {
  max-width: 180px;
  overflow: hidden;
  border: 1px solid rgba(247, 201, 72, 0.22);
  border-radius: 999px;
  color: var(--warning);
  background: rgba(247, 201, 72, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-copy p {
  margin: 0;
  color: #d7e8f8;
  font-size: 13px;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: anywhere;
}

.recommendation-copy small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recommendation-decision-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.recommendation-decision-copy.top {
  margin: 12px 0 4px;
}

.recommendation-decision-copy p {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
  color: #d7e8f8;
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recommendation-decision-copy span {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 999px;
  color: #78d6ff;
  background: rgba(125, 211, 252, 0.06);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
  text-align: center;
  white-space: nowrap;
}

.concept-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.concept-tag-row.compact {
  gap: 6px;
}

.concept-tag-row span {
  border: 1px solid rgba(33, 209, 137, 0.24);
  border-radius: 999px;
  background: rgba(33, 209, 137, 0.08);
  color: #8df7c5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.quality-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.quality-tag-row span {
  border: 1px solid rgba(247, 201, 72, 0.32);
  border-radius: 999px;
  background: rgba(247, 201, 72, 0.09);
  color: #ffe49a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
}

.recommendation-signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.recommendation-signal-row.compact {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.recommendation-signal-row span {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.06);
  color: #b9cde0;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-performance-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 9px;
}

.recommendation-performance-line span:not(.performance-pill),
.recommendation-performance-line strong {
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 999px;
  background: rgba(4, 16, 29, 0.45);
  color: #b9cde0;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.recommendation-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.recommendation-card-actions .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.recommendation-card-actions .detail-action {
  box-shadow: 0 10px 24px rgba(49, 195, 255, 0.18);
}

.industry-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.industry-selector.elevated {
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.45);
  padding: 8px;
}

.industry-selector button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 19, 38, 0.7);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 7px 11px;
}

.industry-selector button.active,
.industry-selector button:hover {
  border-color: var(--primary);
  color: #ffffff;
  background: rgba(49, 195, 255, 0.14);
}

.industry-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  border: 1px solid rgba(33, 209, 137, 0.18);
  border-radius: 8px;
  background: rgba(33, 209, 137, 0.07);
  padding: 12px;
}

.industry-focus span,
.industry-focus small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.industry-focus strong {
  color: var(--negative);
  font-size: 20px;
}

.industry-focus small {
  grid-column: 1 / -1;
}

.empty-recommendation {
  border: 1px dashed rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(8, 19, 38, 0.46);
  padding: 18px;
  text-align: center;
}

.monitor-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow);
  padding: 20px;
  backdrop-filter: blur(18px);
}

.monitor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
  gap: 20px;
  align-items: end;
}

.monitor-header h2 {
  font-size: 26px;
}

.monitor-header p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.monitor-filter {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 120px;
  gap: 10px;
  align-items: end;
}

.sync-speed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.sync-speed-grid article {
  color: var(--primary);
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.12), transparent 48%),
    rgba(8, 19, 38, 0.66);
}

.sync-speed-grid article:nth-child(2) {
  color: var(--negative);
}

.sync-speed-grid article:nth-child(3) {
  color: var(--warning);
}

.sync-speed-grid article:nth-child(4) {
  color: var(--positive);
}

.sync-speed-grid article:nth-child(5) {
  color: var(--muted);
}

.sync-speed-grid article.sync-alert-card {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.18), transparent 48%),
    rgba(8, 19, 38, 0.72);
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sync-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(8, 19, 38, 0.88);
}

.sync-table th,
.sync-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  white-space: nowrap;
}

.sync-table th {
  position: sticky;
  top: 0;
  background: #0b1c31;
  color: #8fdcff;
  font-size: 13px;
}

.sync-table tr:last-child td {
  border-bottom: 0;
}

.sync-table tbody tr:hover {
  background: rgba(49, 195, 255, 0.08);
}

.sync-quality-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  color: #b9cde0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
}

.sync-quality-pill.quality-healthy {
  border-color: rgba(33, 209, 137, 0.3);
  background: rgba(33, 209, 137, 0.1);
  color: #9df6cf;
}

.sync-quality-pill.quality-warning {
  border-color: rgba(247, 201, 72, 0.34);
  background: rgba(247, 201, 72, 0.1);
  color: #ffe49a;
}

.sync-quality-pill.quality-critical,
.sync-quality-pill.quality-empty {
  border-color: rgba(255, 93, 115, 0.34);
  background: rgba(255, 93, 115, 0.1);
  color: #ffc0ca;
}

.table-empty {
  color: var(--muted);
  text-align: center;
}

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

.ops-card {
  min-width: 0;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 8px;
  background: rgba(3, 15, 30, 0.72);
  padding: 16px;
}

.ops-card-wide {
  grid-column: 1 / -1;
}

.monitor-header.compact {
  margin-bottom: 12px;
}

.monitor-header.compact h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

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

.ops-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(72px, 0.5fr) minmax(160px, 1fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(8, 20, 38, 0.76);
  padding: 12px;
}

.ops-row strong,
.ops-row span,
.ops-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-row strong {
  color: #f8fafc;
}

.ops-row span {
  font-weight: 800;
}

.ops-row small {
  color: #9fb3c8;
}

.ops-ok,
.ops-row.ops-ok {
  border-color: rgba(34, 197, 94, 0.42);
}

.ops-ok span,
.ops-row.ops-ok span {
  color: #34d399;
}

.ops-running,
.ops-row.ops-running {
  border-color: rgba(56, 189, 248, 0.42);
}

.ops-running span,
.ops-row.ops-running span {
  color: #38bdf8;
}

.ops-alert,
.ops-row.ops-alert {
  border-color: rgba(251, 113, 133, 0.42);
}

.ops-alert span,
.ops-row.ops-alert span {
  color: #fb7185;
}

.market-strip article,
.control-panel,
.main-panel,
.surface,
.metric-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.market-strip article {
  min-height: 86px;
  padding: 14px;
}

.market-strip span,
.metric-tile span,
.indicator-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.market-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.1;
}

.market-strip small,
.metric-tile small {
  display: block;
  margin-top: 5px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.control-panel,
.main-panel {
  box-shadow: var(--shadow);
}

.control-panel {
  position: sticky;
  top: 16px;
  padding: 18px;
  overflow: hidden;
}

.control-panel::before,
.main-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(49, 195, 255, 0.12), transparent 32%, rgba(33, 209, 137, 0.08));
  opacity: 0.75;
}

.main-panel {
  min-height: 590px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.control-panel > *,
.main-panel > * {
  position: relative;
  z-index: 1;
}

.panel-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  font-size: 18px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 15px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
}

.panel-heading.compact {
  margin-bottom: 10px;
}

.query-form,
.fetch-form {
  display: grid;
  gap: 12px;
}

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

.form-row {
  gap: 10px;
}

label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--primary);
  background: rgba(8, 19, 38, 0.98);
  box-shadow: 0 0 0 3px rgba(49, 195, 255, 0.16), var(--glow);
}

.message {
  min-height: 52px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 7px;
  background: rgba(8, 19, 38, 0.66);
  color: #b8ddf4;
  padding: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.watchlist {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.watchlist button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 19, 38, 0.58);
  color: var(--text);
  padding: 0 11px;
  margin-top: 8px;
  text-align: left;
}

.watchlist button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(49, 195, 255, 0.12);
  box-shadow: var(--glow);
  transform: translateX(3px);
}

.watchlist .watchlist-add {
  border-color: rgba(33, 209, 137, 0.34);
  color: var(--negative);
}

.watchlist .paper-entry-button {
  border-color: rgba(49, 195, 255, 0.38);
  color: var(--primary);
  background: rgba(49, 195, 255, 0.1);
}

.watchlist-group {
  margin-top: 12px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.36);
  padding: 9px;
}

.watchlist-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.watchlist-caption strong {
  color: #ffffff;
}

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

.watchlist .watchlist-row button {
  margin-top: 0;
}

.watchlist .watchlist-symbol {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchlist .watchlist-remove {
  justify-content: center;
  border-color: rgba(255, 93, 115, 0.34);
  color: var(--positive);
  background: rgba(255, 93, 115, 0.08);
  padding: 0;
  text-align: center;
}

.watchlist .watchlist-remove:hover {
  color: #ffffff;
  background: rgba(255, 93, 115, 0.16);
  transform: none;
}

.quick-sector-panel {
  margin-top: 16px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.1), transparent 38%),
    rgba(8, 19, 38, 0.58);
  padding: 12px;
}

.quick-sector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.quick-sector-head strong {
  color: #ffffff;
  font-size: 14px;
}

.quick-sector-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.quick-sector-grid button {
  display: grid;
  gap: 3px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.66);
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.quick-sector-grid button:hover {
  border-color: var(--primary);
  background: rgba(49, 195, 255, 0.12);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.quick-sector-grid strong {
  color: #ffffff;
  font-size: 13px;
}

.quick-sector-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.upgrade-button {
  margin-top: 10px;
}

.guide-card {
  margin-top: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.14), rgba(8, 19, 38, 0.72));
  border: 1px solid rgba(247, 201, 72, 0.24);
  padding: 14px;
}

.guide-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.guide-card p {
  color: #d8c38b;
  font-size: 13px;
  line-height: 1.65;
}

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

.surface {
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.result-header {
  justify-content: space-between;
  gap: 18px;
}

.advice-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 25, 43, 0.96), rgba(8, 19, 38, 0.72));
  padding: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.advice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.08), transparent 58% 100%);
  transform: translateX(-100%);
  animation: sheen 6s ease-in-out infinite;
}

.advice-card h2 {
  max-width: 720px;
  font-size: 26px;
  line-height: 1.25;
}

.advice-card p {
  max-width: 700px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.advice-bullish {
  border-color: rgba(255, 93, 115, 0.42);
  box-shadow: var(--shadow), 0 0 42px rgba(255, 93, 115, 0.12);
}

.advice-bearish {
  border-color: rgba(33, 209, 137, 0.42);
  box-shadow: var(--shadow), 0 0 42px rgba(33, 209, 137, 0.12);
}

.advice-watch {
  border-color: rgba(49, 195, 255, 0.42);
  box-shadow: var(--shadow), 0 0 42px rgba(49, 195, 255, 0.12);
}

.advice-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 132px;
}

.advice-side strong {
  font-size: 22px;
}

.advice-side span {
  color: var(--muted);
  font-size: 13px;
}

.strategy-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 25, 43, 0.98), rgba(8, 19, 38, 0.78)),
    radial-gradient(circle at 86% 18%, rgba(49, 195, 255, 0.18), transparent 32%);
  padding: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.strategy-brief::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.08), transparent 58% 100%);
  transform: translateX(-100%);
  animation: sheen 6s ease-in-out infinite;
}

.brief-copy,
.brief-score,
.insight-card {
  position: relative;
  z-index: 1;
}

.brief-copy h2 {
  max-width: 780px;
  font-size: 28px;
  line-height: 1.24;
}

.brief-copy p {
  margin-top: 10px;
  color: #b8ddf4;
  font-weight: 800;
  line-height: 1.55;
}

.brief-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.brief-actions .button {
  width: auto;
}

.brief-score {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.64);
  padding: 14px;
}

.brief-score strong {
  font-size: 44px;
  line-height: 1;
}

.brief-score span:not(.status-badge) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

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

.insight-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%),
    rgba(8, 19, 38, 0.68);
  padding: 16px;
  overflow: hidden;
}

.insight-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.insight-card strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.insight-card p {
  margin-top: 9px;
  color: #b8cfe1;
  font-size: 13px;
  line-height: 1.55;
}

.paper-trade-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  border-color: rgba(33, 209, 137, 0.3);
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.13), transparent 36%),
    rgba(8, 19, 38, 0.86);
}

.quick-paper-panel {
  width: min(100%, 1180px);
  margin: 0 auto 14px;
  align-items: stretch;
  text-align: left;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.paper-trade-copy {
  min-width: 0;
}

.quick-paper-panel .paper-trade-copy {
  display: grid;
  align-content: center;
}

.paper-trade-copy p {
  color: #b8ddf4;
  line-height: 1.6;
  max-width: 720px;
}

.paper-trade-copy small {
  display: block;
  margin-top: 9px;
  color: var(--negative);
  font-size: 12px;
  font-weight: 900;
}

.quick-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-entry-tags span {
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 999px;
  background: rgba(49, 195, 255, 0.1);
  color: #c8ecff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.quick-entry-reason {
  margin-top: 12px;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.quick-entry-reason strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
}

.quick-entry-reason p {
  margin-top: 5px;
  color: #b8cfe1;
  font-size: 13px;
  line-height: 1.55;
}

.quick-paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.paper-trade-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), transparent 46%),
    rgba(4, 16, 29, 0.62);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.paper-trade-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #9cc6dd;
  font-size: 12px;
  font-weight: 900;
}

.paper-order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.quick-paper-panel .paper-trade-form {
  align-self: stretch;
  justify-content: stretch;
}

.paper-submit-button {
  min-height: 48px;
  width: 100%;
  justify-content: center;
  white-space: normal;
  line-height: 1.2;
}

.paper-form-hint {
  color: #9cc6dd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.paper-account-mini {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-metrics {
  margin-top: 2px;
}

.company-profile-card {
  display: grid;
  gap: 14px;
}

.stock-detail-panel {
  display: grid;
  width: 100%;
  gap: 16px;
  text-align: left;
}

.stock-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stock-detail-head h2 {
  margin-top: 6px;
  color: #ffffff;
  font-size: 24px;
}

.stock-detail-head p {
  margin-top: 8px;
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

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

.detail-loading {
  border: 1px dashed rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.52);
  color: var(--muted);
  font-weight: 900;
  padding: 22px;
  text-align: center;
}

.detail-profile-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-profile-line span {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.07);
  color: #cde7f8;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

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

.detail-market-overview article {
  min-height: 94px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(49, 195, 255, 0.1), transparent 54%),
    rgba(8, 19, 38, 0.62);
  padding: 12px;
}

.detail-market-overview span,
.detail-market-overview small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.detail-market-overview strong {
  display: block;
  margin: 8px 0 7px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.1;
}

.detail-market-overview .up strong {
  color: #ff6f82;
}

.detail-market-overview .down strong {
  color: #2fe39b;
}

.detail-market-overview .flat strong {
  color: #d8e8f5;
}

.detail-decision-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.detail-fund-card,
.detail-signal-card {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.08), transparent 52%),
    rgba(8, 19, 38, 0.62);
  padding: 14px;
}

.detail-fund-card,
.detail-signal-card {
  display: grid;
  gap: 12px;
}

.detail-fund-card strong,
.detail-signal-card > div:first-child strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 18px;
}

.detail-fund-card p {
  color: #d9e9f6;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
}

.fund-flow-values {
  display: grid;
  gap: 7px;
}

.fund-flow-values span {
  border: 1px solid rgba(125, 211, 252, 0.13);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.42);
  color: #cfe7f7;
  font-size: 12px;
  font-weight: 900;
  padding: 8px;
}

.detail-fund-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.detail-fund-card.fund-outflow_risk {
  border-color: rgba(255, 93, 115, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.13), transparent 52%),
    rgba(24, 8, 18, 0.68);
}

.detail-fund-card.fund-inflow {
  border-color: rgba(33, 209, 137, 0.28);
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.12), transparent 52%),
    rgba(8, 19, 38, 0.62);
}

.detail-fund-card.fund-unavailable,
.detail-fund-card.fund-missing {
  border-style: dashed;
}

.detail-signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.detail-signal-list div {
  border: 1px solid rgba(125, 211, 252, 0.13);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.42);
  padding: 10px;
}

.detail-signal-list span,
.detail-signal-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.detail-signal-list strong {
  display: block;
  margin: 5px 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.detail-signal-list .signal-strong strong {
  color: #ff7186;
}

.detail-signal-list .signal-risk strong {
  color: #2fe39b;
}

.detail-signal-list .signal-watch strong {
  color: #f7c948;
}

.data-quality-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.1), transparent 48%),
    rgba(8, 19, 38, 0.62);
  padding: 11px 12px;
}

.data-quality-banner strong {
  color: #ffffff;
  font-size: 14px;
}

.data-quality-banner span {
  color: #d7e8f8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.data-quality-banner small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.data-quality-banner.quality-healthy {
  border-color: rgba(33, 209, 137, 0.26);
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.12), transparent 48%),
    rgba(8, 19, 38, 0.62);
}

.data-quality-banner.quality-warning {
  border-color: rgba(247, 201, 72, 0.32);
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.12), transparent 48%),
    rgba(8, 19, 38, 0.62);
}

.data-quality-banner.quality-critical,
.data-quality-banner.quality-empty {
  border-color: rgba(255, 93, 115, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.12), transparent 48%),
    rgba(8, 19, 38, 0.62);
}

.trade-status-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.1), transparent 48%),
    rgba(8, 19, 38, 0.62);
  padding: 11px 12px;
}

.trade-status-banner strong {
  color: #ffffff;
  font-size: 14px;
}

.trade-status-banner span {
  color: #d7e8f8;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.trade-status-banner small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.trade-status-banner.trade-normal {
  border-color: rgba(33, 209, 137, 0.28);
  background:
    linear-gradient(135deg, rgba(33, 209, 137, 0.12), transparent 48%),
    rgba(8, 19, 38, 0.62);
}

.trade-status-banner.trade-suspended {
  border-color: rgba(255, 93, 115, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 93, 115, 0.16), transparent 48%),
    rgba(24, 8, 18, 0.72);
}

.trade-status-banner.trade-suspended strong {
  color: #ff7286;
}

.trade-status-banner.trade-unknown {
  border-color: rgba(247, 201, 72, 0.34);
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.12), transparent 48%),
    rgba(8, 19, 38, 0.62);
}

.detail-kline-card {
  margin-top: 4px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.08), rgba(33, 209, 137, 0.04)),
    rgba(8, 19, 38, 0.72);
}

.kline-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.kline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.kline-header h3 {
  font-size: 22px;
}

.kline-header p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kline-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 8px;
  min-width: min(100%, 430px);
}

.kline-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.62);
  padding: 10px;
}

.kline-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kline-summary strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.kline-layer-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.kline-layer-switch button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 19, 38, 0.62);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 11px;
}

.kline-layer-switch button.active,
.kline-layer-switch button:hover {
  border-color: rgba(49, 195, 255, 0.48);
  color: #ffffff;
  background: rgba(49, 195, 255, 0.14);
}

.kline-chart-shell {
  overflow: auto;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 16, 29, 0.26), rgba(8, 19, 38, 0.74)),
    rgba(4, 16, 29, 0.54);
  padding: 10px;
}

.kline-chart {
  display: block;
  min-width: 720px;
  width: 100%;
  height: auto;
}

.kline-grid line,
.kline-volume-baseline {
  stroke: rgba(125, 211, 252, 0.14);
  stroke-width: 1;
}

.kline-grid text,
.kline-labels text {
  fill: #7894aa;
  font-size: 12px;
  font-weight: 800;
}

.kline-grid text {
  text-anchor: end;
}

.kline-labels text {
  text-anchor: middle;
}

.kline-close-path {
  fill: none;
  stroke: rgba(247, 201, 72, 0.72);
  stroke-width: 1.2;
  opacity: 0.46;
  vector-effect: non-scaling-stroke;
}

.kline-ma-lines path {
  fill: none;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.kline-ma-lines .ma-5,
.kline-legend .ma-5::before {
  stroke: #f7c948;
  background: #f7c948;
}

.kline-ma-lines .ma-10,
.kline-legend .ma-10::before {
  stroke: #31c3ff;
  background: #31c3ff;
}

.kline-ma-lines .ma-20,
.kline-legend .ma-20::before {
  stroke: #a78bfa;
  background: #a78bfa;
}

.kline-ma-lines .ma-60,
.kline-legend .ma-60::before {
  stroke: #f97316;
  background: #f97316;
}

.kline-key-levels line {
  stroke-width: 1.2;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
}

.kline-key-levels text {
  font-size: 12px;
  font-weight: 900;
}

.kline-key-levels .level-resistance line,
.kline-key-levels .level-resistance text {
  stroke: rgba(255, 93, 115, 0.72);
  fill: #ff8a9b;
}

.kline-key-levels .level-support line,
.kline-key-levels .level-support text {
  stroke: rgba(33, 209, 137, 0.72);
  fill: #68e6b3;
}

.kline-candle line {
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.kline-candle rect {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.candle-up line,
.candle-up rect {
  fill: rgba(255, 93, 115, 0.62);
  stroke: rgba(255, 93, 115, 0.96);
}

.candle-down line,
.candle-down rect {
  fill: rgba(33, 209, 137, 0.58);
  stroke: rgba(33, 209, 137, 0.94);
}

.kline-volume {
  opacity: 0.36;
  stroke-width: 0;
}

.kline-volume.volume-up {
  fill: rgba(255, 93, 115, 0.62);
}

.kline-volume.volume-down {
  fill: rgba(33, 209, 137, 0.58);
}

.kline-volume-alerts circle {
  stroke: rgba(4, 16, 29, 0.92);
  stroke-width: 1.5;
}

.kline-volume-alerts text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
}

.kline-volume-alerts .volume-alert-high circle {
  fill: #ff5d73;
}

.kline-volume-alerts .volume-alert-low circle {
  fill: #21d189;
}

.kline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 19, 38, 0.48);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.kline-legend span::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
}

.kline-insight {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.1), transparent 38%),
    rgba(8, 19, 38, 0.54);
  padding: 12px;
}

.kline-insight article {
  grid-row: span 2;
}

.kline-insight span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.kline-insight strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 16px;
}

.kline-insight p,
.kline-insight small {
  color: #bdd3e5;
  font-size: 13px;
  line-height: 1.5;
}

.kline-insight small {
  grid-column: 2 / -1;
  color: var(--muted);
}

.company-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.company-profile-header h3 {
  font-size: 22px;
}

.company-profile-header p,
.company-profile-header > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.company-profile-header p {
  margin-top: 7px;
}

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

.company-profile-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 38, 0.58);
  padding: 13px;
}

.company-profile-grid span,
.company-profile-text strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.company-profile-grid strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}

.company-profile-text {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.company-profile-text p {
  margin-top: 8px;
  color: #bfd6e8;
  font-size: 14px;
  line-height: 1.7;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.result-header h2 {
  font-size: 22px;
}

.status-bullish {
  background: rgba(255, 93, 115, 0.14);
  color: var(--positive);
  border: 1px solid rgba(255, 93, 115, 0.32);
}

.status-bearish {
  background: rgba(33, 209, 137, 0.14);
  color: var(--negative);
  border: 1px solid rgba(33, 209, 137, 0.32);
}

.status-watch {
  background: rgba(49, 195, 255, 0.14);
  color: var(--info);
  border: 1px solid rgba(49, 195, 255, 0.32);
}

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

.metric-tile {
  min-height: 92px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.metric-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 195, 255, 0.46);
  box-shadow: var(--glow);
}

.metric-tile::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--negative), transparent);
  opacity: 0.72;
}

.metric-tile strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.1;
  color: #ffffff;
}

.risk-high {
  border-color: rgba(255, 93, 115, 0.42);
}

.risk-high::after {
  background: linear-gradient(90deg, var(--positive), #f7c948, transparent);
}

.risk-medium {
  border-color: rgba(247, 201, 72, 0.38);
}

.risk-medium::after {
  background: linear-gradient(90deg, #f7c948, var(--primary), transparent);
}

.risk-neutral {
  border-color: rgba(49, 195, 255, 0.34);
}

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

.decision-card {
  min-height: 132px;
}

.decision-card p {
  color: var(--muted);
  line-height: 1.58;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.surface h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

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

.indicator-list div {
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.indicator-list div:hover {
  border-color: rgba(125, 211, 252, 0.42);
  transform: translateY(-2px);
}

.indicator-list strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.evidence-list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.evidence-list:last-child {
  margin-bottom: 0;
}

.evidence-list li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: #d7e8f8;
}

.ai-insight {
  border-color: rgba(49, 195, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(49, 195, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(11, 28, 49, 0.94), rgba(8, 19, 38, 0.9));
  box-shadow: var(--shadow), 0 0 48px rgba(49, 195, 255, 0.14);
}

.ai-insight-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.ai-insight-header h3 {
  margin-bottom: 0;
}

.ai-insight-header > span {
  border: 1px solid rgba(49, 195, 255, 0.28);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(49, 195, 255, 0.1);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ai-insight p {
  color: #dcecff;
  line-height: 1.65;
  margin-bottom: 14px;
}

.ai-note {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  padding-top: 10px;
  margin-top: 10px;
}

.ai-note span {
  color: var(--muted);
  line-height: 1.55;
}

.ai-error {
  margin-top: 12px;
  color: var(--negative);
  font-size: 13px;
}

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

.forecast-list article {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.forecast-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--negative));
}

.forecast-list strong,
.forecast-list span {
  display: block;
}

.forecast-list span {
  margin-top: 5px;
  color: var(--text);
}

.forecast-list p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.disclaimer {
  line-height: 1.6;
  font-size: 13px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 520px;
  text-align: center;
  border: 1px dashed rgba(125, 211, 252, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 24%, rgba(49, 195, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(14, 25, 43, 0.76), rgba(8, 19, 38, 0.92));
  padding: 28px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--negative));
  color: #04101d;
  font-weight: 900;
  margin-bottom: 14px;
  box-shadow: var(--glow);
}

.empty-state h2 {
  font-size: 22px;
}

.empty-state p {
  max-width: 520px;
  margin-top: 10px;
  line-height: 1.65;
}

.empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 130px);
  gap: 10px;
  margin-top: 20px;
}

.empty-grid div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 19, 38, 0.72);
  padding: 12px;
}

.empty-grid strong,
.empty-grid span {
  display: block;
}

.empty-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes scanPanel {
  0% {
    transform: translateX(-48%);
  }
  100% {
    transform: translateX(48%);
  }
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleY(0.88);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes sheen {
  0%,
  45% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .workspace-grid,
  .report-grid,
  .monitor-header,
  .decision-grid,
  .strategy-brief,
  .insight-row,
  .paper-trade-panel,
  .paper-trade-form,
  .paper-mode-switch,
  .company-profile-grid,
  .workbench-strip,
  .home-decision-hub,
  .home-after-close-panel,
  .home-hot-list,
  .sync-speed-grid,
  .ops-grid,
  .recommendation-hero,
  .recommendation-guide-strip,
  .trade-gate-board,
  .trade-gate-list,
  .recommendation-filter-copy,
  .recommendation-evaluation-card,
  .history-summary-grid.compact,
  .recommendation-date-detail-list article,
  .recommendation-history-card,
  .recommendation-review-card,
  .recommendation-layout,
  .recommendation-stat-grid,
  .review-insight-grid,
  .review-stat-grid,
  .recommendation-signal-row,
  .top-performance-grid,
  .period-return-row,
  .data-quality-banner,
  .trade-status-banner,
  .detail-market-overview,
  .detail-decision-grid,
  .detail-signal-list {
    grid-template-columns: 1fr;
  }

  .recommendation-filter-copy,
  .home-hot-head {
    align-items: start;
    flex-direction: column;
  }

  .recommendation-filter-copy p,
  .home-hot-head small {
    text-align: left;
  }

  .data-quality-banner small,
  .trade-status-banner small {
    grid-column: auto;
    text-align: left;
    white-space: normal;
  }

  .after-close-poster {
    justify-self: start;
    max-width: 320px;
  }

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

  .paper-order-fields {
    grid-template-columns: 1fr;
  }

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

  .control-panel {
    position: static;
  }

  .hero-visual {
    min-height: 230px;
  }
}

@media (min-width: 981px) and (max-width: 1320px) {
  .quick-paper-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-paper-panel .paper-trade-copy {
    align-content: start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 20px, 1280px);
    padding-top: 14px;
  }

  .topbar,
  .topbar-actions,
  .result-header,
  .recommendation-header {
    align-items: stretch;
    flex-direction: column;
  }

  .market-strip,
  .market-ticker,
  .indicator-list,
  .empty-grid,
  .hero-search,
  .hero-decision-strip,
  .monitor-filter,
  .workbench-strip,
  .sync-speed-grid,
  .home-hot-list,
  .after-close-metrics,
  .recommendation-stat-grid,
  .recommendation-mode-bar,
  .recommendation-guide-strip,
  .recommendation-filter-copy,
  .recommendation-compare-card,
  .recommendation-section-title,
  .evaluation-default,
  .evaluation-window-grid,
  .evaluation-strategy-grid,
  .compare-grid,
  .history-summary-grid,
  .history-summary-grid.compact,
  .history-day-list,
  .history-industry-rank,
  .recommendation-date-detail-list article,
  .review-insight-grid,
  .review-stat-grid {
    grid-template-columns: 1fr;
  }

  .history-detail-head {
    align-items: start;
    flex-direction: column;
  }

  .metrics-grid,
  .quota-grid,
  .paper-account-grid,
  .paper-account-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .user-drawer {
    width: 100vw;
  }

  .hero-copy h2 {
    font-size: 25px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-visual {
    display: none;
  }

  .form-row {
    flex-direction: column;
  }

  .advice-card,
  .strategy-brief {
    align-items: stretch;
  }

  .advice-side,
  .brief-score {
    justify-items: start;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .brief-actions {
    display: grid;
  }

  .company-profile-header {
    display: grid;
  }

  .kline-header {
    display: grid;
  }

  .kline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .kline-layer-switch {
    justify-content: flex-start;
  }

  .kline-insight {
    grid-template-columns: 1fr;
  }

  .kline-insight article,
  .kline-insight small {
    grid-column: auto;
    grid-row: auto;
  }

  .brief-actions .button {
    width: 100%;
  }

  .main-panel,
  .control-panel,
  .recommendation-panel {
    padding: 14px;
  }

  .recommendation-card,
  .compact-card {
    grid-template-columns: 1fr;
  }

  .recommendation-card-title {
    grid-template-columns: 1fr;
  }

  .recommendation-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recommendation-card-actions .button {
    width: 100%;
  }

  .stock-detail-head,
  .stock-detail-actions {
    display: grid;
    width: 100%;
    justify-content: stretch;
  }

  .stock-detail-actions .button {
    width: 100%;
  }

  .recommendation-section-title {
    align-items: stretch;
  }

  .recommendation-section-title p {
    max-width: none;
    text-align: left;
  }

  .recommendation-guide-strip article {
    min-height: 72px;
  }

  .home-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-card-actions .button,
  .home-decision-card > .button,
  .poster-link {
    width: 100%;
  }

  .home-after-close-panel {
    padding: 14px;
  }

  .recommendation-history-card {
    padding: 14px;
  }

  .history-day-list,
  .history-industry-rank {
    grid-column: auto;
  }

  .after-close-copy strong {
    font-size: 22px;
  }

  .after-close-poster {
    max-width: none;
  }
}
