:root {
  --bg: #050914;
  --sidebar: #080e1d;
  --panel: #0d1728;
  --panel-soft: #111d33;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --purple: #7c3aed;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --cyan: #22d3ee;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 24% 0%, rgba(59, 130, 246, 0.12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(124, 58, 237, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 14, 29, 0.98), rgba(5, 9, 20, 0.98));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(124, 58, 237, 0.82));
  color: #dbeafe;
  font-weight: 950;
}

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

.brand strong {
  font-size: 18px;
}

.brand span:not(.brand-mark),
.sidebar-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #cbd5e1;
  padding: 0 13px;
  font-weight: 850;
  text-decoration: none;
}

.side-nav a.active,
.side-nav a:hover {
  border-color: rgba(91, 141, 239, 0.52);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(124, 58, 237, 0.13));
  color: var(--text);
}

.sub-nav {
  display: grid;
  gap: 12px;
  margin: 2px 0 10px 26px;
  padding-left: 14px;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-note {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.sidebar-plan {
  margin-top: auto;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  padding: 14px;
}

.sidebar-plan strong {
  font-size: 14px;
}

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

.sidebar-plan + .sidebar-note {
  margin-top: 0;
}

.main-shell {
  min-width: 0;
  padding: 28px 30px 42px;
}

.content {
  display: grid;
  gap: 20px;
}

.console-topbar {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.greeting-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.greeting-card h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.greeting-card p {
  margin: 0;
  color: var(--muted);
}

.day-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.92) 0 18%, transparent 19%),
    radial-gradient(circle, rgba(250, 204, 21, 0.14), rgba(59, 130, 246, 0.10));
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.global-search {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(5, 12, 25, 0.72);
  padding: 0 16px;
}

.global-search span {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 999px;
  position: relative;
}

.global-search span::after {
  content: "";
  width: 7px;
  height: 2px;
  background: #94a3b8;
  position: absolute;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}

.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-button {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
}

.hero-copy {
  display: none;
}

.hero,
.page-title {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(17, 29, 51, 0.92), rgba(8, 14, 29, 0.72));
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 188px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: 44px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.hero p,
.page-title p,
.section-head p,
.task-main p,
.search-card p,
.stock-card p,
.compact-card span,
.empty-state {
  color: var(--muted);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.tab-button,
.icon-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 900;
  background: transparent;
}

.primary-button {
  border-color: rgba(147, 197, 253, 0.32);
  background: linear-gradient(135deg, var(--blue), #2563eb);
}

.secondary-button,
.ghost-button,
.tab-button,
.icon-button {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.62);
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.message-box,
.error-box {
  margin-bottom: 12px;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 800;
}

.message-box {
  border: 1px solid rgba(91, 141, 239, 0.34);
  background: rgba(91, 141, 239, 0.1);
  color: #dbeafe;
}

.error-box {
  border: 1px solid rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.hidden {
  display: none !important;
}

.summary-grid,
.action-summary {
  display: grid;
  gap: 10px;
}

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

.action-summary {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.summary-card,
.action-card,
.panel,
.task-card,
.stock-card,
.search-card,
.compact-card,
.routine-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 29, 51, 0.94), rgba(13, 23, 40, 0.96));
  box-shadow: var(--shadow);
}

.summary-card,
.action-card {
  min-height: 112px;
  padding: 18px;
}

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

.summary-card strong,
.action-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
}

.summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.summary-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-card i {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  opacity: 0.92;
  flex: 0 0 auto;
}

.tone-briefcase i {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.42), rgba(34, 197, 94, 0.14));
}

.tone-chart i {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.46), rgba(124, 58, 237, 0.14));
}

.tone-star i {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.42), rgba(245, 158, 11, 0.14));
}

.tone-check i {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.52), rgba(59, 130, 246, 0.14));
}

.action-entry-review {
  border-color: rgba(34, 197, 94, 0.38);
}

