/* Phase B (26-oct-2026): Radar feed, Watch manager, Home customisation.
   Same look as the rest of the terminal: glass cards, cyan accents, Inter + JetBrains Mono. */

/* ---------------------------------------------------------------- Radar */
.rd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.rd-seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.02); }
.rd-seg button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: #aab1ba; font: 500 10px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.rd-seg button.on { background: #dffbff; color: #051114; box-shadow: 0 0 22px rgba(78,225,255,.18); }
.rd-bar select, .rd-bar input[type=search], .mg-bar select, .mg-search {
  min-height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid rgba(255,255,255,.1); background: rgba(5,6,8,.55); color: inherit; font: 13px var(--sans, Inter, sans-serif); }
.rd-bar input[type=search] { flex: 1 1 200px; min-width: 160px; }
.rd-bar select:focus, .rd-bar input:focus, .mg-bar select:focus, .mg-search:focus { outline: none; border-color: rgba(78,225,255,.45); box-shadow: 0 0 0 3px rgba(78,225,255,.08); }
.rd-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 0 0 6px; padding: 0 2px; color: #aab1ba; font: 500 11px var(--mono, monospace); letter-spacing: .04em; }
.rd-sum b { color: #fff; font-weight: 600; } .rd-sum b.hi { color: var(--red, #ff6b6b); }
.rd-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #8a929c; }
.rd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green, #69e6a6); box-shadow: 0 0 10px var(--green, #69e6a6); }
.rd-day { margin: 22px 0 8px; color: #8a929c; font: 500 10px var(--mono, monospace); letter-spacing: .16em; text-transform: uppercase; }
.rd-day::first-letter { text-transform: uppercase; }
.rd-group { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius, 22px); background: linear-gradient(180deg, rgba(17,19,24,.92), rgba(12,13,17,.95)); overflow: hidden; }
.rd-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.055); transition: background .15s; }
.rd-item:first-child { border-top: 0; }
.rd-item:hover { background: rgba(255,255,255,.018); }
.rd-mark { padding-top: 5px; display: flex; justify-content: center; }
.rd-mark .sev { width: 9px; height: 9px; border-radius: 50%; background: #626a75; }
.rd-mark .sev.sev-3 { background: var(--red, #ff6b6b); box-shadow: 0 0 10px var(--red, #ff6b6b); }
.rd-mark .sev.sev-2 { background: var(--amber, #f4b860); box-shadow: 0 0 10px var(--amber, #f4b860); }
.rd-item.news .rd-mark .sev { background: transparent; border: 1px solid #626a75; }
.rd-ico { color: var(--cyan, #4ee1ff); font: 600 14px var(--mono, monospace); line-height: 1; }
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 5px; font: 500 10px var(--mono, monospace); letter-spacing: .06em; }
.rd-meta time { color: #8a929c; }
.rd-kind { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.05); color: #c3c9d0; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.rd-kind.sev-3 { background: rgba(255,107,107,.1); color: #ffb3b3; } .rd-kind.sev-2 { background: rgba(244,184,96,.1); color: #f8cf94; }
.rd-dim { color: #8a929c; }
.rd-lock { color: var(--amber, #f4b860); }
.rd-item h3 { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: #e7ebef; overflow-wrap: anywhere; }
.rd-item h3 a:hover { color: var(--cyan, #4ee1ff); }
.rd-why { margin: 6px 0 0; color: #9ba3ad; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.rd-tags:empty { display: none; }
.rd-coin { padding: 3px 8px; border-radius: 7px; border: 1px solid rgba(78,225,255,.2); background: rgba(78,225,255,.05); color: var(--cyan, #4ee1ff); font: 600 10px var(--mono, monospace); letter-spacing: .06em; }
.rd-coin.mkt { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #aab1ba; }
a.rd-coin:hover { background: rgba(78,225,255,.12); }
.rd-imp { padding: 3px 8px; border-radius: 7px; font: 500 10px var(--mono, monospace); background: rgba(255,255,255,.03); }
.rd-imp.up { color: var(--green, #69e6a6); } .rd-imp.dn { color: var(--red, #ff6b6b); }
.rd-act { padding-top: 2px; }
.rd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); color: #c3c9d0; font: 500 10px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: .15s; }
.rd-btn:hover, .rd-btn:focus-visible { color: var(--cyan, #4ee1ff); border-color: rgba(78,225,255,.4); outline: none; }
.rd-item.rep.locked h3 { color: #aab1ba; }
.rd-empty p { margin: 0; padding: 18px 4px; color: #9ba3ad; text-align: center; }
@media (max-width: 640px) {
  .rd-item { grid-template-columns: 12px minmax(0, 1fr); padding: 13px 14px; }
  .rd-act { grid-column: 2; padding-top: 4px; }
  .rd-seg { width: 100%; } .rd-seg button { flex: 1; padding: 0 6px; }
  .rd-bar select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .rd-live { margin-left: 0; }
}

/* ---------------------------------------------------------------- Watch manager */
.mg-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.mg-sum > div { padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mg-sum span { color: #8a929c; font: 500 9.5px var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.mg-sum b { color: #fff; font: 600 24px var(--sans, Inter, sans-serif); letter-spacing: -.02em; }
.mg-sum b.sm { font-size: 15px; font-weight: 500; }
.mg-sum small { color: #8a929c; font-size: 12px; }
.mg-sum .warn { border-color: rgba(244,184,96,.3); background: rgba(244,184,96,.05); }
.mg-sum .warn b { color: var(--amber, #f4b860); } .mg-sum .warn a { color: var(--amber, #f4b860); font-size: 12px; }
.mg-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.mg-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); color: #c3c9d0; font-size: 12.5px; cursor: pointer; }
.mg-chip span { margin-left: 4px; color: #8a929c; font: 500 11px var(--mono, monospace); }
.mg-chip.on { border-color: rgba(78,225,255,.45); color: var(--cyan, #4ee1ff); background: rgba(78,225,255,.06); }
.mg-search { flex: 1 1 200px; margin-left: auto; min-width: 160px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.mg-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(17,19,24,.9), rgba(12,13,17,.94)); min-width: 0; }
.mg-card.st-on { border-color: rgba(105,230,166,.18); }
.mg-card.st-plan { border-color: rgba(244,184,96,.25); }
.mg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-dot { width: 8px; height: 8px; border-radius: 50%; background: #626a75; flex: none; }
.st-on .mg-dot { background: var(--green, #69e6a6); box-shadow: 0 0 10px var(--green, #69e6a6); }
.st-plan .mg-dot { background: var(--amber, #f4b860); }
.mg-name { font-size: 15px; color: #fff; overflow-wrap: anywhere; }
.mg-st { color: #8a929c; font: 500 9.5px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
.st-on .mg-st { color: var(--green, #69e6a6); } .st-plan .mg-st { color: var(--amber, #f4b860); }
.mg-sev { margin-left: auto; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.05); color: #c3c9d0; font: 500 9px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.mg-sev.sev-3 { background: rgba(255,107,107,.1); color: #ffb3b3; } .mg-sev.sev-2 { background: rgba(244,184,96,.1); color: #f8cf94; }
.mg-desc { margin: 0; color: #9ba3ad; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.mg-err { margin: 0; font-size: 12px; }
.mg-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #8a929c; font: 500 10.5px var(--mono, monospace); }
.mg-stats b { color: #e7ebef; font-weight: 500; }
.mg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mg-acts .button.small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.mg-hbar select { flex: 0 1 auto; }

/* ---------------------------------------------------------------- Home customisation */
.term .hm-custom { margin-left: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #c3c9d0; font: 500 9.5px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.term .hm-custom:hover, .term .hm-custom:focus-visible { color: var(--cyan, #4ee1ff); border-color: rgba(78,225,255,.4); outline: none; }
.term .hm-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(860px, calc(100% - 32px)); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(78,225,255,.3); background: rgba(10,12,16,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #d6dce2; font-size: 13px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.term .hm-bar > span:first-child { flex: 1 1 260px; }
.term .hm-msg { color: var(--amber, #f4b860); font-size: 12.5px; }
.term .btn-ghost { min-height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: #c3c9d0; font-size: 13px; font-weight: 500; cursor: pointer; }
.term .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.term .hm-editing .hm-mod { outline: 1px dashed rgba(78,225,255,.35); outline-offset: -1px; }
.term .hm-editing .hm-mod.hm-off > :not(.hm-edit) { opacity: .35; }
.term .hm-edit { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(5,6,8,.88); border: 1px solid rgba(78,225,255,.3); }
.term .hm-edit button { min-width: 32px; min-height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #e7ebef; font: 600 12px var(--sans, Inter, sans-serif); cursor: pointer; }
.term .hm-edit button:hover, .term .hm-edit button:focus-visible { border-color: rgba(78,225,255,.45); color: var(--cyan, #4ee1ff); outline: none; }
.term .hm-tag { color: var(--amber, #f4b860); font: 500 9px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; padding: 0 4px; }
@media (max-width: 767px) { .term .hm-bar { bottom: 92px; background: rgba(10,12,16,.96); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.term .grid12.hm-editing { padding-bottom: 90px; }
@media (max-width: 767px) { .term .grid12.hm-editing { padding-bottom: 200px; } }
/* the per-module controls sit in the flow, above the module, so they never cover its own buttons */
.term .hm-editing .hm-edit { position: static; width: fit-content; margin: 10px 10px 4px auto; flex-wrap: wrap; }
/* the edit bar is centred on the content area, not on the window (the rail is on the left) */
@media (min-width: 768px) { .term .hm-bar { left: calc(50% + (18px + var(--rail) + 14px) / 2); width: min(860px, calc(100% - 64px - var(--rail))); } }
/* phones: one compact row */
@media (max-width: 640px) {
  .term .hm-bar { flex-wrap: nowrap; gap: 6px; padding: 8px; }
  .term .hm-bar > span:first-child { display: none; }
  .term .hm-bar .hm-msg:empty { display: none; }
  .term .hm-bar .hm-msg { flex: 1 1 auto; font-size: 11.5px; }
  .term .hm-bar button { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
  .term .grid12.hm-editing { padding-bottom: 150px; }
}
.wh-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin: 6px 0 14px; align-items: stretch; }
.wh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wh-card { padding: 13px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(14,16,20,.88); min-width: 0; }
.wh-card small { display: block; color: #8a929c; font: 500 9px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.wh-card b { display: block; margin: 7px 0 4px; font: 600 19px var(--sans, Inter, sans-serif); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-card b.up { color: var(--green, #69e6a6); } .wh-card b.dn { color: var(--red, #ff6b6b); }
.wh-card span { color: #8a929c; font: 500 10.5px var(--mono, monospace); }
.wh-chart { padding: 10px 12px 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(14,16,20,.88); min-width: 0; display: flex; flex-direction: column; }
.wh-chart svg { width: 100%; height: 80px; display: block; flex: 1; }
.wh-chart line { stroke: rgba(255,255,255,.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wh-chart rect.in { fill: rgba(255,107,107,.7); } .wh-chart rect.out { fill: rgba(105,230,166,.7); }
.wh-chart small { color: #7f8791; font-size: 10.5px; line-height: 1.4; margin-top: 4px; }
.wh-seg { margin: 0 0 4px; }
.wh-stale { color: var(--amber, #f4b860); }
.rd-item.wh h3 { font-size: 15px; }
.wh-amt { font-weight: 600; color: #fff; }
.wh-path { margin: 5px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #aab1ba; font-size: 12.5px; overflow-wrap: anywhere; }
.wh-path i { color: #626a75; font-style: normal; }
.wh-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rd-kind.wk-up { background: rgba(105,230,166,.1); color: #9af0c3; } .rd-kind.wk-dn { background: rgba(255,107,107,.1); color: #ffb3b3; }
@media (max-width: 1100px) { .wh-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .wh-cards { grid-template-columns: minmax(0, 1fr); } .wh-act { justify-content: flex-start; } }
.rd-legal { margin: 14px 2px 0; color: #7f8791; font-size: 11.5px; }
.term .grid12 { grid-auto-flow: row dense; }
@media (prefers-reduced-motion: reduce) { .rd-item, .rd-btn { transition: none; } }
.mg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mg-head .mk-subhead { margin: 0; }
#mon-builder { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.setting[hidden], .form-success[hidden] { display: none; }
/* Radar: live anomalies */
.rd-help { margin: 0 0 12px; color: #9ba3ad; font-size: 12.5px; line-height: 1.55; }
.rd-lockp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 18px; }
.rd-lockp p { max-width: 560px; line-height: 1.6; }
@media (max-width: 560px) {
  .rd-seg { flex-wrap: wrap; row-gap: 3px; }
  .rd-seg button { flex: 1 1 30%; }
}
.rd-seg .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.rd-scope button { text-transform: none; letter-spacing: .02em; font: 500 12px var(--sans, inherit); }
.rd-scope button.on[data-rd-scope="mine"] { background: rgba(244,184,96,.16); color: var(--amber, #f4b860); box-shadow: none; }
.rd-n { opacity: .8; }
.rd-mine-go { font-family: inherit; padding: 4px 10px; border-radius: 9px; border: 1px solid rgba(244,184,96,.35); background: rgba(244,184,96,.06); color: var(--amber, #f4b860); font-size: 12px; cursor: pointer; }
.rd-mine-go:hover, .rd-mine-go:focus-visible { background: rgba(244,184,96,.14); }
.dg-hour { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #c3c9d0; }
.dg-hour select { min-height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: inherit; }
.dg-tz { flex-basis: 100%; color: #8b939c; font-size: 11.5px; }
.rd-sumrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rd-sumrow .rd-sum { flex: 1 1 auto; }
.rd-hint:empty { display: none; }
.rd-mw { font: 500 10px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 7px; border: 1px solid rgba(78,225,255,.35); color: #4ee1ff; }

/* ---------------------------------------------------------------- Pulso (Bloomberg-style live news & social wire) */
.pl-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 12px; padding: 11px 16px; border-radius: 14px; border: 1px solid rgba(78,225,255,.16); background: linear-gradient(90deg, rgba(16,19,26,.95), rgba(12,14,18,.95)); font: 500 11px var(--mono, monospace); color: #9ba3ad; letter-spacing: .03em; }
.pl-sum b { color: #f3f6f8; font-weight: 600; }
.pl-sum b.ver-ok { color: var(--green, #69e6a6); }
.pl-sum b.hi { color: var(--red, #ff6b6b); }
.pl-live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 999px; background: rgba(105,230,166,.1); border: 1px solid rgba(105,230,166,.3); color: var(--green, #69e6a6); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.pl-live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green, #69e6a6); box-shadow: 0 0 8px var(--green, #69e6a6); }
.pl-mood.up b { color: var(--green, #69e6a6); }
.pl-mood.dn b { color: var(--red, #ff6b6b); }
.pl-mood.neu b { color: var(--amber, #f4b860); }
.pl-upd { margin-left: auto; color: #7f8791; font-size: 10.5px; }

.pl-bar { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.pl-ch-seg { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.pl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-filters select, .pl-filters input[type=search] { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(5,6,8,.55); color: inherit; font: 13px var(--sans, Inter, sans-serif); min-width: 0; }
.pl-filters input[type=search] { flex: 1 1 200px; }
.pl-filters select:focus, .pl-filters input[type=search]:focus { outline: none; border-color: rgba(78,225,255,.45); box-shadow: 0 0 0 3px rgba(78,225,255,.08); }

.pl-pro-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 11px 15px; border-radius: 13px; border: 1px solid rgba(244,184,96,.28); background: rgba(244,184,96,.05); color: #d6dce2; font-size: 12.5px; line-height: 1.5; }
.pl-pro-banner > span { flex: 1 1 260px; }
.pl-clear-q { margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(78,225,255,.35); background: rgba(78,225,255,.08); color: var(--cyan, #4ee1ff); font: 500 11px var(--mono, monospace); cursor: pointer; }

.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.pl-list { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius, 20px); background: linear-gradient(180deg, rgba(16,18,23,.94), rgba(11,12,16,.96)); overflow: hidden; }
.pl-item { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.06); border-left: 3px solid transparent; transition: background .15s; min-width: 0; }
.pl-item:first-child { border-top: 0; }
.pl-item:hover { background: rgba(255,255,255,.018); }
.pl-item.ver-b-verified { border-left-color: rgba(105,230,166,.55); }
.pl-item.ver-b-corroborating { border-left-color: rgba(78,225,255,.45); }
.pl-item.ver-b-unverified { border-left-color: rgba(244,184,96,.65); }
.pl-item.is-hi { background: linear-gradient(90deg, rgba(78,225,255,.035), transparent 65%); }

.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; font: 500 10px var(--mono, monospace); letter-spacing: .04em; }
.pl-meta time { color: #d6dce2; font-weight: 600; }
.pl-age { color: #7f8791; }
.pl-ch { padding: 2px 7px; border-radius: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.pl-ch.ch-official { background: rgba(78,225,255,.15); color: #4ee1ff; border: 1px solid rgba(78,225,255,.35); }
.pl-ch.ch-press { background: rgba(255,255,255,.06); color: #d6dce2; }
.pl-ch.ch-reddit { background: rgba(244,184,96,.12); color: #f8cf94; }
.pl-ch.ch-telegram { background: rgba(78,225,255,.1); color: #9defff; }
.pl-ch.ch-x { background: rgba(124,108,245,.14); color: #c7bfff; }
.pl-ch.ch-dev { background: rgba(105,230,166,.1); color: #9af0c3; }
.pl-src { color: #9ba3ad; overflow-wrap: anywhere; }
.pl-eng { color: #8a929c; font-size: 9.5px; }

.pl-ver { padding: 2px 8px; border-radius: 6px; font-size: 9px; letter-spacing: .07em; font-weight: 600; text-transform: uppercase; }
.pl-ver.ver-verified { background: rgba(105,230,166,.12); color: var(--green, #69e6a6); border: 1px solid rgba(105,230,166,.28); }
.pl-ver.ver-corroborating { background: rgba(78,225,255,.1); color: var(--cyan, #4ee1ff); border: 1px solid rgba(78,225,255,.25); }
.pl-ver.ver-unverified { background: rgba(244,184,96,.12); color: var(--amber, #f4b860); border: 1px solid rgba(244,184,96,.32); }
.pl-src-n { color: #aab1ba; font-size: 9.5px; }

.pl-imp { margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: 9px; letter-spacing: .07em; font-weight: 600; text-transform: uppercase; }
.pl-imp.dir-bullish { background: rgba(105,230,166,.1); color: var(--green, #69e6a6); }
.pl-imp.dir-bearish { background: rgba(255,107,107,.12); color: var(--red, #ff6b6b); }
.pl-imp.dir-neutral { background: rgba(255,255,255,.04); color: #8a929c; }

.pl-item h3 { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: #eef2f6; overflow-wrap: anywhere; }
.pl-item h3 a:hover { color: var(--cyan, #4ee1ff); }

.pl-why { margin: 7px 0 0; padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); color: #b5bdc6; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.pl-why strong { color: #dfe5ec; font-weight: 600; margin-right: 4px; }
.pl-corr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-left: 6px; font: 500 10px var(--mono, monospace); color: #8a929c; }
.pl-corr-a { padding: 1px 6px; border-radius: 5px; background: rgba(78,225,255,.08); color: var(--cyan, #4ee1ff); text-decoration: none; }
.pl-corr-a:hover { background: rgba(78,225,255,.16); }

.pl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.pl-filter-chip { cursor: pointer; }
.pl-narr-chip { padding: 3px 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #b9c1cb; font: 500 10px var(--mono, monospace); cursor: pointer; }
.pl-narr-chip:hover { border-color: rgba(78,225,255,.35); color: var(--cyan, #4ee1ff); }

.pl-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-side-box { padding: 15px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(16,18,23,.92), rgba(11,12,16,.95)); }
.pl-side-head { margin-bottom: 10px; }
.pl-side-head h2 { margin: 0; font-size: 13.5px; font-weight: 600; color: #eef2f6; }
.pl-side-head p { margin: 3px 0 0; font-size: 11.5px; color: #8a929c; line-height: 1.4; }
.pl-top-list, .pl-narr-list { display: flex; flex-direction: column; gap: 7px; }
.pl-top-card, .pl-narr-card { width: 100%; text-align: left; padding: 9px 11px; border-radius: 11px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.pl-top-card:hover, .pl-narr-card:hover, .pl-top-card.on { border-color: rgba(78,225,255,.4); background: rgba(78,225,255,.06); }
.pl-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-top-sym { font: 600 12px var(--mono, monospace); color: #eef2f6; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.pl-dot.up { color: var(--green, #69e6a6); }
.pl-dot.dn { color: var(--red, #ff6b6b); }
.pl-dot.neu { color: var(--amber, #f4b860); }
.pl-vel { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: #c3c9d0; font: 600 10px var(--mono, monospace); white-space: nowrap; }
.pl-vel.hot { background: rgba(78,225,255,.15); color: var(--cyan, #4ee1ff); border: 1px solid rgba(78,225,255,.3); }
.pl-top-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; font: 500 10px var(--mono, monospace); color: #8a929c; }
.pl-top-empty { margin: 0; padding: 10px 0; color: #7f8791; font-size: 12px; }

@media (max-width: 1100px) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
}
@media (max-width: 640px) {
  .pl-sum { padding: 10px 12px; gap: 6px 12px; }
  .pl-upd { margin-left: 0; width: 100%; }
  .pl-ch-seg { width: 100%; }
  .pl-ch-seg button { flex: 1 1 30%; padding: 0 6px; font-size: 9.5px; }
  .pl-filters select { flex: 1 1 calc(50% - 4px); }
  .pl-filters input[type=search] { flex: 1 1 100%; }
  .pl-item { padding: 12px 13px; }
  .pl-imp { margin-left: 0; }
}

/* ---------------------------------------------------------------- Radar Institutional Heatmap & Command Center (TradingView Treemap style) */
.rd-nav-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.rd-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(10,13,18,.65); }
.rd-tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #aab1ba; font: 600 11px var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: 6px; }
.rd-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.rd-tab.on { background: #dffbff; color: #051114; box-shadow: 0 0 20px rgba(78,225,255,.22); font-weight: 700; }
.rd-ext-links { display: inline-flex; align-items: center; gap: 8px; }
.rd-ext-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid rgba(78,225,255,.25); background: rgba(78,225,255,.04); color: var(--cyan, #4ee1ff); font: 500 11px var(--mono, monospace); text-decoration: none; transition: .15s; }
.rd-ext-btn:hover { background: rgba(78,225,255,.12); border-color: rgba(78,225,255,.45); color: #fff; }

/* Command Center HUD (5 executive overview cards) */
.rd-hud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rd-hud-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 84px; padding: 11px 13px; border-radius: 13px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(18,22,30,.88), rgba(11,14,20,.94)); color: inherit; text-decoration: none; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; position: relative; overflow: hidden; }
.rd-hud-card:hover { transform: translateY(-2px); border-color: rgba(78,225,255,.4); box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 12px rgba(78,225,255,.08); }
.rd-hud-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.rd-hud-icon { display: inline-flex; color: var(--cyan, #4ee1ff); }
.term .rd-hud-icon .ti.ti-in { width: 15px; height: 15px; }
.term .ti.ti-in { width: 1em; height: 1em; vertical-align: -0.14em; }
.rd-hud-title { font: 600 11px var(--mono, monospace); color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-left: 4px; }
.rd-hud-arr { font-size: 11px; color: #64748b; transition: color .15s; }
.rd-hud-card:hover .rd-hud-arr { color: var(--cyan, #4ee1ff); }
.rd-hud-num { font: 700 19px var(--mono, monospace); color: #fff; line-height: 1.15; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.rd-hud-num small { font: 500 10.5px var(--sans, Inter, sans-serif); color: #8a929c; font-weight: 400; text-transform: none; }
.rd-hud-sub { font: 500 10px var(--mono, monospace); color: #7f8791; margin-top: 4px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Heatmap Treemap Header & Controls */
.rd-treemap-wrap { margin-top: 6px; }
.rd-treemap-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 0 2px; }
.rd-treemap-legend { display: inline-flex; align-items: center; gap: 12px; font: 500 10.5px var(--mono, monospace); color: #8a929c; }
.rd-treemap-legend span { display: inline-flex; align-items: center; gap: 4px; }
.rd-treemap-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.rd-treemap-legend i.up { background: var(--green, #69e6a6); box-shadow: 0 0 6px var(--green, #69e6a6); }
.rd-treemap-legend i.dn { background: var(--red, #ff6b6b); box-shadow: 0 0 6px var(--red, #ff6b6b); }
.rd-treemap-legend i.nt { background: var(--cyan, #4ee1ff); box-shadow: 0 0 6px var(--cyan, #4ee1ff); }
.rd-treemap-ctrls { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-treemap-ctrls input[type=search] { min-height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(5,6,8,.55); color: inherit; font: 12px var(--sans, Inter, sans-serif); }

/* The TradingView-Style Treemap Grid */
.rd-treemap-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(105px, auto); gap: 10px; }
.rd-hm-tile { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; border-radius: 13px; color: inherit; text-decoration: none; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; cursor: pointer; }
.rd-hm-tile:hover { transform: translateY(-2px); z-index: 3; }

/* Treemap Block Sizes Proportional to Prominence */
.rd-hm-tile.size-hero { grid-column: span 3; grid-row: span 2; min-height: 220px; padding: 16px 18px; }
.rd-hm-tile.size-large { grid-column: span 3; grid-row: span 2; min-height: 220px; padding: 16px 18px; }
.rd-hm-tile.size-mid { grid-column: span 2; grid-row: span 1; min-height: 105px; }
.rd-hm-tile.size-compact { grid-column: span 1; grid-row: span 1; min-height: 105px; padding: 9px 10px; }

/* TradingView Color Gradients (Bullish green / Bearish red / Neutral slate) */
.rd-hm-tile.bull-strong { background: linear-gradient(145deg, #0d3824 0%, #155034 100%); border: 1px solid rgba(105, 230, 166, 0.45); }
.rd-hm-tile.bull-strong:hover { border-color: rgba(105, 230, 166, 0.8); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 16px rgba(105, 230, 166, 0.25); }

.rd-hm-tile.bull-mod { background: linear-gradient(145deg, #09271a 0%, #0f3c29 100%); border: 1px solid rgba(105, 230, 166, 0.25); }
.rd-hm-tile.bull-mod:hover { border-color: rgba(105, 230, 166, 0.6); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(105, 230, 166, 0.18); }

.rd-hm-tile.bear-strong { background: linear-gradient(145deg, #3f1217 0%, #5d1922 100%); border: 1px solid rgba(255, 107, 107, 0.45); }
.rd-hm-tile.bear-strong:hover { border-color: rgba(255, 107, 107, 0.8); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 16px rgba(255, 107, 107, 0.25); }

.rd-hm-tile.bear-mod { background: linear-gradient(145deg, #2b0d12 0%, #40151c 100%); border: 1px solid rgba(255, 107, 107, 0.25); }
.rd-hm-tile.bear-mod:hover { border-color: rgba(255, 107, 107, 0.6); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(255, 107, 107, 0.18); }

.rd-hm-tile.neutral { background: linear-gradient(145deg, #131a26 0%, #1a2538 100%); border: 1px solid rgba(78, 225, 255, 0.25); }
.rd-hm-tile.neutral:hover { border-color: rgba(78, 225, 255, 0.6); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(78, 225, 255, 0.18); }

/* Tile Inner Hierarchy */
.rd-hm-header { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.rd-hm-sym-wrap { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.rd-hm-sym { font: 700 17px var(--mono, monospace); color: #fff; letter-spacing: .02em; }
.rd-hm-tile.size-hero .rd-hm-sym, .rd-hm-tile.size-large .rd-hm-sym { font-size: 22px; }
.rd-hm-tile.size-compact .rd-hm-sym { font-size: 13.5px; }
.rd-hm-name { font: 400 11px var(--sans, Inter, sans-serif); color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-hm-tile.size-compact .rd-hm-name { display: none; }

.rd-hm-heat-badge { padding: 2px 7px; border-radius: 6px; font: 600 10px var(--mono, monospace); letter-spacing: .04em; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); color: #e2e8f0; white-space: nowrap; }
.rd-hm-heat-badge.heat-hi { border-color: rgba(78,225,255,.45); background: rgba(78,225,255,.12); color: var(--cyan, #4ee1ff); }
.rd-hm-heat-badge.heat-mid { border-color: rgba(244,184,96,.45); background: rgba(244,184,96,.12); color: var(--amber, #f4b860); }

.rd-hm-body { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.rd-hm-px { font: 600 16px var(--mono, monospace); color: #fff; }
.rd-hm-tile.size-hero .rd-hm-px, .rd-hm-tile.size-large .rd-hm-px { font-size: 20px; }
.rd-hm-tile.size-compact .rd-hm-px { font-size: 12.5px; }

.rd-hm-ch { font: 700 12px var(--mono, monospace); padding: 2px 7px; border-radius: 6px; }
.rd-hm-ch.up { background: rgba(105, 230, 166, 0.22); color: var(--green, #69e6a6); }
.rd-hm-ch.dn { background: rgba(255, 107, 107, 0.22); color: var(--red, #ff6b6b); }
.rd-hm-ch.nt { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.rd-hm-tile.size-compact .rd-hm-ch { font-size: 10.5px; padding: 1px 5px; }

/* Radar Intelligence Layer inside Tile */
.rd-hm-intel { display: flex; flex-direction: column; gap: 5px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.09); margin-top: auto; font: 500 10.5px var(--mono, monospace); color: #cbd5e1; }
.rd-hm-intel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rd-hm-intel-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-hm-chip { padding: 1.5px 6px; border-radius: 5px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); font-size: 10px; color: #cbd5e1; }
.rd-hm-chip b { color: #fff; font-weight: 600; }
.rd-hm-tile.size-compact .rd-hm-intel { padding-top: 4px; gap: 2px; }
.rd-hm-tile.size-compact .rd-hm-intel-row { display: none; }

/* Heatmap Controls, HashOps Bias Pills, Pillar Dots & Inspection Drawer */
.hm-wrap { contain: layout style; }
.hm-ctrl-group, .hm-ctrl-right, .hm-sort-seg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hm-chip-btn { min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #b9c1cb; font: 600 10.5px var(--mono, monospace); cursor: pointer; transition: border-color .15s, background .15s, color .15s; white-space: nowrap; }
.hm-chip-btn:hover { border-color: rgba(78,225,255,.4); color: #fff; }
.hm-chip-btn.on { background: rgba(78,225,255,.16); border-color: rgba(78,225,255,.5); color: var(--cyan, #4ee1ff); }
.hm-sort-seg { padding: 3px; border-radius: 10px; border: 1px solid rgba(255,255,255,.09); background: rgba(6,8,12,.7); gap: 3px; }
.hm-sort-btn { min-height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #94a3b8; font: 600 10px var(--mono, monospace); letter-spacing: .03em; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.hm-sort-btn.on { background: #dffbff; color: #051114; font-weight: 700; }
.hm-legend-row { margin-bottom: 11px; flex-wrap: wrap; gap: 6px 12px; }

.hm-badges-top { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.hm-bias-pill { padding: 2px 6px; border-radius: 5px; font: 700 9.5px var(--mono, monospace); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.hm-bias-pill.up { background: rgba(105,230,166,.2); color: var(--green, #69e6a6); border: 1px solid rgba(105,230,166,.35); }
.hm-bias-pill.dn { background: rgba(255,107,107,.2); color: var(--red, #ff6b6b); border: 1px solid rgba(255,107,107,.35); }
.hm-bias-pill.nt { background: rgba(78,225,255,.12); color: var(--cyan, #4ee1ff); border: 1px solid rgba(78,225,255,.28); }
.hm-div-badge, .hm-div-mini { padding: 2px 6px; border-radius: 5px; background: rgba(244,184,96,.22); border: 1px solid rgba(244,184,96,.55); color: var(--amber, #f4b860); font: 700 9.5px var(--mono, monospace); white-space: nowrap; }
.hm-div-mini { padding: 1px 4px; font-size: 9px; }

.rd-hm-tile { text-align: left; }
.rd-hm-tile.is-selected { outline: 2px solid var(--cyan, #4ee1ff); outline-offset: 1px; box-shadow: 0 0 0 4px rgba(78,225,255,.14); }
.hm-tile-reason { font: 500 11px/1.35 var(--sans, Inter, sans-serif); color: #dbe2ea; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.rd-hm-tile.size-mid .hm-tile-reason { font-size: 10.5px; -webkit-line-clamp: 1; }
.hm-pillar-dots { display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; }
.hm-pdot { display: inline-flex; align-items: center; gap: 3px; font: 600 9px var(--mono, monospace); color: #9aa3ae; text-transform: uppercase; letter-spacing: .03em; }
.hm-pdot i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: rgba(255,255,255,.2); }
.hm-pdot.up { color: #b9f5d8; }
.hm-pdot.up i { background: var(--green, #69e6a6); }
.hm-pdot.dn { color: #ffc2c2; }
.hm-pdot.dn i { background: var(--red, #ff6b6b); }
.hm-pdot.nt i { background: var(--cyan, #4ee1ff); }
.hm-pdot.lk { opacity: .55; }
.hm-pdot.lk i { background: rgba(255,255,255,.22); }
.rd-hm-tile.size-compact .hm-pillar-dots { gap: 3px 5px; }
.rd-hm-tile.size-compact .hm-bias-pill { display: none; }
.hm-home-reason { margin-top: auto; font: 500 10.5px/1.3 var(--sans, Inter, sans-serif); color: #d5dce4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-treemap .hm-pillar-dots { margin-top: 3px; }

/* Inspection Drawer ("Por qué está así") */
.hm-drawer { margin-top: 12px; padding: 15px 17px; border-radius: 15px; border: 1px solid rgba(78,225,255,.28); background: linear-gradient(160deg, rgba(16,20,28,.96), rgba(10,12,17,.98)); contain: layout style; }
.hm-drawer.bull-strong, .hm-drawer.bull-mod { border-color: rgba(105,230,166,.4); }
.hm-drawer.bear-strong, .hm-drawer.bear-mod { border-color: rgba(255,107,107,.4); }
.hm-dr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hm-dr-kicker { display: block; font: 600 10px var(--mono, monospace); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan, #4ee1ff); margin-bottom: 4px; }
.hm-dr-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hm-dr-main h3 { margin: 0; font: 700 18px var(--mono, monospace); color: #fff; }
.hm-dr-main h3 small { font: 400 12.5px var(--sans, Inter, sans-serif); color: #94a3b8; margin-left: 4px; }
.hm-dr-px { font: 600 15px var(--mono, monospace); color: #eef2f6; }
.hm-dr-close { min-width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cbd5e1; cursor: pointer; font: 600 13px var(--sans); flex: none; }
.hm-dr-close:hover { border-color: rgba(78,225,255,.45); color: #fff; }
.hm-dr-div { margin-top: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(244,184,96,.4); background: rgba(244,184,96,.09); color: #fde6ba; font: 500 12.5px/1.45 var(--sans, Inter, sans-serif); }
.hm-dr-reason { margin: 10px 0 0; font: 500 13.5px/1.45 var(--sans, Inter, sans-serif); color: #eef2f6; }
.hm-dr-headline { margin: 5px 0 0; font: 400 12px/1.45 var(--sans, Inter, sans-serif); color: #9aa3ae; }
.hm-dr-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.hm-pillar-card { padding: 10px 11px; border-radius: 11px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-pillar-card.up { border-color: rgba(105,230,166,.3); background: rgba(105,230,166,.05); }
.hm-pillar-card.dn { border-color: rgba(255,107,107,.3); background: rgba(255,107,107,.05); }
.hm-pillar-card.lk { opacity: .72; }
.hm-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hm-pc-title { font: 600 10.5px var(--mono, monospace); text-transform: uppercase; color: #94a3b8; }
.hm-pc-badge { font: 700 9.5px var(--mono, monospace); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.hm-pc-badge.up { background: rgba(105,230,166,.18); color: var(--green, #69e6a6); }
.hm-pc-badge.dn { background: rgba(255,107,107,.18); color: var(--red, #ff6b6b); }
.hm-pc-badge.nt { background: rgba(78,225,255,.12); color: var(--cyan, #4ee1ff); }
.hm-pc-badge.lk { background: rgba(255,255,255,.08); color: #94a3b8; }
.hm-pc-body { font: 600 12px var(--sans, Inter, sans-serif); color: #eef2f6; }
.hm-pc-sub { font: 500 10.5px var(--mono, monospace); color: #9aa3ae; }
.hm-dr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }

/* Mini Treemap inside Dashboard (#inicio) */
.hm-treemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(46px, 1fr); gap: 6px; flex: 1; }
.hm-treemap .rd-hm-tile { min-height: 46px; padding: 6px 9px; border-radius: 8px; }
.hm-treemap .rd-hm-tile.size-hero { grid-column: span 2; grid-row: span 2; min-height: 98px; padding: 10px 12px; }
.hm-treemap .rd-hm-tile.size-large { grid-column: span 2; grid-row: span 1; min-height: 46px; }
.hm-treemap .rd-hm-tile.size-mid { grid-column: span 1; grid-row: span 1; min-height: 46px; }
.hm-treemap .rd-hm-tile.size-compact { grid-column: span 1; grid-row: span 1; min-height: 46px; }
.hm-treemap .rd-hm-tile.size-hero .rd-hm-sym { font-size: 16px; font-weight: 700; }
.hm-treemap .rd-hm-tile.size-hero .rd-hm-px { font-size: 15px; font-weight: 600; }
.hm-treemap .rd-hm-sym { font-size: 12px; font-weight: 700; }
.hm-treemap .rd-hm-px { font-size: 11.5px; font-weight: 600; }
.hm-treemap .rd-hm-ch { font-size: 9.5px; padding: 1px 4px; }
.hm-treemap .rd-hm-heat-badge { font-size: 9px; padding: 1px 5px; }

/* Live Whales inside Dashboard (#inicio) */
.wh-home-body { display: flex; flex-direction: column; flex: 1; gap: 10px; min-height: 0; }
.wh-home-flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.wh-flow-card { display: flex; flex-direction: column; justify-content: space-between; padding: 9px 11px; border-radius: 8px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.wh-flow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.wh-flow-sym { font: 600 11.5px var(--sans); color: #cdd3d9; }
.wh-flow-val { font: 600 11px var(--mono); white-space: nowrap; }
.wh-flow-val.bull { color: var(--green); }
.wh-flow-val.bear { color: var(--red); }
.wh-flow-val.mut { color: var(--muted); }
.wh-flow-sub { font: 500 9px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.wh-home-txs { display: flex; flex-direction: column; gap: 7px; flex: 1; justify-content: space-between; }
.wh-tx-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; background: rgba(255,255,255,.018); border: 1px solid rgba(255,255,255,.04); font-size: 11px; }
.wh-chain-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 18px; border-radius: 4px; font: 700 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.wh-chain-tag.eth { background: rgba(167,139,250,.15); border: 1px solid rgba(167,139,250,.35); color: #c4b5fd; }
.wh-chain-tag.btc { background: rgba(244,184,96,.15); border: 1px solid rgba(244,184,96,.35); color: #f4b860; }
.wh-chain-tag.sol { background: rgba(78,225,255,.15); border: 1px solid rgba(78,225,255,.35); color: #4ee1ff; }
.wh-chain-tag.arb { background: rgba(56,189,248,.15); border: 1px solid rgba(56,189,248,.35); color: #38bdf8; }
.wh-chain-tag.base { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.35); color: #60a5fa; }
.wh-chain-tag.oth { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #cbd5e1; }
.wh-tx-time { font: 500 10px var(--mono); color: var(--faint); min-width: 34px; }
.wh-tx-desc { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; }
.wh-tx-amt { font: 600 11px var(--mono); color: #e2e8f0; white-space: nowrap; flex: none; }
.wh-tx-kind { font: 400 9.5px var(--sans); color: var(--muted); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wh-tx-usd { font: 600 11.5px var(--mono); color: var(--cyan); text-align: right; white-space: nowrap; margin-left: auto; }

/* Responsive Adjustments */
@media (max-width: 1100px) {
  .rd-hud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-treemap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rd-hm-tile.size-hero { grid-column: span 2; grid-row: span 2; min-height: 180px; }
  .rd-hm-tile.size-large { grid-column: span 2; grid-row: span 2; min-height: 180px; }
  .rd-hm-tile.size-mid { grid-column: span 2; grid-row: span 1; }
  .rd-hm-tile.size-compact { grid-column: span 1; grid-row: span 1; }
  .hm-dr-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rd-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-treemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rd-hm-tile.size-hero { grid-column: span 2; grid-row: span 1; min-height: 120px; }
  .rd-hm-tile.size-large { grid-column: span 2; grid-row: span 1; min-height: 110px; }
  .rd-hm-tile.size-mid { grid-column: span 1; min-height: 95px; }
  .rd-hm-tile.size-compact { grid-column: span 1; min-height: 95px; }
  .rd-hm-tile.size-mid .rd-hm-name { display: none; }
  .rd-hm-header { align-items: flex-start; }
  .rd-tabs { width: 100%; }
  .rd-tab { flex: 1 1 30%; padding: 0 8px; font-size: 9.5px; }
  .rd-ext-links { width: 100%; justify-content: flex-end; }
  .hm-treemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-treemap .rd-hm-tile.size-hero { grid-column: span 2; grid-row: span 1; min-height: 100px; }
  .hm-treemap .rd-hm-tile.size-large { grid-column: span 2; grid-row: span 1; min-height: 80px; }
  .wh-home-flows { grid-template-columns: 1fr; }
  .hm-drawer { padding: 12px; }
  .hm-dr-pillars { grid-template-columns: minmax(0, 1fr); }
  .hm-chip-btn { padding: 0 9px; font-size: 10px; }
}

