/* =====================================================================
   App interface (app.html only), loaded after tracer.css. 2026-10-21 rework.
   One quiet visual system for the signed-in app and the auth screens:
   - flat surfaces: a canvas, a side layer and one panel colour, hairline borders, no glows or gradients;
   - one type family (Geist) for text and figures, figures tabular; labels in sentence case;
   - green only for primary state (positive PnL, selection, focus), red only for losses and flags;
   - motion only where it says something (page switch, chart draw, press), no hover lifts, spotlights or ripples.
   The landing and the public pages keep tracer.css as it is.
   ===================================================================== */
:root {
  --bg: #07110c; --side: #0a1610; --panel: #102019; --card: #102019; --raised: #15271e;
  --line: rgba(255,255,255,0.08); --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.15);
  --edge: 0 0 0 0 transparent;
  --text: #eef2ef; --muted: #a3aea8; --faint: #87958d;
  --field: rgba(255,255,255,0.035); --field-hover: rgba(255,255,255,0.06); --field-border: rgba(255,255,255,0.1);
  --accent-glow: transparent;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 12px; --r-full: 8px;
  --hover: rgba(255,255,255,0.04);
  --side-w: 232px; --right-w: 280px;
}
/* The brand's green light from the top left, softer than on the landing. */
html {
  background:
    radial-gradient(1400px 800px at 18% -12%, rgba(61,214,140,0.09), transparent 62%),
    radial-gradient(1000px 650px at 100% 0%, rgba(61,214,140,0.05), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}
html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner { background: var(--bg); }
body { font-size: 14px; color: var(--text); }
::selection { background: rgba(61,214,140,0.24); }
.main { background: none; }

/* ---------- Type: one family, sentence-case labels, calm figures ---------- */
.mono, .statTile .v, .jcStat .v, .calCell .pnl, .bwCard .v, .recentRow .pnl, .tdStat .v, .heroValue, .tdHeroV, .tdHeroSub b,
.cbTotal b, .cbLegend, .bellDot, .notifVer, .dbChip b, .dbSess i, .obNum, .obExTag, .drItem b, .dsPro, .dsFacts b, .dsPick i, .dsSessMain i,
.dsRuleVal .input, .panelCount, .opStats b, .jOpenHead span, .jsbCount b, .chTick, .cfType b, .wlAudience b, .pqOpts.tiles .pqTxt b,
.plN, .plWv b, .tourNum, .stChartSum b, .stTick, .stTip b, .stKv b, .stV, .stStepTop b {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0;
}
/* The mint stays in the mono face: it is an address people compare character by character. */
.tdStat[style*="grid-column"] .v { font-family: "Geist Mono", ui-monospace, monospace; color: var(--muted); }

.heroLabel, .statTile .k, .chartHead .label, .csTag, .csLabel, .msg.model h4, .fSec h4, .notifNew, .jcStat .k, .calDow, .bwCard .lbl,
.tdStat .k, .tdNotesLabel, .sellRow.sellHead, .dbBadge, .obExTag, .drK, .dsPro, .dsPickK, .stSubhead, .opStats span, .jOpenHead, .tdHero .k,
.plK, .tsTag, .wlF > span, .wlTh, .stAccTh, .tskToday, .tskTag {
  text-transform: none; letter-spacing: 0;
}
.heroLabel, .statTile .k, .jcStat .k, .bwCard .lbl, .tdStat .k, .tdHero .k, .opStats span, .dsPickK, .plK, .stSubhead, .wlF > span {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.chartHead .label, .tdNotesLabel, .fSec h4, .jOpenHead, .panelHead {
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.tdNotesLabel small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.up { color: var(--green); } .down { color: #f4676c; }

/* ---------- Effects switched off: cursor glow, card spotlight, click ripple, glows, enter cascades ---------- */
#cursorGlow, .ripple { display: none !important; }
.statTile::before, .bwCard::before, .chartCard::before, .journalCard::before, .calCell::before,
.statTile::after, .bwCard::after, .journalCard::after, .calCell::after { content: none; }
.chartCard::after { opacity: 1; background: none; }
.enter > * { animation: none; }
.heroValue.up, .heroValue.down, .tdHeroV.up { text-shadow: none; }
.dbDot, .openBadge::before { animation: none; }
#loadingBar { box-shadow: none; }
.connStatus .dot.ok, .status.ok::before { box-shadow: none; }

/* ---------- Controls ---------- */
.btn, .iconBtn {
  min-height: 32px; padding: 6px 12px; gap: 6px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  font-size: 13px; font-weight: 500; box-shadow: none;
}
.iconBtn { width: 32px; padding: 0; color: var(--muted); opacity: 1; }
.btn.primary { background: #f3f6f4; color: #06100b; border-color: transparent; box-shadow: none; font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.lg { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn.danger { background: transparent; border-color: rgba(240,86,92,0.4); color: #f4676c; }
.btn.shareX { background: #f3f6f4; color: var(--accent-ink); border-color: transparent; box-shadow: none; font-weight: 600; }
.btn.shareX:hover { box-shadow: none; }
/* Flex dialog: "Copy image & open X" is the dialog's main action, white like the app's other primary buttons. */
#shToX { background: #f3f6f4; color: #06100b; }
@media (hover: hover) and (pointer: fine) { #shToX:not(:disabled):hover { background: #fff; color: #06100b; } }
.btn:disabled { opacity: .45; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):not(.dictating):hover, .iconBtn:not(.dictating):hover { background: var(--hover); border-color: rgba(255,255,255,0.22); box-shadow: none; color: var(--text); }
  /* Filled buttons keep their dark ink on hover (the generic hover above sets light text). */
  .btn.primary:not(:disabled):hover, .btn.chatSend:not(:disabled):hover { background: #fff; border-color: transparent; color: #06100b; }
  .btn.shareX:not(:disabled):hover { background: #fff; color: var(--accent-ink); }
  .btn.chatSend:not(:disabled):hover svg { transform: none; }
  .btn.ghost:not(:disabled):hover { border-color: transparent; }
  .btn.danger:hover { background: rgba(240,86,92,0.1); border-color: rgba(240,86,92,0.55); box-shadow: none; }
  #refresh:hover svg, .modalHead button:hover svg { transform: none; }
}
.btn.primary:not(:disabled) { transition: background-color 150ms ease, transform 160ms var(--ease-out); }

.tabs { gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; box-shadow: none; }
.tab { padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tab.active, .tabs .slideInd { background: rgba(255,255,255,0.08); box-shadow: none; }
.tabs .slideInd { border-radius: 6px; }
.tab.active { color: var(--text); }
#periodTabs { width: max-content; max-width: 100%; margin-bottom: 22px; }
#unitToggle .tab { padding: 5px 10px; }

.input { background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--r-md); }
.input:focus, .searchBox input:focus, .notes:focus, .tdNotes:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.searchBox input { border-radius: var(--r-md); background: var(--panel); border-color: var(--border); box-shadow: none; padding: 7px 10px 7px 31px; font-size: 13px; min-height: 32px; }

.badge { border-radius: var(--r-sm); background: transparent; font-weight: 500; font-size: 12px; color: var(--muted); }

/* Menus, popovers, toasts: one raised layer. */
.emoMenu, .jPop, .toast, .hintBox, .chartTooltip, .jSelBar {
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.emoMenu button, .jPop.sort button { border-radius: 6px; }
.emoMenu button.on, .jPop.sort button.on { background: rgba(61,214,140,0.1); }
.fPill { border-radius: var(--r-md); background: transparent; border-color: var(--border-strong); font-weight: 500; font-size: 13px; }
.fPill.on { background: rgba(61,214,140,0.1); border-color: rgba(61,214,140,0.45); }
.jChip { border-radius: var(--r-md); background: rgba(61,214,140,0.08); border-color: rgba(61,214,140,0.3); font-weight: 500; }

/* ---------- Shell ---------- */
.shell { grid-template-columns: var(--side-w) minmax(0, 1fr) var(--right-w); }
@media (max-width: 1140px) { .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); } }

.sidebar { background: var(--side); border-right: 1px solid var(--border); padding: 20px 12px 16px; }
.brand { margin: 2px 10px 28px; }
.brand img { height: 20px; }
.navLabel { margin: 0 10px 6px; font-size: 12px; font-weight: 500; color: var(--faint); text-transform: none; letter-spacing: 0; }
.navSep { margin-top: 24px; }
nav#pageNav { gap: 2px; }
.navItem { gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.navItem svg { width: 16px; height: 16px; opacity: .85; }
.navItem.active, #pageNav .slideInd { background: rgba(255,255,255,0.07); box-shadow: none; }
#pageNav .slideInd { border-radius: 7px; }
.navItem.active { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .navItem:not(.active):hover { color: var(--text); background: var(--hover); transform: none; }
  .navItem:not(.active):hover:active { transform: scale(0.98); }
  .navItem:hover svg { transform: none; }
}
.sidebarFooter { padding: 12px 0 0; }
#pageNavBottom { margin: 0 0 8px; }
/* Links to the terminals the extension works on */
.platNav { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.platNav .navLabel { margin-bottom: 4px; }
.platLink { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.platLink img { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.platLink span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platLink svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0; transition: opacity 150ms ease; }
.platLink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .platLink:hover { color: var(--text); background: var(--hover); }
  .platLink:hover svg { opacity: .7; }
}
.userChip { padding: 6px 10px; margin-bottom: 10px; border-radius: 7px; }
.userChip:hover { background: var(--hover); }
.ucAvatar { width: 28px; height: 28px; font-size: 12px; }
.ucName { font-weight: 500; }
.connStatus { padding: 0 10px; font-weight: 500; font-size: 12px; }
.projId { padding: 0 10px; }

.rightPanel { background: var(--side); border-left: 1px solid var(--border); padding: 24px 16px; }
.panelHead { margin: 0 6px 10px; }
.panelLink { font-size: 12.5px; font-weight: 500; }

.main { padding: 26px 36px 64px; }
.topRow { align-items: center; margin-bottom: 18px; }
.pageTitle { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.topActions { gap: 6px; }

.appFoot { margin-top: 48px; color: var(--faint); font-size: 12px; }
.appFoot a { color: var(--faint); }

/* ---------- Panels ---------- */
.chartCard, .acCard, .debrief {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: none;
}
.chartCard { padding: 18px 20px; margin-bottom: 16px; }
.chartHead { margin-bottom: 12px; }
.chartHead .val { padding: 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .statTile:hover, .bwCard:hover, .chartCard:hover { border-color: var(--border); } }

/* ---------- Dashboard: the debrief reads like a line in a journal ---------- */
.debrief { padding: 20px 22px 18px; margin-bottom: 14px; }
.debrief.alert, .debrief.warn { background: var(--panel); border-color: var(--border); }
.debrief.alert { --db: #f4676c; }
.dbHead { gap: 10px; margin-bottom: 10px; }
.dbBadge { gap: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
.dbDot { width: 8px; height: 8px; background: var(--db); }
.dbPeriod { color: var(--muted); font-size: 13px; }
.dbMain { max-width: 64ch; font-size: 19px; font-weight: 450; line-height: 1.5; letter-spacing: -0.012em; color: var(--text); }
.dbMain b { font-weight: 650; }
.debrief.alert .dbMain b { color: #f4676c; }
.dbChips { gap: 6px; margin-top: 14px; }
.dbChip { padding: 5px 10px; border-radius: var(--r-md); background: rgba(255,255,255,0.035); border: 1px solid transparent; color: var(--muted); font-size: 12.5px; }
.dbChip b { color: var(--text); font-weight: 600; }
.dbChip.bad b { color: #f4676c; }
button.dbChip { font-size: 12.5px; }
button.dbChip:hover { background: rgba(255,255,255,0.06); border-color: transparent; }
.dbSessions { gap: 6px; margin-top: 16px; padding-top: 14px; }
.dbSess { background: transparent; border-color: var(--border); border-radius: var(--r-md); padding: 7px 11px; }
.dbSess b { font-weight: 500; }
.dbSess.on { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.dbSess.alert:not(.on) { border-color: var(--border); }
.dbFlex:hover { border-color: rgba(255,255,255,0.22); background: var(--hover); }

/* Discipline line: plain text under the debrief, not another box. */
.discRow { margin: 0 0 22px; padding: 0 4px; border: 0; background: none; font-size: 13px; gap: 6px 18px; }
.drK { color: var(--text); font-size: 13px; font-weight: 600; margin-right: 6px; }
.drItem b { font-weight: 600; }
.drGo { min-height: 28px; padding: 4px 10px; font-size: 12.5px; }

/* Summary: the period's PnL in its own card on the left, then one card per figure. */
.sumRow { display: grid; grid-template-columns: minmax(200px, 0.85fr) minmax(0, 2fr); gap: 12px; margin-bottom: 16px; }
#page-dashboard.onboarding .sumRow { display: none; }
.sumRow .hero {
  display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl);
}
.heroValue { margin-top: 6px; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
.heroSub { margin-top: 8px; font-size: 12.5px; }
.heroSub b { font-weight: 600; color: var(--text); }
.statGrid { gap: 12px; margin-bottom: 16px; }
.sumRow .statGrid { margin: 0; }
.statTile { padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: none; }
.statTile .v { margin-top: 5px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
#statGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dsStats { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.chartsRow { gap: 16px; margin-bottom: 16px; }
.chartsRow .chartCard { margin-bottom: 0; }
.chTick { stroke: var(--panel); }

/* ---------- Coach (Tick) ---------- */
#aiCard { border-color: var(--border); background: var(--panel); box-shadow: none; }
#aiCard > .chartHead { margin-bottom: 10px; }
#aiCard .coachLabel { gap: 10px; font-size: 15px; font-weight: 600; }
#aiCard .coachSub { color: var(--muted); font-size: 13.5px; font-weight: 400; }
#aiCard .coachLabel .coachFace { width: 24px; }
.chatMemory { background: var(--bg); }
.csInsight { padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(255,255,255,0.025); box-shadow: none; }
.csInsight.alert { border-color: rgba(240,86,92,0.3); background: rgba(240,86,92,0.05); }
.csInsight.example { border-style: dashed; border-color: var(--border-strong); background: transparent; }
.csTag { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.csInsight.example .csTag { color: var(--muted); }
.csLabel { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.csChip { min-height: 34px; padding: 7px 13px; border-radius: var(--r-md); background: transparent; border-color: var(--border-strong); font-weight: 500; }
.csChip span { color: var(--faint); }
.csChip:hover { border-color: rgba(255,255,255,0.24); background: var(--hover); transform: none; }
.msg { border-radius: var(--r-lg); }
.msg.user { background: rgba(255,255,255,0.06); border: 1px solid transparent; }
.msg.model { background: transparent; border: 1px solid var(--border); box-shadow: none; }
.msg.model h4 { font-size: 13px; font-weight: 600; color: var(--text); }
.typing { background: transparent; }
.chatInputRow { background: var(--bg); border-color: var(--border-strong); border-radius: var(--r-lg); box-shadow: none; }
.chatInputRow:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Tick's send button: a solid white square with dark ink, quiet grey while there is nothing to send. */
.btn.chatSend { min-height: 34px; width: 34px; height: 34px; background: #f3f6f4; color: #06100b; border: 0; box-shadow: none; border-radius: 8px; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.btn.chatSend svg { transition: none; }
.btn.chatSend:disabled { background: rgba(255,255,255,0.07); color: var(--faint); cursor: default; }

/* ---------- Right panel ---------- */
.bwGrid { gap: 2px; }
.bwCard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 9px 8px; background: none; border: 0; border-radius: var(--r-md); }
.bwCard .top { margin: 0; gap: 10px; }
.bwCard .v { font-size: 13.5px; font-weight: 600; margin: 0; }
.bwTicker { font-size: 13px; font-weight: 600; margin-top: 1px; }
.bwCard .lbl { font-size: 12px; }
.bwLinks {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%; margin: 0; padding-left: 10px; gap: 10px;
  background: var(--raised); border-radius: var(--r-md); opacity: 0; pointer-events: none; transition: opacity 120ms ease;
}
.bwLinks a { font-size: 12px; font-weight: 500; }
.bwOpen:hover, .bwOpen:focus-within { background: var(--hover); }
.bwOpen:hover .bwLinks, .bwOpen:focus-within .bwLinks { opacity: 1; pointer-events: auto; background: #151d1a; }
@media (hover: none) { .bwLinks { position: static; translate: none; grid-column: 1 / -1; opacity: 1; pointer-events: auto; background: none; padding: 6px 0 0; } }
.avatar { box-shadow: none; }
div.avatar { background: #1a2420 !important; color: var(--muted); font-weight: 600; }
.recentList { gap: 0; }
.recentRow { padding: 8px; gap: 10px; border-radius: var(--r-md); }
.recentRow .tokName { font-size: 13px; font-weight: 500; }
.recentRow .tokDate { font-size: 12px; }
.recentRow .pnl { font-size: 13px; font-weight: 600; }
.rRow { position: relative; gap: 0; }
.rFlex { position: absolute; right: 4px; top: 50%; translate: 0 -50%; margin: 0; opacity: 0; pointer-events: none; background: #151d1a; }
.rRow:hover .rFlex, .rRow:focus-within .rFlex { opacity: 1; pointer-events: auto; }
/* Hovering the button itself must stay solid: .flexMini:hover is a see-through green tint, and the trade's % showed through it. */
.rFlex:hover, .rFlex:focus-visible { background: #182c23; }
/* The button is a little narrower than a long %: while Flex is shown the trade's % steps aside instead of sticking out beside it. */
@media (hover: hover) {
  .recentRow .pnl { transition: opacity 120ms ease; }
  .rRow:has(.rFlex):hover .recentRow .pnl, .rRow:has(.rFlex):focus-within .recentRow .pnl { opacity: 0; }
}
.rRow:hover .recentRow, .rRow:focus-within .recentRow { background: var(--hover); }
@media (hover: none) { .rFlex { position: static; translate: none; opacity: 1; pointer-events: auto; background: none; } }
.recentEmpty { padding: 6px 8px; font-size: 12.5px; }
.openPos { border-color: var(--border); background: var(--panel); }
@media (hover: hover) and (pointer: fine) {
  .recentRow:hover, .recentRow:hover:active { background: var(--hover); transform: none; }
  .recentRow:hover .avatar, .bwCard:hover .avatar, .journalCard:hover .jcAvatar .avatar { transform: none; }
}

/* ---------- Journal: one card per trade, row actions on hover ---------- */
.filterRow { margin-bottom: 14px; }
.jToolBtn { padding: 6px 12px; }
.journalList { gap: 8px; }
.journalCard { gap: 14px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: none; }
.jcAvatar .avatar { width: 36px; height: 36px; border-radius: var(--r-md); font-size: 12px; }
.jcTop { gap: 8px; margin-bottom: 1px; }
.jcTop a.tok { font-size: 14px; font-weight: 600; }
.jcMeta { font-size: 12.5px; margin-bottom: 4px; }
.jcTop .jcMark { margin-left: auto; }
.jcTop .flexMini { order: 2; }
.emoBtn { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; border-color: var(--border-strong); }
.emoBtn.set { background: rgba(255,255,255,0.05); border-color: transparent; }
.flexMini { height: 24px; border-radius: 6px; font-weight: 500; font-size: 12px; }
.notes { padding: 4px 8px; margin-left: -8px; border-color: transparent; background: transparent; font-size: 13px; }
.notes::placeholder { color: var(--faint); }
/* Size and its bar on the left, the result on the right; the column labels stay for screen readers. */
.jcStats { display: grid; grid-template-columns: 76px 104px; grid-template-rows: auto auto; column-gap: 18px; row-gap: 6px; align-items: start; }
.jcStat { min-width: 0; text-align: right; }
.jcStat:nth-child(1) { grid-column: 1; grid-row: 1; }
.jcStat:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.jcStat:nth-child(3) { grid-column: 1; grid-row: 2; }
.jcStat .k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jcStat .v { margin: 0; font-size: 14px; font-weight: 600; }
.jcStat:nth-child(1) .v { color: var(--muted); font-weight: 500; font-size: 13px; }
.jcStat .v .pct { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; opacity: .8; }
.barTrack { width: 100%; height: 3px; margin: 0; background: rgba(255,255,255,0.07); }
.barFill { background: rgba(255,255,255,0.45); box-shadow: none; }
.rowDelete { color: var(--faint); padding: 7px; }
@media (hover: hover) and (pointer: fine) {
  .journalCard .flexMini, .journalCard .jcMark[aria-pressed="false"], .journalCard .rowDelete, .journalCard .jcDictate { opacity: 0; transition: opacity 120ms ease; }
  .journalCard:hover .flexMini, .journalCard:focus-within .flexMini,
  .journalCard:hover .jcMark, .journalCard:focus-within .jcMark,
  .journalCard:hover .rowDelete, .journalCard:focus-within .rowDelete { opacity: 1; }
  .journalCard:hover .jcDictate, .journalCard:focus-within .jcDictate { opacity: .6; }
  .journalCard:hover { background: #111816; border-color: rgba(255,255,255,0.14); transform: none; box-shadow: none; }
  .notes:not(:focus):hover { background: var(--field); border-color: transparent; }
  .rowDelete:hover { color: #f4676c; background: rgba(240,86,92,0.1); }
  .rowDelete:hover svg { animation: none; }
  .starRow .starBtn:hover, .starRow .starBtn:hover ~ .starBtn { transform: none; }
}
.journalCard.marked, .journalCard.marked:hover { background: rgba(251,191,36,0.05); border-color: rgba(251,191,36,0.35); }
.journalCard.sel { background: rgba(61,214,140,0.07); border-color: rgba(61,214,140,0.45); }
.journalCard.isOpen { border-style: dashed; border-color: rgba(61,214,140,0.3); }
.openBadge { border-radius: 6px; font-weight: 600; letter-spacing: 0; }
.jOpenPos .openPos { background: var(--panel); }
.empty { color: var(--muted); }

/* ---------- Calendar: one card per day ---------- */
.calHeader { gap: 8px; margin-bottom: 16px; }
#calTitle { min-width: 140px; font-size: 15px; font-weight: 600; }
.calBar { margin: 0 0 18px; }
.cbTotal { text-align: left; margin-bottom: 10px; font-size: 13.5px; }
.cbTotal b { font-weight: 600; }
.cbTrack { height: 4px; background: rgba(244,103,108,0.75); }
.cbWin { box-shadow: none; }
.cbLegend { margin-top: 8px; font-size: 12.5px; font-weight: 500; }
.calGrid { gap: 8px; }
.calDow { padding: 0 2px 2px; text-align: left; font-size: 12px; font-weight: 500; color: var(--faint); }
.calCell { min-height: 80px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: none; }
.calCell.dim { opacity: 1; background: transparent; border: 1px dashed rgba(255,255,255,0.08); box-shadow: none; }
.calCell.dim .day { color: rgba(135,149,141,0.55); }
.calCell .day { font-size: 12.5px; color: var(--muted); }
.calCell .pnl { margin-top: 12px; font-size: 13px; font-weight: 600; }
.calCell .cnt { font-size: 12px; color: var(--faint); }
.calCell.upCell { background: rgba(61,214,140,0.07); border-color: rgba(61,214,140,0.22); }
.calCell.downCell { background: rgba(244,103,108,0.07); border-color: rgba(244,103,108,0.22); }
@media (hover: hover) and (pointer: fine) {
  .calCell.hasTrades:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.22); }
  .calCell.upCell.hasTrades:hover { border-color: rgba(61,214,140,0.45); }
  .calCell.downCell.hasTrades:hover { border-color: rgba(244,103,108,0.45); }
  .calCell.hasTrades:hover:active { transform: none; }
}
.calCell.hasTrades:active { transform: none; }

/* ---------- Discipline ---------- */
.dsTop { margin-bottom: 16px; }
.dsWeekLabel { font-size: 15px; font-weight: 600; min-width: 190px; }
.dsPro { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border-strong); background: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.dsCard { margin-bottom: 16px; }
.dsLead { font-size: 13.5px; }
.dsFacts b { font-weight: 600; }
.dsPick, .dsSessRow { background: transparent; border-color: var(--border); border-radius: var(--r-lg); }
.dsPick.bad { border-color: rgba(240,86,92,0.3); }
.dsPick.good { border-color: rgba(61,214,140,0.3); }
.dsPick:hover, .dsSessRow:hover { border-color: rgba(255,255,255,0.22); background: var(--hover); }
.dsOk, .dsBad { border-radius: 6px; font-size: 12px; font-weight: 500; }
.dsOk { background: transparent; border-color: rgba(61,214,140,0.35); }
.dsBad { background: transparent; border-color: rgba(240,86,92,0.35); }
.dsRuleSwitch b { font-weight: 600; }
.dsUnit { font-size: 12.5px; }

/* ---------- Account ---------- */
.acGrid { gap: 16px; }
.acCard { padding: 20px 22px; }
.acCard h2, .acCard h3 { font-size: 15px; font-weight: 600; }
.acAvatar { width: 44px; height: 44px; font-size: 17px; font-weight: 600; }
.acName { font-weight: 600; }
.acRow b { font-weight: 500; }
.meter { height: 4px; }
.status { font-weight: 500; }

/* ---------- Onboarding: steps on the canvas, one list ---------- */
.onboard { padding: 36px 0 28px; margin-bottom: 8px; background: none; border: 0; box-shadow: none; text-align: left; }
.onboard > h2, .onboard > p, .obSteps, .obExample, .onboard > .obTour { margin-left: 0; margin-right: 0; }
.obIcon { display: none; }
.onboard h2 { max-width: none; margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.onboard p { max-width: 560px; margin: 0 0 22px; font-size: 14px; }
.obSteps { max-width: 640px; gap: 0; margin: 0 0 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); }
.obStep { padding: 16px 18px; border: 0; border-radius: 0; background: none; border-top: 1px solid var(--border); }
.obStep:first-child { border-top: 0; }
.obStep.current { background: none; border-color: var(--border); }
.obStep b { font-size: 14px; font-weight: 600; }
.obNum { width: 26px; height: 26px; font-size: 12.5px; font-weight: 600; }
.obStep.current .obNum { border-color: var(--accent); color: var(--accent); }
.obTour { padding-left: 0; }
.obExample { max-width: 640px; margin-top: 28px; }
.obExTag { padding: 0; border: 0; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 10px; }
html.mobile .obMobile { border-radius: var(--r-lg); background: rgba(61,214,140,0.06); border-color: rgba(61,214,140,0.25); }

/* ---------- Modals ---------- */
.modalOverlay { background: rgba(2,5,4,0.66); -webkit-backdrop-filter: none; backdrop-filter: none; }
.confirmOverlay { background: rgba(2,5,4,0.66); -webkit-backdrop-filter: none; backdrop-filter: none; }
.modalCard, .confirmCard { background: var(--raised); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,0.55); }
.modalHead .title { font-size: 15px; font-weight: 600; }
#tradeModal .modalHead .title { text-transform: none; }
.modalHead button { border-radius: 7px; }
#tradeModal .modalCard { padding: 20px 24px 22px; }
.tdHead { gap: 12px; margin-bottom: 18px; }
.avatarLg .avatar { width: 40px; height: 40px; border-radius: var(--r-md); }
.tdName { font-size: 17px; font-weight: 600; }
.tdLink { font-size: 12.5px; font-weight: 500; }
.tdHero { padding: 0 0 16px; }
.tdHeroV { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; }
.tdHeroSub b { font-weight: 600; }
/* Details as a ruled list of facts, not a grid of small boxes. */
.tdGrid { gap: 0 20px; margin-bottom: 22px; border-top: 1px solid var(--border); }
.tdStat, .chainRow .tdStat { padding: 11px 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.tdStat .v { margin-top: 4px; font-size: 14px; font-weight: 500; }
.chainRow { gap: 0 20px; border-top: 1px solid var(--border); }
.tdChain { margin-bottom: 20px; }
.tdNotesLabel { margin-bottom: 8px; }
.emoPill { min-height: 32px; padding: 6px 12px; border-radius: var(--r-md); background: transparent; border-color: var(--border-strong); font-size: 13px; font-weight: 500; }
.emoPill.active { background: rgba(61,214,140,0.1); border-color: rgba(61,214,140,0.45); animation: none; }
@media (hover: hover) and (pointer: fine) { .emoPill:not(.active):hover { transform: none; background: var(--hover); } }
.tdNotes { background: var(--bg); border-radius: var(--r-lg); }
.sellRow { background: none; border-color: var(--border); border-radius: var(--r-md); font-size: 12.5px; }
.sellRow.sellHead { font-size: 12px; font-weight: 500; }
.notifItem { background: transparent; border-radius: var(--r-lg); }
.notifItem.unread { border-color: rgba(61,214,140,0.35); }
.notifVer { border-radius: 6px; font-weight: 500; }
.notifNew { font-size: 12px; font-weight: 600; }
.shImgWrap { border-radius: var(--r-lg); }
.seg { border-radius: 9px; background: var(--bg); }
.seg button { border-radius: 6px; font-weight: 500; }
.seg button.on { background: rgba(255,255,255,0.08); color: var(--text); }
.cfIcon { background: rgba(255,255,255,0.05); }

/* ---------- Floating buttons ---------- */
.btn.tickDock { --dockL: calc(var(--side-w) + (100vw - var(--side-w) - var(--right-w)) / 2); min-height: 38px; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
@media (max-width: 1140px) { .btn.tickDock { --dockL: calc(var(--side-w) + (100vw - var(--side-w)) / 2); } }
@media (max-width: 720px) { .btn.tickDock { --dockL: 50%; } }
html.mobile .btn.tickDock { --dockL: 50%; }
.fbBadge { border-radius: 9px; background: var(--raised); box-shadow: none; }
.fbBox { border-color: var(--border); background: rgba(255,255,255,0.025); border-radius: var(--r-lg); }
.fbBtns button { border-radius: var(--r-md); font-weight: 500; }

/* ---------- Auth ---------- */
.au { background: none; }
.auCard { background: var(--panel); border-color: var(--border); border-radius: 16px; box-shadow: none; padding: 30px 28px 28px; }
.auCard h1, .auCard h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auTop .tabs { padding: 2px; }
.auTop .tab { padding: 5px 11px; }
.field label { font-weight: 500; }
#authForm .input { min-height: 42px; }

/* ---------- Phones ---------- */
html.mobile .main { padding-left: 16px; padding-right: 16px; }
html.mobile .pageTitle { font-size: 20px; }
html.mobile .heroValue { font-size: 28px; }
html.mobile .sumRow { grid-template-columns: 1fr; gap: 8px; }
html.mobile .sumRow .hero { padding: 16px; }
html.mobile #statGrid, html.mobile .dsStats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html.mobile .statTile { padding: 12px 14px; }
html.mobile .debrief { padding: 16px; }
html.mobile .dbMain { font-size: 16.5px; }
html.mobile .discRow { padding: 0 2px; }
html.mobile .journalCard { padding: 12px; }
html.mobile .journalCard .jcStats { display: flex; justify-content: space-between; border-top-color: var(--border); }
html.mobile .journalCard .jcStat { text-align: left; }
html.mobile .journalCard .jcStat:nth-child(3) { display: none; }
/* On a phone a row keeps its name, emotion, rating and flag on one line; Flex stays one tap away in the trade's details. */
html.mobile .journalCard .jcTop .flexMini { display: none; }
html.mobile .journalCard .jcTop { padding-right: 26px; }
html.mobile .journalCard .jcMark { position: absolute; top: 10px; right: 8px; margin: 0; }
html.mobile .jToolBtn { white-space: nowrap; padding: 6px 8px; }
html.mobile .calGrid { gap: 4px; }
html.mobile .calCell { min-height: 56px; padding: 5px; border-radius: var(--r-sm); }
html.mobile .calCell .pnl { margin-top: 8px; font-size: 11px; letter-spacing: -0.02em; }
html.mobile .calDow { padding: 0 2px; font-size: 11px; }
html.mobile .mTabBar { background: rgba(10,15,13,0.96); }
html.mobile .mTab { font-weight: 500; }
html.mobile .mTab.active { color: var(--text); background: rgba(255,255,255,0.07); }
html.mobile .onboard { padding: 20px 0; }
html.mobile .obSteps { max-width: none; }
html.mobile .tdGrid { grid-template-columns: 1fr 1fr; gap: 0 14px; }
html.mobile .modalCard { border-radius: 14px 14px 0 0; }
@media (max-width: 1240px) and (min-width: 821px) { .dsStats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Colour and card effects (2026-10-21, second pass) ----------
   The brand green comes back as light, not decoration: tinted side columns, green selection, a faint wash on the
   cards that carry a result (PnL, debrief, coach). Cards answer the pointer with one simple move: a 2px lift,
   a soft shadow and a green edge. */
.sidebar, .rightPanel { background: rgba(10,22,16,0.72); }
.navItem.active, #pageNav .slideInd { background: rgba(61,214,140,0.11); }
.tab.active, .tabs .slideInd { background: rgba(61,214,140,0.14); }
.tab.active { color: #fff; }
.chartCard, .acCard, .debrief, .statTile, .sumRow .hero, .journalCard, .calCell:not(.dim), .auCard {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
/* Cards that carry a result take its colour, faintly. */
.sumRow .hero:has(.heroValue.up) { background: linear-gradient(135deg, rgba(61,214,140,0.12), transparent 70%), var(--panel); border-color: rgba(61,214,140,0.25); }
.sumRow .hero:has(.heroValue.down) { background: linear-gradient(135deg, rgba(244,103,108,0.12), transparent 70%), var(--panel); border-color: rgba(244,103,108,0.25); }
.debrief.alert { background: linear-gradient(90deg, rgba(244,103,108,0.10), transparent 60%), var(--panel); border-color: rgba(244,103,108,0.3); }
.debrief.warn { background: linear-gradient(90deg, rgba(245,185,66,0.08), transparent 60%), var(--panel); border-color: rgba(245,185,66,0.28); }
.debrief.ok { background: linear-gradient(90deg, rgba(61,214,140,0.08), transparent 60%), var(--panel); border-color: rgba(61,214,140,0.25); }
#aiCard { background: linear-gradient(180deg, rgba(61,214,140,0.07), transparent 160px), var(--panel); border-color: rgba(61,214,140,0.25); }
.csChip span { color: var(--accent); }
.journalCard.marked, .journalCard.marked:hover { background: linear-gradient(90deg, rgba(251,191,36,0.09), transparent 70%), var(--panel); }

.statTile, .sumRow .hero, .chartCard, .journalCard, .calCell, .acCard, .bwCard, .dsPick, .dsSessRow {
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .statTile:hover, .sumRow .hero:hover, .acCard:hover, .chartsRow .chartCard:hover,
  .journalCard:hover, .calCell.hasTrades:hover, .dsPick:hover, .dsSessRow:hover {
    transform: translateY(-2px); border-color: rgba(61,214,140,0.32);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 28px rgba(0,0,0,0.35);
  }
  .journalCard:hover { background: var(--panel); }
  .journalCard.sel:hover { background: rgba(61,214,140,0.07); }
  .calCell.upCell.hasTrades:hover { border-color: rgba(61,214,140,0.55); }
  .calCell.downCell.hasTrades:hover { border-color: rgba(244,103,108,0.55); }
  .bwOpen:hover { background: rgba(61,214,140,0.07); }
  .journalCard:active, .calCell.hasTrades:active { transform: translateY(-1px) scale(0.995); }
}
.journalList.selecting .journalCard:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .statTile, .sumRow .hero, .chartCard, .journalCard, .calCell, .acCard, .bwCard, .dsPick, .dsSessRow { transition: border-color 150ms ease, background-color 150ms ease; }
  .statTile:hover, .sumRow .hero:hover, .acCard:hover, .chartsRow .chartCard:hover, .journalCard:hover, .calCell.hasTrades:hover, .dsPick:hover, .dsSessRow:hover { transform: none; }
}
html.mobile .sidebar, html.mobile .rightPanel { background: var(--side); }

/* ---------- Darker pass (2026-10-22) ----------
   More contrast: the canvas goes much darker and every surface steps down with it, so cards still read
   against the canvas and text stands out more. Softened a notch the same day (lighter canvas, off-white text) for comfort. Borders gain a touch of strength to keep the cards' edges. */
:root {
  --bg: #050b08; --side: #070e0a; --panel: #0d1813; --card: #0d1813; --raised: #111f18;
  --text: #e3e9e5;
  --line: rgba(255,255,255,0.085); --border: rgba(255,255,255,0.085); --border-strong: rgba(255,255,255,0.16);
  --field: rgba(255,255,255,0.03); --field-hover: rgba(255,255,255,0.055);
}
html {
  background:
    radial-gradient(1400px 800px at 18% -12%, rgba(61,214,140,0.07), transparent 62%),
    radial-gradient(1000px 650px at 100% 0%, rgba(61,214,140,0.04), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}
.sidebar, .rightPanel { background: rgba(7,14,10,0.78); }
html.mobile .mTabBar { background: rgba(3,7,5,0.96); }
div.avatar { background: #111a15 !important; }

/* ---------- Debrief with no trades in the period (2026-10-22) ----------
   The generic .empty class centred this line inside a 64ch box, so it sat almost but not quite in the middle.
   It now reads left like every other verdict, quieter, with "Show all time" as a small button beside it. */
.debrief.empty { text-align: left; }
.debrief.empty .dbMain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--muted); }
.dbJump {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 4px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md); background: transparent;
  color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.dbJump::after { content: "→"; color: var(--muted); transition: transform 200ms var(--ease-out), color 150ms ease; }
.dbJump:active { transform: scale(0.97); }
.dbJump:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .dbJump:hover { background: var(--hover); border-color: rgba(255,255,255,0.22); }
  .dbJump:hover::after { transform: translateX(3px); color: var(--text); }
}

/* ---------- Footer: the X logo on the same line as the links ----------
   .footX pulls itself up with negative margins for the landing's inline footer; in the app's flex row
   that put it 8px above the links. Here it is centred with them and sized to the 12px text. */
.appFoot nav { align-items: center; }
.appFoot .footX { width: 28px; height: 28px; margin: 0 -4px 0 -7px; opacity: 0.6; }
.appFoot .footX img { width: 14px; height: 14px; }
.appFoot .footX:hover { opacity: 1; }

/* ---------- Micro-interactions back (2026-10-22) ----------
   Small answers to the pointer, no glow or ripple: the press scale on buttons and tabs, the refresh icon turns,
   Tick's send arrow nudges, stars grow, the delete icon shakes, a picked emotion pops, avatars and nav icons
   grow a little, and the debrief dot pulses when it carries an alert. */
.tab:active, .csChip:active, .emoPill:active { transform: scale(0.97); }
.tab { transition: color 150ms ease, transform 160ms var(--ease-out); }
.btn.chatSend svg { transition: transform 250ms var(--ease-out); }
.emoPill.active { animation: pop 340ms var(--ease-out); }
.debrief.alert .dbDot { color: #f4676c; animation: alertPulse 1.8s ease-out infinite; }
@media (hover: hover) and (pointer: fine) {
  #refresh:hover svg { transform: rotate(60deg); }
  .modalHead button:hover svg { transform: rotate(90deg); }
  .btn.chatSend:not(:disabled):hover svg { transform: translate(2px, -2px); }
  .navItem:hover svg { transform: scale(1.1); }
  .navItem:not(.active):hover { transform: translateX(2px); }
  .navItem:not(.active):hover:active { transform: translateX(2px) scale(0.98); }
  .recentRow:hover .avatar, .bwCard:hover .avatar { transform: scale(1.08); }
  .journalCard:hover .jcAvatar .avatar { transform: scale(1.05) rotate(-3deg); }
  .starRow .starBtn:hover, .starRow .starBtn:hover ~ .starBtn { transform: scale(1.15); }
  .rowDelete:hover svg { animation: wiggle 420ms var(--ease-out); }
  .emoPill:not(.active):hover { transform: translateY(-1px); }
  .csChip:hover { transform: translateY(-1px); }
}

/* Continue with Apple: Apple's white button with a black logo, stacked under the Google one. */
.appleBtn { margin-top: 10px; background: #fff; color: #000; border-color: #fff; font-weight: 500; }
.appleBtn:not(:disabled):hover { background: #f1f1f1; border-color: #f1f1f1; }
.appleBtn svg { flex: none; }

.lvNow { flex-wrap: wrap; }
.lvNow small { flex-basis: 100%; color: var(--faint); font-size: 12px; margin-top: 4px; }

/* Active-user survey pop-up (#svModal): the plan questionnaire's look (pq* classes), with a quieter close button. */
.pqX.svX { color: var(--faint); }
.pqX.svX:hover { color: var(--text); }
.svStage { min-height: 320px; }
.svStage .pqQ { margin-bottom: 18px; }
html.mobile .svStage { min-height: 0; }
.svTest { margin: 0 0 12px; padding: 6px 10px; border-radius: var(--r-md); background: rgba(251,191,36,0.1); color: #fbbf24; font-size: 12px; }
.svTest[hidden] { display: none; }
.svOther { display: flex; gap: 8px; margin-top: 10px; }
.svOther .input { flex: 1; min-width: 0; }
.svSend { display: flex; justify-content: flex-end; margin-top: 12px; }
.svErr { margin: 8px 0 0; }
#svText { width: 100%; box-sizing: border-box; }

/* Telegram invitation: a small pill at the top centre of the dashboard, closed with the quiet X. */
.tgBanner { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: calc(50% - 6px); transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 24px); padding: 7px 8px 7px 14px; border-radius: var(--r-full); background: var(--raised); border: 1px solid var(--border-strong); box-shadow: 0 10px 30px rgba(0,0,0,0.4); font-size: 13px; animation: tgIn 320ms var(--ease-out) 600ms both; }
.tgBanner[hidden] { display: none; }
.tgBanner img { flex: none; border-radius: 50%; }
.tgTxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgJoin { flex: none; padding: 5px 13px; font-size: 12.5px; text-decoration: none; border-radius: var(--r-full); }
.tgX { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--r-full); background: none; color: var(--faint); cursor: pointer; }
.tgX:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.tgX:focus-visible, .tgJoin:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@keyframes tgIn { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .tgBanner { animation: none; } }
/* Centred on the page column, not the window: the sidebar (248px) and the right panel (260px, hidden under 1141px) sit beside it. */
@media (max-width: 1140px) { .tgBanner { left: calc(50% + 124px); } }
html.mobile .tgBanner { left: 50%; top: calc(env(safe-area-inset-top, 0px) + 6px); font-size: 12.5px; gap: 8px; padding-left: 12px; }
html.mobile .tgBanner { border-radius: var(--r-lg); }
html.mobile .tgTxt { white-space: normal; line-height: 1.25; }
/* ---------- Icons: Meteor Icons (iconify.design/meteor-icons, MIT, zkreations), painted through the same mask as before.
   The app only: the public site (index, pricing, guides) keeps the icons of tracer.css. ---------- */
.ip-arrow-down { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l7 7l7-7m-7 7V5'/%3E%3C/svg%3E"); }
.ip-arrow-left { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 19l-7-7l7-7m7 7H5'/%3E%3C/svg%3E"); }
.ip-arrow-right { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 19l7-7l-7-7m7 7H5'/%3E%3C/svg%3E"); }
.ip-arrow-right-up { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E"); }
.ip-arrow-up { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v14m7-7l-7-7l-7 7'/%3E%3C/svg%3E"); }
.ip-arrows-up-down { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 18H4m10-6H4m16-6H4'/%3E%3C/svg%3E"); }
.ip-bar-chart { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m22 7l-9 9l-5-5l-6 6M16 7h6v6'/%3E%3C/svg%3E"); }
.ip-bars { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 6H4m16 12H4m16-6H4'/%3E%3C/svg%3E"); }
.ip-bell { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 17a1 1 0 0 0 .8-1.6Q18 12.5 18 8A1 1 0 0 0 6 8q0 4.5-2.8 7.4A1 1 0 0 0 4 17Zm-10 3a1 1 0 0 0 4 0'/%3E%3C/svg%3E"); }
.ip-book-open { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M22 18H2V3h6a4 4 0 0 1 4 4a4 4 0 0 1 4-4h6ZM12 7v14'/%3E%3C/svg%3E"); }
.ip-calendar { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='18' height='17' x='3' y='5' rx='3'/%3E%3Cpath d='M21 10H3m14-5V2M7 5V2'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-certificate-check { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 12l2 2l4-4m4.8 5.2a1 1 0 0 0 0-6.4a1 1 0 0 0-4.6-4.6a1 1 0 0 0-6.4 0a1 1 0 0 0-4.6 4.6a1 1 0 0 0 0 6.4a1 1 0 0 0 4.6 4.6a1 1 0 0 0 6.4 0a1 1 0 0 0 4.6-4.6'/%3E%3C/svg%3E"); }
.ip-chat { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 19h14q2 0 2-2V5q0-2-2-2H4Q2 3 2 5v17Z'/%3E%3C/svg%3E"); }
.ip-check { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.ip-check-circle { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-chevron-down { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9l6 6l6-6'/%3E%3C/svg%3E"); }
.ip-chevron-left { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m15 6l-6 6l6 6'/%3E%3C/svg%3E"); }
.ip-chevron-right { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 6l6 6l-6 6'/%3E%3C/svg%3E"); }
.ip-chevron-up { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 15l6-6l6 6'/%3E%3C/svg%3E"); }
.ip-clipboard { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3Crect width='13' height='13' x='9' y='9' rx='2'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-clock { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-cog { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M10 21a1 1 0 0 0 4 0a1.8 1.8 0 0 1 2.95-1.22a1 1 0 0 0 2.83-2.83A1.8 1.8 0 0 1 21 14a1 1 0 0 0 0-4a1.8 1.8 0 0 1-1.22-2.95a1 1 0 0 0-2.83-2.83A1.8 1.8 0 0 1 14 3a1 1 0 0 0-4 0a1.8 1.8 0 0 1-2.95 1.22a1 1 0 0 0-2.83 2.83A1.8 1.8 0 0 1 3 10a1 1 0 0 0 0 4a1.8 1.8 0 0 1 1.22 2.95a1 1 0 0 0 2.83 2.83A1.8 1.8 0 0 1 10 21'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-currency-dollar-circle { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6m6-17v20'/%3E%3C/svg%3E"); }
.ip-dashboard { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-download { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 15v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4M12 3v12m5-5l-5 5l-5-5'/%3E%3C/svg%3E"); }
.ip-exchange-vertical { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 3l3 3l-3 3m0 12l3-3l-3-3M2 6h4l10 12h6M2 18h4l2-2.4m6-7.2L16 6h6'/%3E%3C/svg%3E"); }
.ip-exclamation-triangle { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v4m0 4ZM10.27 4a2 2 0 0 1 3.46 0l8 14A2 2 0 0 1 20 21H4a2 2 0 0 1-1.73-3Z'/%3E%3C/svg%3E"); }
.ip-eye { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M1 12q5 8 11 8t11-8q-5-8-11-8T1 12'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-flag { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 21V5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v16l7-4Z'/%3E%3C/svg%3E"); }
.ip-funnel { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 21v-8l8-10H2l8 10v5Z'/%3E%3C/svg%3E"); }
.ip-heart { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 21.5l-8.8-8.7A5.6 5.6 0 1 1 12 6a5.6 5.6 0 1 1 8.8 6.8Z'/%3E%3C/svg%3E"); }
.ip-info-circle { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8Zm0 4v4'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-layers { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 2L3 7l9 5l9-5ZM3 12l9 5l9-5M3 17l9 5l9-5'/%3E%3C/svg%3E"); }
.ip-mail { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m2 8l10 5l10-5'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-microphone { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 12a1 1 0 0 0 14 0m-7 7v3M9 12a1 1 0 0 0 6 0V5a1 1 0 0 0-6 0Z'/%3E%3C/svg%3E"); }
.ip-notes { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm2 11H8m8 4H8m4-8H8'/%3E%3C/svg%3E"); }
.ip-pause { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 3h5v18H5Zm9 0h5v18h-5Z'/%3E%3C/svg%3E"); }
.ip-play { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 3l15 9l-15 9Z'/%3E%3C/svg%3E"); }
.ip-power { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 12V2m6.7 5A9 9 0 1 1 5.3 7'/%3E%3C/svg%3E"); }
.ip-refresh { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 8h5V3m0 5l-2-2q-3-3-7-3a9 9 0 0 0-9 9m0 9v-5h5m-5 0l2 2q3 3 7 3a9 9 0 0 0 9-9'/%3E%3C/svg%3E"); }
.ip-restart { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 18a10 10 0 1 1 1.17-10M22 4v4h-4'/%3E%3C/svg%3E"); }
.ip-search { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m21 21l-6.05-6.05'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-share { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m22 2l-7 20l-4-9l-9-4ZL11 13'/%3E%3C/svg%3E"); }
.ip-share-alt { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5l6.8-4m0 11l-6.8-4'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-shield-check { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 5v7q0 6-8 10q-8-4-8-10V5l8-3Z'/%3E%3C/svg%3E"); }
.ip-square { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='18' height='18' x='3' y='3' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' rx='2'/%3E%3C/svg%3E"); }
.ip-star { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 1.5l2.939 6.455l7.047.8l-5.231 4.79l1.417 6.95L12 17l-6.172 3.495l1.417-6.95l-5.231-4.79l7.047-.8Z'/%3E%3C/svg%3E"); }
.ip-times { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.ip-trash { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6h18m-2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
.ip-user { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Cpath d='M3 22a1 1 0 0 1 18 0Z'/%3E%3C/g%3E%3C/svg%3E"); }
.ip-verified { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 12l2 2l4-4m4.8 5.2a1 1 0 0 0 0-6.4a1 1 0 0 0-4.6-4.6a1 1 0 0 0-6.4 0a1 1 0 0 0-4.6 4.6a1 1 0 0 0 0 6.4a1 1 0 0 0 4.6 4.6a1 1 0 0 0 6.4 0a1 1 0 0 0 4.6-4.6'/%3E%3C/svg%3E"); }
.ip-view-list { --ip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 19H8m13-7H8m13-7H8M3 19Zm0-7Zm0-7Z'/%3E%3C/svg%3E"); }

/* Stats: Activity card (sign-ups, deletions, installs, uninstalls) and the optional "why" of the deletion dialog. */
.actList { display: grid; margin: 8px 0 4px; }
.actRow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 2px; border-top: 1px solid var(--border); }
.actRow:first-child { border-top: 0; }
.actBadge { display: inline-block; justify-self: start; padding: 2px 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--muted); }
.act-signup { color: var(--accent); border-color: rgba(61,214,140,0.45); background: rgba(61,214,140,0.08); }
.act-delete { color: #f0565c; border-color: rgba(240,86,92,0.45); background: rgba(240,86,92,0.08); }
.act-install { color: #7cc4ff; border-color: rgba(124,196,255,0.4); background: rgba(124,196,255,0.07); }
.act-uninstall { color: #fbbf24; border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.08); }
.actMain { min-width: 0; display: grid; gap: 3px; font-size: 13px; }
.actMain small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.actWho { overflow-wrap: anywhere; font-weight: 600; }
.actAnon { color: var(--muted); font-style: italic; }
.actAt { text-align: right; font-size: 12.5px; white-space: nowrap; }
.actAt small { display: block; color: var(--faint); font-size: 11.5px; }
html.mobile .actRow { grid-template-columns: minmax(0, 1fr) auto; }
html.mobile .actBadge { grid-column: 1 / -1; }
.cfChoose { display: grid; gap: 6px; margin-top: 14px; text-align: left; font-size: 13px; color: var(--muted); }
.cfChoose select { width: 100%; }

/* Activity card, compact: a scrolling list of one-line rows (click a row to read it in full). */
.actList { max-height: 300px; overflow-y: auto; margin: 6px 0 2px; padding-right: 4px; scrollbar-width: thin; }
.actRow { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; padding: 6px 4px; align-items: center; cursor: pointer; border-radius: 6px; }
.actRow:hover { background: rgba(255,255,255,0.03); }
.actRow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.actRow.open { align-items: start; }
.actBadge { padding: 1px 8px; font-size: 11px; }
.actMain { gap: 1px; font-size: 12.5px; }
.actMain small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; line-height: 1.4; }
.actRow.open .actMain small { white-space: normal; overflow: visible; }
.actAt { font-size: 11.5px; line-height: 1.3; }
.actAt small { font-size: 11px; }
.actInfo { margin-top: 6px; }
.actInfo summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.actInfo .stNote { margin: 6px 0 0; }
html.mobile .actRow { grid-template-columns: 70px minmax(0, 1fr); }
html.mobile .actBadge { grid-column: auto; }
html.mobile .actAt { grid-column: 2; display: flex; gap: 6px; text-align: left; }

/* Stats > Feedback: "Reply" is a button now (it opens Emails on a blank template for that person), styled like the link it replaces. */
button.fbMail { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
button.fbMail:hover { text-decoration: underline; }
button.fbMail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Stats > Right now: one person on the site/app and the extension of the same browser (same colour as the globe's dot in stats-live.js). */
.lvK-both { background: #ff7aa8; }