.action-observe {
  border-color: rgba(245, 158, 11, 0.38);
}

.action-hold {
  border-color: rgba(59, 130, 246, 0.38);
}

.action-stoploss-review {
  border-color: rgba(239, 68, 68, 0.38);
}

.action-take-profit-review {
  border-color: rgba(168, 85, 247, 0.38);
}

.action-wait {
  border-color: rgba(148, 163, 184, 0.30);
}

.action-insufficient-data {
  border-color: rgba(100, 116, 139, 0.38);
}

.panel,
.task-card,
.stock-card,
.search-card,
.compact-card,
.routine-panel {
  padding: 18px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

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

.image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 1fr);
  gap: 16px;
}

.action-board {
  display: grid;
  gap: 14px;
}

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

.board-head h2 {
  margin: 0;
}

.board-head > span {
  color: var(--muted);
  font-size: 13px;
}

.action-board-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  gap: 12px;
}

.mini-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.46);
  padding: 14px;
}

.mini-stack {
  display: grid;
  gap: 12px;
}

.insight-card {
  display: grid;
  gap: 14px;
  border-color: rgba(91, 141, 239, 0.34);
  background:
    linear-gradient(135deg, rgba(17, 29, 51, 0.96), rgba(11, 18, 32, 0.96));
}

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

.insight-head h2 {
  margin: 0;
}

.insight-head > span {
  border: 1px solid rgba(147, 197, 253, 0.32);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

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

.insight-metrics span,
.insight-lines span {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(8, 14, 29, 0.36);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 10px 12px;
}

.insight-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

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

.insight-lines span::before {
  content: "✓ ";
  color: var(--green);
}

.insight-recommendation {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 12px;
}

.insight-recommendation small,
.insight-empty {
  color: var(--muted);
  font-weight: 850;
}

.insight-recommendation strong {
  color: #e0f2fe;
  font-size: 15px;
}

.learning-card {
  display: grid;
  gap: 16px;
  border-color: rgba(124, 58, 237, 0.34);
}

.learning-summary {
  margin: 0;
  color: #e0f2fe;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
}

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

.learning-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.36);
  padding: 14px;
}

.learning-grid h3 {
  margin: 0 0 4px;
}

.learning-grid span {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

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

.validation-grid {
  display: grid;
  gap: 14px;
}

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

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

.validation-card-head h2 {
  margin: 0;
  font-size: 24px;
}

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

.validation-score {
  min-width: 154px;
  text-align: right;
}

.validation-score span,
.validation-score em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.validation-score strong {
  display: block;
  color: #bbf7d0;
  font-size: 38px;
  line-height: 1;
}

.validation-warning {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(239, 68, 68, 0.34);
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  padding: 10px 12px;
}

.validation-warning strong,
.validation-warning span {
  font-size: 12px;
  font-weight: 900;
}

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

.validation-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.validation-score-row span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.validation-score-row .cap {
  border-color: rgba(245, 158, 11, 0.32);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.10);
}

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

.validation-perspective article,
.validation-indicators span,
.score-detail {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(8, 14, 29, 0.36);
  padding: 10px 12px;
}

.validation-perspective span,
.validation-indicators b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.validation-perspective strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
}

.validation-perspective p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.validation-indicators span {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
}

.score-detail-list {
  display: grid;
  gap: 7px;
}

