/* Paper Trench: chart styles (loaded after styles.css; this file belongs to one builder) */

/* ---------- the pro chart on the token page (js/chart.js createProChart) ---------- */
.chart-card { display: flex; flex-direction: column; min-width: 0; }
.pc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.pc-bar .seg { flex: 0 0 auto; }
.pc-bar .seg-btn { padding: 3px 9px; font-size: 12px; min-height: 26px; }
.pc-mode.pc-off { opacity: 0.45; pointer-events: none; }
.pc-zoom { display: inline-flex; gap: 4px; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; min-width: 26px; padding: 3px 9px; font: 500 12px var(--font-body); color: var(--muted); background: var(--chip); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pc-btn:hover, .pc-btn:focus-visible { color: var(--text); border-color: var(--blue); }
.pc-bubble { margin-left: auto; color: var(--cyan); }
.pc-gearwrap { position: relative; display: inline-flex; }
.pc-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 236px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); display: grid; gap: 8px; }
.pc-pop[hidden] { display: none; }
.pc-pop-h { font: 600 12px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pc-sws { display: grid; gap: 4px; }
.pc-sw { display: flex; align-items: center; gap: 6px; padding: 5px 8px; font: 500 12px var(--font-body); color: var(--text); background: var(--chip); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; text-align: left; }
.pc-sw.on { border-color: var(--blue); background: var(--blue-soft); }
.pc-swc { width: 10px; height: 16px; border-radius: 2px; flex: 0 0 auto; }
.pc-swc-classic-u { background: #2fd08a; } .pc-swc-classic-d { background: #ff5c6c; }
.pc-swc-cb-u { background: #3b9dff; } .pc-swc-cb-d { background: #ff9a3c; }
.pc-swc-mono-u { background: #eef2f8; } .pc-swc-mono-d { background: #6b7488; }
.pc-swc-pop-u { background: #b388ff; } .pc-swc-pop-d { background: #ffd84d; }
.pc-picks { display: flex; gap: 12px; }
.pc-pick, .pc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.pc-pick input { width: 30px; height: 22px; padding: 0; border: 1px solid var(--line-2); border-radius: 4px; background: none; }

.pc-stage { position: relative; width: 100%; height: 320px; overflow: hidden; --pc-up: var(--up); --pc-down: var(--down); }
@media (min-width: 1000px) { .pc-stage { height: clamp(320px, calc((100vh - 290px) * 0.64), 640px); } }
@media (max-width: 520px) { .pc-stage { height: 300px; } .pc-bar { gap: 6px; padding: 6px 8px; } .pc-bubble { margin-left: 0; } }
.pc-host { position: absolute; inset: 0; }
.pc-host.pc-hide { visibility: hidden; }
.pc-legend { position: absolute; top: 6px; left: 10px; right: 76px; z-index: 4; pointer-events: none; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.pc-lg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-lg-top b { color: var(--text); font: 600 13px var(--font-head); }
.pc-lg-img { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.pc-lg-img img, .pc-lg-img > * { width: 18px; height: 18px; min-width: 18px; font-size: 9px; }
.pc-lg-venue { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--cyan); background: rgba(6, 7, 11, 0.7); }
.pc-lg-tf, .pc-lg-kind { padding: 1px 6px; border-radius: 4px; background: rgba(20, 22, 31, 0.85); }
.pc-lg-ohlc { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.pc-lg-ohlc i { font-style: normal; color: var(--dim); margin-right: 3px; }
.pc-up { color: var(--pc-up); } .pc-down { color: var(--pc-down); }
.pc-tip { position: absolute; z-index: 5; pointer-events: none; max-width: 310px; padding: 5px 8px; font-size: 12px; color: var(--text); background: rgba(11, 14, 20, 0.94); border: 1px solid var(--line-2); border-radius: 6px; white-space: nowrap; }
.pc-tip[hidden], .pc-msg[hidden], .pc-skel[hidden] { display: none; }
.pc-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.pc-skel { position: absolute; inset: 56px 70px 34px 12px; display: flex; align-items: flex-end; gap: 1.6%; opacity: 0.5; }
.pc-sk { flex: 1 1 0; border-radius: 2px; background: var(--line-2); animation: pc-pulse 1.4s ease-in-out infinite; }
.pc-sk-0 { height: 34%; } .pc-sk-1 { height: 46%; } .pc-sk-2 { height: 40%; } .pc-sk-3 { height: 58%; } .pc-sk-4 { height: 52%; } .pc-sk-5 { height: 66%; } .pc-sk-6 { height: 48%; }
@keyframes pc-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) { .pc-sk { animation: none; } }
.pc-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 5px 10px 2px; font-size: 11px; color: var(--dim); }
.pc-note-hot { color: var(--warn); font-weight: 600; font-size: 12px; }
.pc-attr a { color: var(--muted); }

/* The library's own attribution mark. Its position rules normally come from a style element the library injects;
   our Content-Security-Policy does not allow that, so the same rules live here (dark variant). */
.pc-host a#tv-attr-logo { --fill: #d1d4dc; --stroke: #131722; position: absolute; left: 10px; bottom: 34px; height: 19px; width: 35px; margin: 0; padding: 0; border: 0; z-index: 3; }

/* phone: the corner legend stays on two short lines so it never sits on the candles */
@media (max-width: 520px) {
  .pc-legend { left: 8px; right: 62px; font-size: 11px; }
  .pc-lg-kind { display: none; }
  .pc-lg-ohlc { gap: 2px 7px; font-size: 11px; }
  .pc-lg-ohlc > span:last-child { display: none; }
}

/* ---------- token page: clean compact header, tighter stats, less text (js/views/coin.js) ----------
   Overrides the older token page rules in styles.css (this file loads after it). */

/* header: picture, then two tight lines */
.term-v2 .term-head { gap: 8px 20px; padding: 7px 12px; }
.term-v2 .term-id { flex: 0 1 auto; gap: 10px; align-items: center; min-width: 0; }
.term-v2 .th-img, .term-v2 .term-id .coin-img { width: 44px; height: 44px; border-radius: 6px; }
.term-v2 .coin-title { display: grid; gap: 4px; min-width: 0; flex: 1 1 auto; }
.th-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; height: 20px; }
.term-v2 .term-id h1 { flex: 0 1 auto; min-width: 0; overflow: hidden; font: 700 16px/20px var(--font-head); }
.term-v2 .th-sym { flex: none; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.term-v2 .term-name { max-width: 22ch; font: 400 13.5px/20px var(--font-head); color: var(--muted); }
.th-acts { display: inline-flex; align-items: center; gap: 1px; flex: none; }
.term-v2 .th-acts .icon-btn { width: 20px; height: 20px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--dim); cursor: pointer; }
.term-v2 .th-acts .icon-btn:hover, .term-v2 .th-acts .icon-btn:focus-visible { background: var(--chip); color: var(--text); }
.term-v2 .th-acts .icon-btn .ico { width: 13px; height: 13px; }
.term-v2 .th-acts .th-star[aria-pressed="true"] { color: var(--warn); }
.term-v2 .th-acts .th-star[aria-pressed="true"] path { fill: currentColor; }
.term-v2 .th-l1 .chip { flex: none; height: 18px; padding: 0 7px; border: 0; border-radius: 4px; font: 600 11px/18px var(--font-num); white-space: nowrap; }
.term-v2 .th-l1 .chip-curve { background: var(--blue-soft); color: var(--blue-hi); }
.term-v2 .th-l1 .chip-amm { background: rgba(47, 208, 138, 0.12); color: var(--up); }

.th-l2 { display: flex; align-items: center; gap: 8px; min-width: 0; height: 22px; font: 500 11.5px/1 var(--font-num); color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.th-l2::-webkit-scrollbar { display: none; }
.th-l2 > * { flex: none; }
.th-age { color: var(--up); font-weight: 600; }
.th-age[hidden] { display: none; }
.th-venue { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 8px 0 7px; border-radius: 999px; background: var(--chip); color: var(--text); font: 500 11px/1 var(--font-head); }
.th-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }
.tv-pool .th-dot { background: var(--up); }
.term-v2 .th-l2 .mint { font: 500 11px/1 var(--font-mono); color: var(--dim); }
.th-links { display: inline-flex; align-items: center; gap: 1px; }
.th-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; color: var(--muted); }
.th-ic:hover, .th-ic:focus-visible { background: var(--chip); color: var(--text); text-decoration: none; }
.th-ic .ico { width: 13px; height: 13px; }
.th-cnt { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font: 600 11.5px/1 var(--font-num); }
.th-cnt .ico { width: 12px; height: 12px; color: var(--dim); }

/* stat strip: small muted labels, hairline separators, the verdict as one chip at the far right */
.term-v2 .term-nums { gap: 0; }
.term-v2 .tn { gap: 6px; }
.term-v2 .tn-k { color: var(--muted); }
.term-v2 .tn-chk { display: inline-flex; align-items: center; flex: none; margin-left: auto; padding-left: 14px; text-decoration: none; }
.term-v2 .tn-chk:hover .lvl, .term-v2 .tn-chk:focus-visible .lvl { box-shadow: 0 0 0 1px var(--line-2); }
@media (min-width: 1000px) {
  .term-v2 .term-head { gap: 0 20px; padding: 6px 16px; min-height: 58px; }
  .term-v2 .tn { padding: 2px 14px; border-left: 1px solid var(--line); }
  .term-v2 .tn:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 1000px) and (max-width: 1439px) {
  .term-v2 .term-head { gap: 0 14px; }
  .term-v2 .tn { padding: 2px 10px; }
  .term-v2 .term-name { max-width: 14ch; }
}
@media (max-width: 999px) {
  .term-v2 .term-head { gap: 8px 0; }
  .term-v2 .term-id { flex: 1 1 100%; }
  .term-v2 .term-nums { gap: 8px 18px; }
  .term-v2 .tn-chk { margin-left: 0; padding-left: 0; }
}
/* phone: three columns of stats; line 2 of the header scrolls sideways */
@media (max-width: 640px) {
  .term-v2 .term-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 0; overflow: visible; }
  .term-v2 .tn { min-width: 0; padding: 0 10px; border-left: 1px solid var(--line); overflow: hidden; }
  .term-v2 .tn:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .term-v2 .tn-chk { align-self: center; padding-left: 10px; }
  .term-v2 .tn-chk:nth-child(3n + 1) { padding-left: 0; }
  .term-v2 .term-name { max-width: 14ch; }
}

/* the season / guest line: one slim row (it must not push the chart down) */
.term-v2 .coin-strip { flex-wrap: nowrap; min-height: 26px; gap: 0 14px; font: 500 11.5px/1 var(--font-head); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.term-v2 .coin-strip::-webkit-scrollbar { display: none; }
.term-v2 .coin-strip > * { flex: none; }
.strip-try { height: 20px; padding: 0 10px; border: 0; border-radius: 999px; background: #fff; color: #06070b; font: 700 11px/20px var(--font-head); cursor: pointer; }
.strip-try:hover, .strip-try:focus-visible { background: #dbe4ff; }

/* buy panel: one short line, the full explanation behind the "?" */
.term-v2 .ticket p.ticket-fine { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 9px 0 0; font: 400 11.5px/1.3 var(--font-body); color: var(--muted); }
.term-v2 .ticket p.ticket-more { margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-3); font: 400 11.5px/1.5 var(--font-body); color: var(--muted); }
.term-v2 .ticket p.ticket-more[hidden] { display: none; }
.term-v2 .tk-q[aria-expanded="true"] { border-color: var(--blue); color: var(--blue-hi); }

/* safety lines: a dot, the label in white, the detail muted, two lines at most (title on hover, tap to open) */
.term-v2 .flags { margin: 4px 0 0; padding: 0; list-style: none; }
.term-v2 .ttab-flags { margin: 0; padding: 4px 12px; }
.term-v2 .flag { gap: 8px; padding: 5px 0; border-bottom: 0; font: 400 12px/1.4 var(--font-body); cursor: pointer; }
.term-v2 .flag:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.term-v2 .flag-mark { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; }
.term-v2 .flag-txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-width: 0; overflow: hidden; }
.term-v2 .flag.open .flag-txt { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.term-v2 .flag-title { color: #fff; font-weight: 600; }
.term-v2 .flag-says { color: var(--muted); }
.term-v2 .ti-verdict { padding-top: 8px; }
.term-v2 .ti-more { margin-top: 4px; }
