/* Dashboard: chain tip and recent transactions on the left, supply and
   node facts in a narrow reference column on the right. */
.dash { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .6rem; align-items: start; }
.dash-main, .dash-side { min-width: 0; }
.dash .panel { margin-bottom: .6rem; }
.dash-main > .panel:last-child, .dash-side > .panel:last-child { margin-bottom: 0; }

.tip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 2.5rem; padding: .65rem 1rem; }
.tip-height { color: var(--ink); text-decoration: none; display: block; }
.tip-height:hover { color: var(--accent); }
.tip-label { display: block; font-size: .78rem; color: var(--ink-dim); margin-bottom: .1rem; }
.tip-num { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 2.4rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.tip-sub { display: block; font-size: .78rem; color: var(--ink-dim); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.tip-sub.gain, .gain { color: var(--gain); }
.tip-sub.loss, .loss { color: var(--loss); }
.tip-figs { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-left: auto; padding-bottom: .1rem; }
.tip-figs a, .tip-figs div { color: var(--ink); text-decoration: none; display: block; }
.tip-figs .tip-label { margin-bottom: 0; }
.tip-fig { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.tip-fig .eta { font-size: .78rem; font-weight: 400; color: var(--ink-dim); }

.side-sub { display: block; font-family: var(--serif); font-size: .75rem; color: var(--ink-dim); margin-top: .1rem; font-variant-numeric: tabular-nums; }
.dash .kv { grid-template-columns: minmax(0, 1fr); }
.dash .kv > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
.dash .kv dd.num { font-family: var(--mono); font-size: .85rem; }
.dash .kv dd.addr { font-family: var(--mono); font-size: .78rem; word-break: break-all; }

/* Transaction type filter: toggle chips under the panel title. */
.dash .panel-head { flex-wrap: wrap; gap: .3rem .9rem; }
.tx-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 auto 0 .25rem; font-weight: 400; }
.tx-pageno { font-size: .8rem; color: var(--ink-dim); font-weight: 400; }
.chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 28px; padding: 0 .7rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-dim); font-size: .8rem; font-weight: 550; transition: background .12s, border-color .12s, color .12s;
}
.chip:hover span { background: var(--hover); }
.chip input:checked + span { background: rgb(194 87 12 / .1); border-color: rgb(194 87 12 / .5); color: var(--link); }
.chip input:focus-visible + span { outline: 2px solid rgb(var(--ink-rgb) / .35); outline-offset: 1px; }
.chip-apply { height: 28px; padding: 0 .7rem; font-size: .8rem; }
.tx-kind {
  margin-right: .5rem; padding: .05rem .4rem; border-radius: 4px; background: rgb(var(--ink-rgb) / .07);
  color: var(--ink-dim); font-size: .7rem; font-weight: 550; white-space: nowrap;
}

/* Support panel: the star and listing links in the header row, the two
   donation addresses side by side below. Kept short so the dashboard fits a
   laptop window without scrolling. */
.support .panel-head { flex-wrap: wrap; gap: .3rem 1rem; }
.support-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: .82rem; font-weight: 400; }
.support-star {
  display: inline-flex; align-items: center; gap: .35rem; height: 28px; padding: 0 .65rem;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface);
  color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none;
  transition: background .12s, border-color .12s;
}
.support-star svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.support-star:hover { background: var(--hover); border-color: var(--accent); color: var(--accent); }
.support-body { padding: .5rem 1rem .6rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .5rem 1.5rem; }
.support-addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; align-items: center; align-content: start; min-width: 0; }
.support-label { font-size: .75rem; color: var(--ink-dim); font-weight: 550; }
.support-addr code {
  grid-column: 1 / -1; min-width: 0; padding: 0; background: none; font: .75rem/1.45 var(--mono);
  overflow-wrap: anywhere; user-select: all;
}
.support-copy {
  height: 24px; min-width: 3.6rem; padding: 0 .5rem; font-size: .72rem; font-weight: 550;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px;
}
.support-copy:hover { background: var(--hover); }

@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .tip-figs { margin-left: 0; }
}
@media (max-width: 760px) {
  .support-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tip { padding: .7rem .6rem; }
  .tip-num { font-size: 2rem; }
  .dash .kv > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