.score-detail {
  display: grid;
  grid-template-columns: 62px minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.score-detail strong {
  color: #cbd5e1;
  font-size: 13px;
}

.score-detail span {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

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

.score-plus strong {
  color: #86efac;
}

.score-minus strong {
  color: #fca5a5;
}

.score-zero strong {
  color: #cbd5e1;
}

.score-cap {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.08);
}

.score-cap strong,
.score-cap p {
  color: #fde68a;
}

.top-list-board,
.market-board,
.news-board {
  display: grid;
  gap: 12px;
}

.top-table {
  display: grid;
}

.top-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 104px 104px 86px;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

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

.top-row strong,
.top-row small {
  display: block;
}

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

.top-header {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: #fcd34d;
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.1;
}

.score-badge small {
  margin: 2px 0 0;
  color: #cbd5e1;
  font-size: 10px;
}

.market-board {
  grid-column: 1;
}

.news-board {
  grid-column: 2;
}

.command-panel {
  grid-row: span 2;
}

.task-list,
.compact-list {
  display: grid;
  gap: 8px;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  box-shadow: none;
  padding: 12px;
}

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

.task-card-top time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.task-main h3 {
  margin: 0 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-main p {
  margin: 0;
  font-size: 12px;
}

.policy-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.46);
  padding: 6px 8px;
}

.policy-line span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-line strong {
  font-size: 12px;
  white-space: nowrap;
}

.policy-line em {
  color: #bfdbfe;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.policy-line small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.priority-high {
  border-left: 4px solid var(--green);
}

.priority-mid {
  border-left: 4px solid var(--yellow);
}

.priority-low {
  border-left: 4px solid rgba(148, 163, 184, 0.58);
}

.why {
  margin: 0;
  color: #dbeafe;
  line-height: 1.5;
}

.action-reason {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(8, 14, 29, 0.34);
  padding: 7px 8px;
}

.action-reason span {
  color: #dbeafe;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: #cbd5e1;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.theme-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.sector-badge,
.theme-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: #bfdbfe;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.sector-badge {
  border-color: rgba(168, 85, 247, 0.30);
  background: rgba(124, 58, 237, 0.14);
  color: #ddd6fe;
}

.sector-badge.muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
}

.theme-chip.primary {
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.analysis-classification-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.analysis-classification-row .theme-chip-row {
  margin-top: 0;
}

.mini-button {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.sector-summary-list,
.theme-editor,
.theme-editor-list {
  display: grid;
  gap: 10px;
}

.sector-summary-list article,
.theme-editor-stock,
.theme-row {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.38);
  padding: 12px;
}

.sector-summary-list strong,
.sector-summary-list span,
.theme-editor-stock strong,
.theme-editor-stock span {
  display: block;
}

.sector-summary-list span,
.theme-editor-stock span,
.theme-editor-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.theme-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.1fr) minmax(100px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.theme-row label {
  display: grid;
  gap: 6px;
}

.theme-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.theme-row select,
.theme-row input[type="text"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.52);
  color: var(--text);
  padding: 0 10px;
}

.theme-primary-check {
  display: flex !important;
  grid-template-columns: auto auto;
  gap: 7px !important;
  align-items: center;
  min-height: 38px;
}

.theme-memo-field {
  grid-column: 1 / -1;
}

.compact-actions {
  gap: 5px;
}

.compact-actions .ghost-button,
.compact-actions .secondary-button,
.compact-actions .danger-button {
  min-height: 30px;
  border-radius: 9px;
  padding: 0 9px;
  font-size: 12px;
}

.compact-actions .icon-danger {
  width: 32px;
  padding: 0;
  font-size: 16px;
}

.market-panel {
  grid-column: 2;
}

.market-summary,
.market-ticker {
  display: grid;
  gap: 10px;
}

.market-summary article,
.market-ticker article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.44);
  padding: 14px;
}

.market-ticker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.market-summary strong,
.market-ticker strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.market-summary p,
.market-ticker small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.news-list {
  display: grid;
}

.news-list span {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbeafe;
  line-height: 1.5;
  padding: 12px 0;
}

.news-list span:last-child {
  border-bottom: 0;
}

.action-pill.action-entry-review {
  color: #86efac;
}

.action-pill.action-observe {
  color: #fcd34d;
}

.action-pill.action-hold {
  color: #93c5fd;
}

.action-pill.action-stoploss-review {
  color: #fca5a5;
}

