/* A person's viewer (viewer.html, 2026-10-12): what it has beyond the phone
   page's sheet (mobile.css), which it shares whole. The same colours and
   conventions (docs/notes/feedback_frontend_visual_conventions.md). */

/* The person's initials beside the title, and the books' light cut short rather than the title wrapped. */
.m-top-title { min-width: 0; }
#m-title { white-space: nowrap; }
.m-top-person { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--muted); }
.m-top-title .m-algo-light { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home: an account card's note where the broker has no reading for it. */
.m-acct-note { font-size: var(--font-note); color: var(--muted); margin-top: 6px; line-height: 1.4; }
.m-acct-note:empty { display: none; }

/* The light, green and amber only (js/viewer/light.js): the books did something, or something is off. The pill's
   base look is mobile.css's; the Breakdown tab's dot likewise. */
.m-algo-light.ok { color: var(--gain); background: rgba(53, 196, 136, 0.12); border-color: rgba(53, 196, 136, 0.6); animation: none; }
.m-algo-light.warn { color: var(--amber); background: rgba(227, 162, 60, 0.12); border-color: rgba(227, 162, 60, 0.6); }
.m-tab.algo-lit.algo-ok::after { background: var(--gain); animation: none; }
.m-tab.algo-lit.algo-warn::after { background: var(--amber); }

/* The login sheet (js/viewer/boot.js): over the internet, before the page. */
.m-login { z-index: 50; justify-content: center; align-items: center; padding: 24px; }
.m-login-form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.m-login-title { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.m-login-field { display: flex; flex-direction: column; gap: 4px; }
.m-login-field input {
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; font-size: 17px;
}
.m-login-field input:focus { outline: none; border-color: var(--amber); }
.m-login .m-edit-error { padding: 0; min-height: 1.2em; }
.m-login-btn { flex: none; padding: 12px 0; font-size: 16px; color: var(--bg); background: var(--amber); border-color: var(--amber); }

/* Settings: the notifications switch (js/mobile/push.js) in a card rather than the sidebar's foot, and the facts. */
.m-set-card { padding: 12px; }
.m-set-card .m-push { margin: 0; padding: 0; border: none; }
.m-push-kinds { margin-top: 10px; border-top: 1px solid var(--border); }
.m-push-kind { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.m-push-kind input { width: 20px; height: 20px; accent-color: var(--amber); flex: none; }
.m-set-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.m-set-row:first-child { border-top: none; padding-top: 0; }
.m-set-row .mono { color: var(--muted); font-size: 13px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-set-actions { margin-top: 12px; }
.m-set-row .mono.up { color: var(--gain); }
.m-set-row .mono.down { color: var(--loss); }
