/* Paper Trench: board styles (loaded after styles.css; this file belongs to one builder) */

/* ---------- Pulse: three columns that each scroll on their own; the page stays still ----------
   views/pulse.js measures the room under the board header and sets --board-h on .pulse (window height minus
   everything above it, minus the phone tab bar). Each column is a flex column: a header that never moves and a
   list that scrolls inside the rest. */
.pulse { height: var(--board-h, calc(100vh - 190px)); min-height: 280px; }
.pcol { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.pcol-head { position: sticky; top: 0; z-index: 6; flex: none; background: var(--bg); }
.pcol-body { flex: 1 1 0; height: auto; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #2a2e3a transparent; padding: 0; }
.pcol-body::-webkit-scrollbar { width: 6px; }
.pcol-body::-webkit-scrollbar-thumb { background: #2a2e3a; border-radius: 999px; }
.pcol-body::-webkit-scrollbar-thumb:hover { background: #3a4051; }
.pcol-body::-webkit-scrollbar-track { background: transparent; }
.pcol-list { padding-bottom: 12px; }
body[data-view="pulse"] .sheet { padding-bottom: 0; }
@media (min-width: 900px) {
  .pulse { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .pcol-body { height: auto; min-height: 0; max-height: none; }
  /* nothing under the board on a desktop: the small print lives in "How it works", the page has no scroll */
  body[data-view="pulse"] .pulse-fine, body[data-view="pulse"] .foot { display: none; }
}
@media (max-width: 899px) {
  body[data-view="pulse"] .pulse-fine { margin-top: 10px; padding-bottom: calc(var(--tab-h) + 16px); }
  .pcol-q { display: block; }
}

/* PAUSED: a tag that floats over the top of the list, so the header does not jump when it shows */
.pcol-paused { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 4px 9px; border-radius: 999px; background: #16224a; border: 1px solid var(--blue); color: #fff; font: 700 10px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.9); }
.pcol-paused[hidden] { display: none; }

/* the filter button: blue with a dot while a filter is on */
.pcol-filter { position: relative; }
.pcol-filter.has-f::after { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 0 2px var(--bg); }
.pcol-filter[aria-expanded="true"], .pbtn-disp[aria-expanded="true"] { background: var(--blue-soft); color: var(--blue-hi); border-color: var(--blue); }

/* ---------- panels: a column's filter, and Display ---------- */
.pp-host { position: relative; display: inline-flex; }
.ppanel { position: absolute; z-index: 40; top: 44px; right: 8px; width: 268px; max-width: calc(100vw - 16px); max-height: calc(100% - 52px); overflow-y: auto; padding: 10px 12px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0d0f15; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6); display: grid; gap: 7px; font: 500 12.5px/1.25 var(--font-head); color: var(--text); text-align: left; }
.pp-host .ppanel { top: 36px; right: 0; max-height: calc(100vh - 200px); }
.pp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-h b { font: 600 13.5px/1 var(--font-head); }
.pp-x { width: 24px; height: 24px; border-radius: 6px; color: var(--muted); }
.pp-x:hover { color: var(--text); background: var(--chip); }
.pp-x .ico { width: 13px; height: 13px; }
.pp-sub { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font: 600 10.5px/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.pp-a { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.pp-a .btn { min-height: 28px; height: 28px; padding: 0 14px; font-size: 12.5px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; cursor: pointer; }
.pf-k { color: var(--muted); white-space: nowrap; }
.pf-in { display: inline-flex; align-items: center; gap: 4px; height: 28px; width: 116px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); }
.pf-in:focus-within { border-color: var(--blue); }
.pf-in input { flex: 1 1 auto; min-width: 0; width: 100%; background: none; border: 0; outline: none; padding: 0; color: var(--text); font: 600 12.5px/1 var(--font-num); font-variant-numeric: tabular-nums; }
.pf-in input::placeholder { color: var(--dim); font-weight: 500; }
.pf-in input.bad { color: var(--down); }
.pf-u { color: var(--dim); font: 500 11px/1 var(--font-num); flex: none; }
.pf-chk { justify-content: flex-start; gap: 8px; color: var(--text); }
.pf-chk input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); flex: none; }
.pf-ps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-p { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); color: var(--blue-hi); font: 600 11px/1 var(--font-head); }
.pf-p:focus-within { border-color: var(--blue); }
.pf-p input { flex: 1 1 auto; min-width: 0; width: 100%; background: none; border: 0; outline: none; padding: 0; color: var(--text); font: 600 12.5px/1 var(--font-num); }
.pd-segs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); }
.pd-seg { height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 12px/1 var(--font-head); cursor: pointer; }
.pd-seg[aria-pressed="true"] { background: var(--chip); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pd-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 28px; padding: 0; border: 0; background: none; color: var(--text); font: 500 12.5px/1 var(--font-head); cursor: pointer; text-align: left; }
.pd-tog:hover { color: #fff; }
.pd-hid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 132px; overflow-y: auto; }
.pd-hid li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; font: 500 12px/1 var(--font-num); }
.pd-show { border: 0; background: none; padding: 2px 4px; color: var(--blue-hi); font: 600 11.5px/1 var(--font-head); cursor: pointer; }
.pd-show:hover { text-decoration: underline; }
.pd-none, .pd-keys { margin: 0; font-size: 11.5px; line-height: 1.35; }
.pd-all { justify-self: start; min-height: 26px; height: 26px; padding: 0 12px; font-size: 12px; }
.empty-f .btn { display: inline-flex; margin-top: 8px; }