.action-pill.action-take-profit-review {
  color: #d8b4fe;
}

.action-pill.action-wait {
  color: #cbd5e1;
}

.action-pill.action-insufficient-data {
  color: #94a3b8;
}

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

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

.premium-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(440px, 0.9fr) auto;
  gap: 22px;
  align-items: stretch;
  border: 1px solid rgba(147, 197, 253, 0.20);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(10, 18, 34, 0.94)),
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.18), transparent 32%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.premium-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.22;
}

.premium-hero-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.premium-hero-copy strong {
  display: block;
  max-width: 760px;
  color: #e0f2fe;
  font-size: 17px;
  line-height: 1.65;
}

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

.premium-hero-metrics article,
.today-position-levels span,
.today-position-status span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.42);
  padding: 13px;
}

.premium-hero-metrics span,
.today-position-levels span,
.today-position-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.premium-hero-metrics strong,
.today-position-levels strong,
.today-position-status strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.premium-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.routine-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.scheduler-action-badge,
.scheduler-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #cbd5e1;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.scheduler-action-badge {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 38px;
  cursor: pointer;
}

.scheduler-action-badge small {
  color: rgba(203, 213, 225, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.scheduler-settings {
  display: grid;
  gap: 14px;
}

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

.scheduler-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scheduler-status-head h2 {
  margin: 0;
  font-size: 24px;
}

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

.scheduler-status-grid article {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.42);
  padding: 12px;
}

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

.scheduler-status-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.scheduler-alert {
  margin: 0;
  border: 1px solid rgba(248, 113, 113, 0.30);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.scheduler-message {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.36);
  color: #cbd5e1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.scheduler-success {
  border-color: rgba(34, 197, 94, 0.24);
}

.scheduler-success.scheduler-badge,
.scheduler-success.scheduler-action-badge {
  border-color: rgba(34, 197, 94, 0.30);
  background: rgba(22, 101, 52, 0.18);
  color: #bbf7d0;
}

.scheduler-warning.scheduler-badge,
.scheduler-warning.scheduler-action-badge,
.scheduler-pending.scheduler-badge,
.scheduler-pending.scheduler-action-badge {
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(113, 63, 18, 0.18);
  color: #fef08a;
}

.scheduler-running {
  border-color: rgba(96, 165, 250, 0.30);
}

.scheduler-running.scheduler-badge,
.scheduler-running.scheduler-action-badge {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(30, 64, 175, 0.22);
  color: #bfdbfe;
}

.scheduler-failed {
  border-color: rgba(248, 113, 113, 0.34);
}

.scheduler-failed.scheduler-badge,
.scheduler-failed.scheduler-action-badge {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.scheduler-disabled.scheduler-badge,
.scheduler-disabled.scheduler-action-badge {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(71, 85, 105, 0.16);
  color: #cbd5e1;
}

.premium-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: 20px;
  align-items: start;
}

.premium-main-stack,
.premium-side-stack {
  display: grid;
  gap: 18px;
}

.today-position-card {
  display: grid;
  gap: 16px;
  border-radius: 18px;
  border-color: rgba(34, 197, 94, 0.24);
}

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

.today-position-head h2 {
  margin: 0;
  font-size: 24px;
}

.today-position-head span {
  color: var(--muted);
  font-weight: 800;
}

.position-return {
  text-align: right;
}

.position-return strong {
  display: block;
  font-size: 30px;
  line-height: 1.05;
}

.position-return span {
  display: block;
  margin-top: 8px;
  color: #facc15;
  letter-spacing: 1px;
}

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

.today-position-status {
  grid-template-columns: 0.6fr 1.4fr;
}

.today-position-todo {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 14px;
}

.today-position-todo strong {
  font-size: 13px;
}

.today-position-todo span {
  color: #dbeafe;
  font-weight: 850;
}

.empty-position-card {
  border-color: rgba(148, 163, 184, 0.16);
}

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

.premium-action-grid .action-card {
  min-height: 120px;
  display: grid;
  align-content: space-between;
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.action-card i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #bfdbfe;
  font-style: normal;
  font-weight: 950;
}

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

.priority-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
}

