/* Picker shared visual system: espresso, slate teal, brass and cream. */
:root {
  --bg: #211712;
  --panel: #31231c;
  --panel2: #39291f;
  --line: rgba(242, 231, 214, .16);
  --text: #f2e7d6;
  --muted: #b9a895;
  --dim: #8d7c6c;
  --blue: #718f88;
  --gold: #b88950;
  --teal: #718f88;
  --teal-deep: #4f6d67;
  --brass: #b88950;
  --rose: #c27086;
  --font-round: "Arial Rounded MT Bold", "Noto Sans SC", "Microsoft YaHei UI",
    "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC",
    "Arial Rounded MT Bold", sans-serif;
  color-scheme: dark;
}

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

body {
  color: var(--text) !important;
  background:
    radial-gradient(820px 480px at 12% -5%, rgba(184, 137, 80, .14), transparent 64%),
    radial-gradient(620px 380px at 96% 4%, rgba(113, 143, 136, .12), transparent 64%),
    var(--bg) !important;
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(rgba(242, 231, 214, .3) .45px, transparent .45px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 72%);
}

h1, h2, h3, h4, .brand, .logo, .tab, .btn, button, input, select, textarea {
  font-family: var(--font-round) !important;
}

h1, h2, h3, h4, .brand, .symbol, .name, .score {
  letter-spacing: -.018em;
}