/* ---------- Display settings on the rows ---------- */
.pulse[data-dense="1"] .pr-l3 { display: flex; }
.pulse[data-chips="off"] .pr-l3 { display: none; }
.pulse[data-soc="off"] .pc-soc, .pulse[data-soc="off"] .pr-handle { display: none; }
.pulse[data-dense="1"] .pc { padding-top: 4px; padding-bottom: 3px; min-height: 0; }
.pulse[data-dense="1"] .pr-img, .pulse[data-dense="1"] .pr-img .coin-img { width: 46px; height: 46px; }
.pulse[data-dense="1"] .pc { grid-template-columns: 46px minmax(0, 1fr) auto; }
.pulse[data-dense="1"] .pr-addr { display: none; }
.pulse[data-dense="1"] .pc-sym { font-size: 14px; }
.pulse[data-dense="1"] .pc-name { font-size: 13px; }
.pulse[data-pics="small"] .pr-img, .pulse[data-pics="small"] .pr-img .coin-img { width: 38px; height: 38px; font-size: 11px; }
.pulse[data-pics="small"] .pc { grid-template-columns: 38px minmax(0, 1fr) auto; }
.pulse[data-pics="small"] .pr-addr { display: none; }

/* ---------- rows: watch + hide buttons, the keyboard highlight, "price loading" ---------- */
.pr-act { position: relative; z-index: 2; width: 18px; height: 18px; border: 0; background: none; padding: 0; color: var(--dim); cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.1s; }
.pr-act .ico { width: 13px; height: 13px; }
.pr-act:hover { color: var(--text); }
.pc:hover .pr-act, .pc.kb .pr-act, .pr-act:focus-visible, .pr-star[aria-pressed="true"] { opacity: 1; }
.pr-star[aria-pressed="true"] { color: var(--warn); }
.pr-star[aria-pressed="true"] .ico path { fill: currentColor; }
@media (hover: none) { .pr-act { opacity: 1; } }
.pc.kb { background: var(--hover); box-shadow: inset 2px 0 0 var(--blue-hi), inset 0 0 0 1px rgba(77, 124, 255, 0.45); }
.pc-age.grad { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
.pc-quick { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.pc-load { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 999px; border: 1px solid rgba(77, 124, 255, 0.5); background: var(--blue-soft); color: var(--blue-hi); font: 600 10px/1 var(--font-head); letter-spacing: 0.03em; white-space: nowrap; }
.pc-load::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pcload 1.1s ease-in-out infinite; }
@keyframes pcload { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pc-load::before { animation: none; } }
.qpill.qpill-wait:disabled { opacity: 0.38; cursor: not-allowed; }
.pc.pc-wait .pr-mc b { color: var(--dim); }

/* ---------- the watchlist strip, pinned above the columns ---------- */
.pwatch { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; }
.pwatch::-webkit-scrollbar { display: none; }
.pwatch[hidden] { display: none; }
.pw-t { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-right: 4px; color: var(--warn); font: 600 10.5px/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
.pw-t .ico { width: 12px; height: 12px; }
.pw-t .ico path { fill: currentColor; }
.pw-i { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 2px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--chip); }
.pw-i:hover { border-color: var(--blue); }
.pw-a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font: 600 12px/1 var(--font-head); }
.pw-a:hover { text-decoration: none; color: #fff; }
.pwatch .coin-img, .pwatch .coin-pc { position: static; left: auto; top: auto; width: 14px; height: 14px; border-radius: 3px; border: 0; font-size: 0; object-fit: cover; flex: none; }
.pw-mc { color: var(--cyan); font: 500 11.5px/1 var(--font-num); }
.pw-mc:empty { display: none; }
.pw-mc.mc-mid { color: var(--warn); }
.pw-mc.mc-hi { color: var(--up); }
.pw-x { width: 18px; height: 18px; margin-left: 2px; border: 0; border-radius: 50%; background: none; padding: 0; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pw-x:hover { color: var(--text); background: var(--line-2); }
.pw-x .ico { width: 10px; height: 10px; }

/* ---------- phone: Display is reachable too (icon only), panels fit the screen ---------- */
@media (max-width: 899px) {
  .pulse-tools .pbtn-disp { display: inline-flex; width: 30px; padding: 0; justify-content: center; }
  .pulse-tools .pbtn-disp .pbtn-t { display: none; }
  .pp-host .ppanel { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 70vh; }
  .pcol > .ppanel { left: 8px; right: 8px; width: auto; }
}

/* ---- coin picture: a badge unique to the mint, the real picture laid over it when one loads (ui.js coinImg) ---- */
span.coin-img.coin-fb.cb { position: relative; overflow: hidden; color: #fff; border: 0; background: linear-gradient(var(--cb-ang, 135deg), var(--cb-a, #3d6bff), var(--cb-b, #7a5cff)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
span.coin-img.coin-fb.cb::after { content: ""; position: absolute; inset: 9%; border-radius: inherit; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.10); pointer-events: none; }
.cb > .cb-t { position: relative; z-index: 1; font: 800 1.5em/1 var(--font-head); letter-spacing: 0.01em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.cb > img.cb-pic { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; border: 0; border-radius: inherit; object-fit: cover; background: var(--bg-3); opacity: 0; }
.cb.has-pic > img.cb-pic { opacity: 1; }
span.coin-img.coin-fb.cb.has-pic::after { display: none; }
.cb-a0 { --cb-a: #4d7cff; } .cb-a1 { --cb-a: #5ac8ff; } .cb-a2 { --cb-a: #7a5cff; } .cb-a3 { --cb-a: #1fc98a; } .cb-a4 { --cb-a: #ff7a59; } .cb-a5 { --cb-a: #f5b83d; } .cb-a6 { --cb-a: #e0559b; } .cb-a7 { --cb-a: #2f9bd6; }
.cb-b0 { --cb-b: #2a49b8; } .cb-b1 { --cb-b: #1b7fb8; } .cb-b2 { --cb-b: #4a2fb0; } .cb-b3 { --cb-b: #0e7d5a; } .cb-b4 { --cb-b: #b8432a; } .cb-b5 { --cb-b: #a8741a; } .cb-b6 { --cb-b: #96306a; } .cb-b7 { --cb-b: #1c5f8f; }
.cb-r0 { --cb-ang: 135deg; } .cb-r1 { --cb-ang: 200deg; } .cb-r2 { --cb-ang: 45deg; }