.priority-chip.tone-high {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.priority-chip.tone-mid {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.priority-chip.tone-low {
  background: rgba(148, 163, 184, 0.13);
  color: #cbd5e1;
}

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

.top-watch-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(8, 14, 29, 0.36);
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-watch-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.top-watch-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-watch-card div span {
  color: #facc15;
  white-space: nowrap;
}

.top-watch-card p {
  margin: 0;
  color: #dbeafe;
  font-weight: 900;
}

.top-watch-card small,
.placeholder-copy {
  color: var(--muted);
  font-weight: 850;
}

.premium-learning-card {
  display: grid;
  gap: 12px;
  border-color: rgba(124, 58, 237, 0.26);
}

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

.learning-card-head h2 {
  margin: 0;
}

.learning-card-head > span {
  border: 1px solid rgba(168, 85, 247, 0.30);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  color: #ddd6fe;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
}

.premium-learning-card p {
  margin: 0;
  color: #e0f2fe;
  line-height: 1.7;
  font-weight: 850;
}

.panel:hover,
.summary-card:hover,
.action-card:hover,
.task-card:hover,
.top-watch-card:hover,
.stock-card:hover,
.search-card:hover {
  transform: scale(1.02);
}

.panel,
.summary-card,
.action-card,
.task-card,
.top-watch-card,
.stock-card,
.search-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button.active {
  border-color: rgba(91, 141, 239, 0.58);
  background: rgba(91, 141, 239, 0.16);
}

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

.stock-card,
.search-card {
  display: grid;
  gap: 12px;
}

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

.stock-card h3,
.search-card h3,
.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.trade-meta span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 14, 29, 0.32);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 8px;
}

.trade-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
}

.position-manager-card {
  gap: 12px;
}

.position-manager-card .stock-card-head strong {
  font-size: 22px;
}

.position-meta,
.position-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

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

.position-meta span,
.position-levels span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 14, 29, 0.34);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 8px;
}

.position-meta strong,
.position-levels strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
}

.holding-reason {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.46);
  padding: 10px;
}

.holding-reason strong {
  color: #f8fafc;
  font-size: 12px;
}

.holding-reason span {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
}

.trade-reason {
  margin: 0;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statistics-card {
  min-height: 104px;
}

.statistics-card strong {
  font-size: 25px;
}

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

.statistics-table {
  display: grid;
}

.statistics-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 52px 42px 42px 68px 72px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

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

.statistics-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.trade-sections {
  display: grid;
  gap: 16px;
}

.trade-section {
  display: grid;
  gap: 10px;
}

.compact-head {
  align-items: center;
  margin-bottom: 0;
}

.compact-head > strong {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  font-size: 13px;
}

.trade-position-card .button-row {
  justify-content: flex-end;
}

.profit-positive {
  color: #fca5a5 !important;
}

.profit-negative {
  color: #93c5fd !important;
}

.profit-neutral {
  color: #cbd5e1 !important;
}

.close-modal-card {
  width: min(560px, 100%);
}

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

.trade-close-summary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 14, 29, 0.38);
  padding: 14px;
}

.trade-close-summary strong {
  font-size: 18px;
}

.trade-close-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.close-form label {
  display: grid;
  gap: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}

.close-form input,
.close-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1020;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.close-form textarea {
  resize: vertical;
}

.close-form input:focus,
.close-form textarea:focus {
  border-color: rgba(91, 141, 239, 0.72);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-box input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1020;
  color: var(--text);
  padding: 0 18px;
  font-size: 18px;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(91, 141, 239, 0.72);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.76);
}