.panel, .card, .tool, .launch, .product, .productcard, .modal-box, .metric,
.index, .favrow, .coinlook, .amountbox, .risk-box, .market-card, .prompt-card,
.glance, .bar, .chart-stats, .fold, .locked {
  background: linear-gradient(155deg, var(--panel), #2c2019) !important;
  border-color: var(--line) !important;
  box-shadow: 0 16px 42px rgba(9, 6, 4, .24) !important;
}

.panel, .card, .tool, .launch, .product, .productcard, .modal-box, .metric,
.index, .amountbox, .risk-box, .market-card {
  border-radius: 18px !important;
}

.tool:hover, .launch:hover, .product:hover, .productcard:hover, .favrow:hover,
tbody tr:hover {
  background: var(--panel2) !important;
  border-color: rgba(113, 143, 136, .42) !important;
}

.locked {
  color: var(--muted) !important;
  border-color: rgba(113, 143, 136, .34) !important;
  background: var(--panel2) !important;
}

.accbar a, .accbar button {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
}

.fold > summary {
  color: var(--text) !important;
}

.panel h2, .panel h3, .card h2, .card h3, .modal-head h2 {
  color: var(--text) !important;
}

nav, header {
  border-color: var(--line) !important;
}

nav a, header a:not(.brand):not(.member):not(.account) {
  color: var(--muted);
}

nav a:hover, header a:hover {
  color: var(--text);
}

.nav a, nav a.navtool, nav a.us-link, header .productnav a,
.productnav a, .theme-label, .vintage-label, .style-label {
  border-color: var(--line) !important;
  background: rgba(242, 231, 214, .035) !important;
  color: var(--muted) !important;
  border-radius: 999px !important;
}

nav a.active, .nav a.active {
  color: var(--text) !important;
  border-color: rgba(113, 143, 136, .46) !important;
  background: rgba(113, 143, 136, .14) !important;
}

.tab {
  border-color: var(--line) !important;
  background: var(--panel) !important;
  color: var(--muted) !important;
  border-radius: 999px !important;
}

.tab.on {
  border-color: rgba(113, 143, 136, .6) !important;
  background: var(--teal) !important;
  color: #1b211e !important;
  font-weight: 700;
}

.lang.on {
  background: rgba(113, 143, 136, .18) !important;
  border-color: rgba(113, 143, 136, .52) !important;
  color: #b4d1ca !important;
}

.lang:not(.on) {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.picker-global-lang {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--muted);
  font-family: var(--font-round);
  font-size: 10.5px;
  cursor: pointer;
}

.picker-global-lang:hover {
  color: var(--text);
  border-color: rgba(113, 143, 136, .5);
}

.tag, .badge, .step b.n {
  background: rgba(113, 143, 136, .14) !important;
  border-color: rgba(113, 143, 136, .34) !important;
  color: #b4d1ca !important;
}

.fav, .metric-chip {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.fav {
  min-width: 34px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
}

.fav [data-picker-icon] {
  width: 17px !important;
  height: 17px !important;
  color: var(--brass) !important;
}

.fav.on [data-picker-icon] {
  color: #b9d8d1 !important;
}

.btn, .detail-btn, .mini, .fav, .zoom, .period, .chart-period,
.chart-expand, .chart-size, .chart-indicator, .strategy-btn {
  border-radius: 12px !important;
  font-family: var(--font-round) !important;
}

.btn.primary, .detail-btn {
  background: var(--teal) !important;
  border-color: rgba(242, 231, 214, .15) !important;
  color: #1b211e !important;
}

.btn.ok {
  background: var(--brass) !important;
  border-color: rgba(242, 231, 214, .15) !important;
  color: var(--ink) !important;
}

.btn.ghost, .btn.secondary, .mini, .zoom, .period, .chart-period,
.chart-expand, .chart-size, .chart-indicator, .strategy-btn {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.chart-indicator.on {
  background: #b88950 !important;
  border-color: #d6b171 !important;
  color: #1b1410 !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .18);
}

.period.on, .chart-period.on, .chart-size.on {
  background: #718f88 !important;
  border-color: #a9c8c1 !important;
  color: #111816 !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0 0 1px rgba(231, 245, 241, .16);
}

.chart-expand.on {
  background: rgba(184, 137, 80, .24) !important;
  border-color: #b88950 !important;
  color: #f2e7d6 !important;
  font-weight: 800 !important;
}

.btn:not(.primary):not(.ok) {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.mini.on, .fav.on, .strategy-btn.primary {
  background: rgba(113, 143, 136, .2) !important;
  border-color: rgba(113, 143, 136, .52) !important;
  color: #9dc7bf !important;
}

.input, input, select, textarea, .ctl input {
  background: #291d17 !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
}

input::placeholder, textarea::placeholder {
  color: var(--dim) !important;
}

table {
  border-color: var(--line) !important;
  background: var(--panel) !important;
}

th {
  background: #2a1e18 !important;
  color: var(--muted) !important;
}

th, td {
  border-color: rgba(242, 231, 214, .1) !important;
}

tbody tr:hover {
  background: var(--panel2) !important;
}

.chip, .setup, .live-chip, .badge, .seal {
  border-radius: 999px !important;
  border-color: var(--line) !important;
}

.chip, .live-chip {
  background: var(--panel2) !important;
  color: var(--muted) !important;
}

.live-chip.closed {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.detail-link {
  background: rgba(113, 143, 136, .14) !important;
  border: 1px solid rgba(113, 143, 136, .34) !important;
  color: #c9e0da !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
}

.detail-link:hover {
  background: rgba(113, 143, 136, .22) !important;
  border-color: rgba(113, 143, 136, .58) !important;
}

.stock-row:hover {
  border-color: rgba(113, 143, 136, .42) !important;
}

.strategy-disclosure {
  margin: 28px 0 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--panel), #2c2019);
  overflow: hidden;
}

.strategy-disclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 700;
}

.strategy-disclosure > summary::-webkit-details-marker {
  display: none;
}

.strategy-disclosure > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}

.strategy-disclosure[open] > summary::after {
  content: "−";
}

.strategy-disclosure > summary [data-picker-icon] {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.strategy-disclosure .sd-badge {
  margin-left: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #a9cec6;
  background: rgba(113, 143, 136, .14);
  border: 1px solid rgba(113, 143, 136, .3);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
}

.sd-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

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

.sd-item {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(242, 231, 214, .035);
  border: 1px solid rgba(242, 231, 214, .1);
}

.sd-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 11.5px;
}

.sd-note {
  padding: 10px 12px;
  border-left: 3px solid var(--rose);
  border-radius: 8px;
  background: rgba(194, 112, 134, .08);
  color: #d9b3bc;
}

.sd-note strong {
  color: var(--text);
}

@media (max-width: 700px) {
  .strategy-disclosure > summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }
  .strategy-disclosure .sd-badge {
    margin-left: 28px;
  }
  .sd-grid {
    grid-template-columns: 1fr;
  }
}

.chip.setup, .setup {
  background: rgba(184, 137, 80, .12) !important;
  color: #d5ae7e !important;
  border-color: rgba(184, 137, 80, .3) !important;
}

.chip.ok, .chip.good, .live-chip.in-zone, .live-chip.tp1, .live-chip.tp2 {
  background: rgba(113, 143, 136, .15) !important;
  color: #a9cec6 !important;
  border-color: rgba(113, 143, 136, .42) !important;
}

.chip.wait, .live-chip.above, .live-chip.below {
  background: rgba(184, 137, 80, .1) !important;
  color: #d7b37f !important;
  border-color: rgba(184, 137, 80, .3) !important;
}

.chip.bad, .live-chip.stop {
  background: rgba(194, 112, 134, .12) !important;
  color: #e0a3b2 !important;
  border-color: rgba(194, 112, 134, .36) !important;
}

.score, .gold {
  color: var(--brass) !important;
}

.brand, .brand:hover, .brand:visited {
  color: var(--text) !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.1 !important;
}

.logo {
  color: #1b211e !important;
  background: var(--teal) !important;
  border-color: rgba(242, 231, 214, .12) !important;
}

.brand .logo, nav .logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
}