.modal-card {
  width: min(860px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 22px;
}

.modal-search {
  display: grid;
  gap: 12px;
}

.routine-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 12px;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.routine-panel p {
  margin: 4px 0 0;
  color: #bbf7d0;
}

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

.routine-steps span {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: #d1fae5;
  font-size: 12px;
  font-weight: 800;
}

.routine-steps b {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  font-weight: 800;
}

.analysis-detail {
  display: grid;
  gap: 18px;
}

.analysis-back-row,
.analysis-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analysis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.4fr) minmax(240px, 0.6fr);
  gap: 18px;
  align-items: center;
  border-radius: 18px;
}

.analysis-hero h1 {
  margin: 0;
  font-size: 34px;
}

.analysis-hero h1 span,
.analysis-hero p {
  color: var(--muted);
}

.analysis-price {
  display: grid;
  gap: 4px;
}

.analysis-price span,
.analysis-metric span,
.indicator-item span,
.history-list b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analysis-price strong {
  font-size: 32px;
}

.analysis-price em {
  font-style: normal;
  font-weight: 900;
}

.analysis-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.analysis-hero-actions time {
  flex-basis: 100%;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
}

.policy-pill,
.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.policy-pass,
.risk-low {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.policy-watch,
.risk-medium {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.policy-fail,
.risk-high {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

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

.analysis-panel {
  border-radius: 18px;
}

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

.analysis-metric,
.indicator-item {
  display: grid;
  gap: 6px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.56);
}

.analysis-metric strong,
.indicator-item strong {
  font-size: 18px;
}

.metric-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.indicator-item em {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.indicator-good em,
.policy-rule-list .passed {
  color: #86efac;
}

.indicator-good em {
  background: rgba(34, 197, 94, 0.12);
}

.indicator-normal em {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.indicator-warn em,
.policy-rule-list .failed {
  color: #fcd34d;
}

.indicator-warn em {
  background: rgba(245, 158, 11, 0.12);
}

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

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

.price-structure span {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(91, 141, 239, 0.08);
  font-weight: 900;
}

.structure-card {
  display: grid;
  gap: 6px;
  min-height: 76px;
}

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

.structure-card strong {
  font-size: 17px;
}

.structure-good {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.24) !important;
}

.structure-warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.24) !important;
}

.structure-normal {
  color: #93c5fd;
}

.analysis-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.why-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.22);
}

.why-box b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.explain-list {
  display: grid;
  gap: 6px;
}

.explain-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.policy-score-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.policy-score-line strong {
  font-size: 20px;
}

.policy-score-line span {
  color: var(--muted);
  font-weight: 900;
}

.policy-rule-list,
.decision-lines,
.history-list {
  display: grid;
  gap: 8px;
}

.policy-rule-list span,
.decision-lines span,
.history-list span {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.46);
}

.decision-label {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16);
}

.chart-panel {
  min-height: 260px;
}

.chart-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-weight: 900;
  background: linear-gradient(180deg, rgba(91, 141, 239, 0.08), rgba(15, 23, 42, 0.18));
}

.premium-chart-panel {
  grid-column: 1 / -1;
}

.premium-chart-shell {
  display: grid;
  gap: 12px;
}

.chart-toolbar,
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.chart-toggle {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  color: #64748b;
  background: rgba(2, 6, 23, 0.78);
  font-size: 12px;
  font-weight: 900;
  opacity: 0.72;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.chart-toggle.active {
  color: #eff6ff;
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(59, 130, 246, 0.24);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.14) inset;
  opacity: 1;
}

.chart-focus-badge {
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.chart-action-badge {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

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

.decision-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(91, 141, 239, 0.26);
  border-radius: 14px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.08);
}

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

.decision-confidence strong {
  font-size: 24px;
}

.decision-confidence em {
  border-radius: 999px;
  padding: 4px 9px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.confidence-explain,
.plan-state-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.42);
}

.confidence-explain b,
.plan-state-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.confidence-explain span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.confidence-explain .ok {
  color: #86efac;
}

.confidence-explain .warn {
  color: #fca5a5;
}

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

.decision-checklist-head strong {
  color: var(--text);
}

.decision-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
}

.decision-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
}

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

.signal-checklist span {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.46);
  font-size: 13px;
  font-weight: 800;
}

.legacy-signal-checklist {
  display: none;
}

.decision-click-list .signal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.5);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.decision-click-list .signal-item:hover,
.decision-click-list .signal-item.active {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(59, 130, 246, 0.12);
}

.decision-click-list .signal-item.checked b {
  color: #86efac;
}

.action-progress-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(30, 64, 175, 0.14);
}

.action-progress-card span,
.action-progress-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.action-progress-card strong {
  color: #bfdbfe;
  font-size: 18px;
}

.plan-state-card {
  margin-top: 12px;
}

.plan-state-card strong {
  color: var(--text);
  font-size: 14px;
}

.plan-state-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.decision-info-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.46);
}

.decision-info-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.decision-info-box strong {
  font-size: 15px;
}

.decision-info-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.analysis-timeline,
.action-history-list {
  display: grid;
  gap: 10px;
}

.timeline-row,
.action-history-row {
  display: grid;
  grid-template-columns: 52px 12px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.42);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-row:hover,
.action-history-row:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.32);
}

.timeline-row time,
.action-history-row time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.timeline-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.55);
}

.timeline-row strong,
.action-history-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.timeline-row span,
.action-history-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.action-history-row {
  grid-template-columns: auto 1fr 48px;
}

.compact-why {
  margin-top: 0;
}

.premium-chart-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-chart-stage .chart-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 520px;
}

.chart-static-layer {
  z-index: 1;
}

.chart-crosshair-layer {
  z-index: 2;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 4px;
  min-width: 190px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.92);
  box-shadow: var(--shadow);
  pointer-events: none;
  font-size: 12px;
}

.chart-tooltip strong {
  font-size: 13px;
}

.chart-tooltip span {
  color: #cbd5e1;
}

.chart-error {
  position: absolute;
  inset: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 16px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
  font-weight: 900;
  text-align: center;
  padding: 20px;
}

.chart-policy-overlay {
  position: absolute;
  top: 56px;
  right: 10px;
  z-index: 3;
  display: grid;
  gap: 6px;
}

.policy-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 1000;
  background: rgba(2, 6, 23, 0.74);
}

.policy-dot-pass {
  color: #22c55e;
}

.policy-dot-fail {
  color: #ef4444;
}

.policy-dot-watch {
  color: #f59e0b;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.chart-legend span::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #94a3b8;
}

.legend-candle::before {
  background: linear-gradient(90deg, #22c55e 50%, #ef4444 50%);
}

.legend-ma5::before {
  background: #60a5fa;
}

.legend-ma20::before {
  background: #a78bfa;
}

.legend-ma60::before {
  background: #fbbf24;
}

.legend-ma120::before {
  background: #94a3b8;
}

.legend-entry::before {
  background: #3b82f6;
}

.legend-stop::before {
  background: #ef4444;
}

.legend-take::before {
  background: #22c55e;
}

.legend-trailing::before {
  background: #f97316;
}

.history-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-list time {
  color: var(--text);
  font-size: 12px;
}

.analysis-detail-empty {
  display: grid;
  gap: 12px;
  border-radius: 18px;
}

.trade-detail {
  display: grid;
  gap: 18px;
}

.trade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  border-radius: 18px;
}

.trade-hero h1 span {
  color: var(--muted);
  font-size: 20px;
}

.trade-return-block {
  display: grid;
  gap: 4px;
  min-width: 150px;
  text-align: right;
}

.trade-return-block span,
.trade-return-block small,
.trade-return-block em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.trade-return-block strong {
  font-size: 30px;
  line-height: 1;
}

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