.productcard .ico, .tool .ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 231, 214, .12);
}

.arw [data-picker-icon], .productcard .ico[data-picker-icon] {
  width: 22px;
  height: 22px;
}

.productcard .ico, .tool .ico, .p-icon, .icon-box, .mini-icon {
  color: #1b211e !important;
  background: var(--teal) !important;
  border-color: rgba(242, 231, 214, .12) !important;
}

.productcard:nth-child(2) .ico, .tool:nth-child(2) .ico {
  background: var(--brass) !important;
}

.productcard:nth-child(3) .ico, .tool:nth-child(3) .ico {
  background: var(--rose) !important;
}

.market-card, .market, .mood-box, .env-big {
  background: var(--panel) !important;
  color: var(--text) !important;
}

.market, .market:nth-child(2), .market:nth-child(3), .market:nth-child(4) {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
}

.mc-foot, .hc-foot, .ledger-note, .quote-note, .note, .tip {
  background: rgba(242, 231, 214, .045) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.modal {
  background: rgba(10, 6, 4, .84) !important;
}

.modal-box, .chart-modal-panel {
  background: linear-gradient(180deg, #31231c, #211712) !important;
  border-color: rgba(184, 137, 80, .46) !important;
}

.chart, .chartwrap, .tv-chart {
  background: #17100d !important;
  border-color: var(--line) !important;
}

.kv div, .rows > div, .grid2 > div, .detail-grid .panel {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
}

.metrics div, .metrics > div {
  background: var(--panel2) !important;
  border-color: var(--line) !important;
}

#stickyhead {
  background: linear-gradient(180deg, rgba(33, 23, 18, .98), rgba(33, 23, 18, .9)) !important;
  border-color: var(--line) !important;
}

.bar {
  border-color: rgba(113, 143, 136, .3) !important;
}

.notice {
  border-radius: 12px;
}

.notice.warn, .notice.bad {
  background: rgba(194, 112, 134, .1) !important;
  border-color: rgba(194, 112, 134, .34) !important;
  color: #e5b1bd !important;
}

.notice.ok {
  background: rgba(113, 143, 136, .12) !important;
  border-color: rgba(113, 143, 136, .35) !important;
  color: #a9cec6 !important;
}

footer {
  border-color: var(--line) !important;
  color: var(--dim) !important;
}

[data-picker-icon] {
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -.18em;
  flex: 0 0 auto;
}

[data-picker-icon] svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo [data-picker-icon], .productcard .ico [data-picker-icon],
.tool .ico [data-picker-icon], .p-icon [data-picker-icon] {
  width: 25px;
  height: 25px;
}

@media (max-width: 700px) {
  .panel, .card, .tool, .launch, .product, .productcard, .modal-box,
  .metric, .index, .market-card {
    border-radius: 16px !important;
  }
}