.trade-conclusion-card {
  display: grid;
  gap: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(124, 58, 237, 0.10)),
    rgba(15, 23, 42, 0.72);
}

.trade-conclusion-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.trade-conclusion-head h2 {
  margin: 2px 0 0;
  font-size: 26px;
}

.perspective-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 8px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.16);
  color: #bfdbfe;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.compact-confidence {
  min-width: 130px;
}

.trade-coach-copy {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.46);
  font-size: 14px;
  line-height: 1.6;
}

.holding-score-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
  padding: 12px 14px;
}

.holding-score-panel span,
.holding-score-panel p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.holding-score-panel strong {
  color: #bbf7d0;
  font-size: 30px;
  line-height: 1;
}

.holding-score-panel b {
  color: #fef3c7;
  font-size: 18px;
}

.holding-score-panel em {
  color: #dcfce7;
  font-style: normal;
  font-weight: 950;
}

.holding-score-panel p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  line-height: 1.5;
}

.trade-panel {
  border-radius: 18px;
}

.trade-wide-panel {
  grid-column: 1 / -1;
}

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

.trade-metric strong {
  font-size: 15px;
  line-height: 1.25;
}

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

.change-summary-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.38);
}

.change-summary-row span,
.change-summary-row i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.change-summary-row strong {
  color: var(--text);
  font-size: 13px;
}

.trade-summary-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.exit-reason-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.36);
}

.exit-reason-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.exit-reason-card strong {
  color: var(--text);
  font-size: 16px;
}

.exit-reason-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .premium-hero,
  .analysis-hero,
  .trade-hero,
  .trade-conclusion-head,
  .validation-card-head,
  .premium-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .premium-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

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

  .action-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .summary-grid,
  .validation-metrics,
  .validation-indicators,
  .validation-perspective,
  .analysis-grid,
  .decision-mini-grid,
  .statistics-summary,
  .insight-metrics,
  .insight-lines,
  .learning-grid,
  .image-grid,
  .dashboard-grid,
  .statistics-grid,
  .trade-detail-grid,
  .exit-reason-grid,
  .card-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-card,
  .routine-panel,
  .action-board-bottom {
    grid-template-columns: 1fr;
  }

  .market-panel,
  .market-board,
  .news-board {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .console-topbar,
  .hero,
  .premium-hero,
  .premium-hero-metrics,
  .validation-title,
  .validation-card-head,
  .validation-metrics,
  .validation-indicators,
  .validation-perspective,
  .premium-dashboard-grid,
  .trade-hero,
  .trade-conclusion-head,
  .trade-detail-grid,
  .trade-metric-grid,
  .exit-reason-grid,
  .analysis-grid,
  .analysis-metrics,
  .plan-grid,
  .indicator-grid,
  .price-structure,
  .signal-checklist,
  .decision-mini-grid,
  .premium-action-grid,
  .today-position-status,
  .today-position-levels,
  .summary-grid,
  .statistics-summary,
  .insight-metrics,
  .insight-lines,
  .learning-grid,
  .action-summary,
  .image-grid,
  .dashboard-grid,
  .statistics-grid,
  .card-grid,
  .search-results,
  .search-box,
  .market-ticker,
  .stock-card-head,
  .scheduler-status-grid,
  .routine-steps {
    grid-template-columns: 1fr;
  }

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

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

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

  .statistics-row {
    grid-template-columns: minmax(100px, 1fr) repeat(5, auto);
    font-size: 11px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main-shell {
    padding: 18px;
  }

  h1 {
    font-size: 30px;
  }

  .premium-hero {
    padding: 20px;
  }

  .premium-hero-copy h1 {
    font-size: 26px;
  }

  .position-return {
    text-align: left;
  }

  .premium-chart-stage {
    min-height: 380px;
  }

  .premium-chart-stage .chart-layer {
    height: 380px;
  }

  .chart-action-badge {
    margin-left: 0;
  }
}
