/* SignalEdge customer app. No external fonts or scripts (the content-security policy forbids them). */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --text: #16202b; --muted: #465363; --line: #dde3ea;
  --accent: #0b5cff; --accent-text: #ffffff; --good: #0a7d4f; --warn-bg: #fff6df; --warn-line: #e6c36a; --bad-bg: #fde8e8; --bad-line: #e49a9a;
  --gain: #0a7d4f; --loss: #b42318;                                  /* (owner, 2026-11-12, "Let colour mean something": green and red are for a gain and a loss and for nothing else) */
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 32, 48, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c; --surface: #17202a; --text: #e8edf2; --muted: #b4c0cc; --line: #2a3745;
    --accent: #4d8bff; --accent-text: #08121f; --good: #4ac28b; --warn-bg: #2d2610; --warn-line: #6e5a1c; --bad-bg: #331a1a; --bad-line: #7a3a3a; --shadow: none;
    --gain: #4ade80; --loss: #ff6b6b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-email { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
main { padding-top: 24px; padding-bottom: 24px; }
h1 { font-size: 1.6rem; margin: 0 0 16px; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.hero { padding: 32px 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 420px; margin: 24px auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cards .card { margin: 0; }
.stat .label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.stat .value { font-size: 1.2rem; font-weight: 600; }
.notice { border: 1px solid var(--warn-line); background: var(--warn-bg); padding: 10px 14px; border-radius: var(--radius); margin: 0 0 16px; }
.notice.bad { border-color: var(--bad-line); background: var(--bad-bg); }
.button { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.stack { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: 600; font-size: .9rem; }
input[type=email], input[type=text], input[type=number], input[type=password] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; width: 100%; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.foot { color: var(--muted); font-size: .8rem; padding-bottom: 32px; }
@media (max-width: 560px) {
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  h1 { font-size: 1.35rem; }
  .who-email { max-width: 45vw; }
}

.top a:not(.brand) { color: var(--text); text-decoration: none; font-size: .95rem; }
.top a:not(.brand):hover { text-decoration: underline; }
.notice.good { border-color: var(--good); background: transparent; }
.card.wide { max-width: 640px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
label.check input { width: auto; }
.field-error { color: #b42318; margin: 0; font-size: .9rem; }
input[aria-invalid="true"] { border-color: #b42318; }
@media (prefers-color-scheme: dark) { .field-error { color: #ff9b94; } input[aria-invalid="true"] { border-color: #ff9b94; } }
@media (max-width: 560px) { .who { gap: 8px; flex-wrap: wrap; justify-content: flex-end; } }

.value.pos { color: var(--gain); }
.value.neg { color: var(--loss); }
.small { font-size: .88rem; margin-top: -8px; }

/* ---- SignalEdgeCascade look: the live dashboard's own gradient (indigo -> purple -> pink), its logo, colour-coded cards ---- */
:root { --grad-a: #5b5ff0; --grad-b: #9333ea; --grad-c: #ec4899; --c-violet: #9333ea; --c-blue: #2563eb; --c-green: #16a34a; --c-amber: #f59e0b; --c-teal: #0d9488; --c-indigo: #5b5ff0; }
@media (prefers-color-scheme: dark) { :root { --grad-a: #7b7ff8; --c-violet: #b266f5; --c-blue: #5b9dff; --c-green: #4ade80; --c-amber: #fbbf24; --c-teal: #2dd4bf; --c-indigo: #8b8ff8; } }
.top { background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c)); border-bottom: 0; box-shadow: 0 2px 10px rgba(91, 95, 240, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo { border-radius: 9px; background: #161a21; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.wordmark { color: #fff; font-weight: 800; letter-spacing: .01em; }
.top a:not(.brand), .top .who-email, .top button.link { color: #fff; }
.top .who-email { opacity: .85; }
.top a:not(.brand):hover { text-decoration: underline; }
.top button.link { text-decoration: underline; }
.banner { display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin: 0 0 20px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #1b1e4b 0%, #321a63 55%, #5b1f57 100%); box-shadow: 0 4px 16px rgba(91, 95, 240, .16); position: relative; overflow: hidden; }          /* (owner, 2026-11-12, "Quieter header": a calmer gradient, a softer shadow and glow; the layout, the clock and the buttons are as they were) */
.banner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 153, .22), rgba(236, 72, 153, 0) 70%); pointer-events: none; }
.banner-logo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 22px; background: #161a21; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .35); }
.banner-name { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.15; letter-spacing: .01em; background: linear-gradient(90deg, #ffffff, #c4b5fd 60%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner-quote { margin: 6px 0 0; font-size: 1.05rem; font-style: italic; color: rgba(255, 255, 255, .92); max-width: 36em; }
.page-title { margin-top: 4px; }
.hero-copy { padding: 8px 0 16px; }
.card.stat { border-top: 1px solid var(--line); }   /* (owner, 2026-11-12, "Let colour mean something": the tiles used to wear a different colour on their top line and on their number (violet, blue, teal, amber ...) that meant nothing; now only a gain is green and only a loss is red. The c-* classes stay in the markup and do nothing.) */
.button.primary { background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c)); border: 0; color: #fff; box-shadow: 0 3px 10px rgba(147, 51, 234, .35); }
.button.primary:hover { filter: brightness(1.07); }
button[type=submit]:not(.link) { background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c)); border: 0; color: #fff; padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 3px 10px rgba(147, 51, 234, .3); }
h2 { border-left: 4px solid var(--grad-b); padding-left: 10px; }
.card { border-radius: 14px; }
.foot strong { color: var(--text); }
@media (max-width: 560px) { .banner { flex-direction: column; text-align: center; padding: 18px; } .banner-name { font-size: 1.5rem; } .brand-logo { width: 30px; height: 30px; } }

/* ---- tables like the live dashboard, the Sell buttons, the Yes / No popup, the result toast, the disclaimer ---- */
td.actions, th.actions { text-align: right; white-space: nowrap; }
.sell-btn { padding: 5px 14px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: linear-gradient(120deg, #ef4444, #ec4899); box-shadow: 0 2px 8px rgba(239, 68, 68, .35); }
.sell-btn:hover { filter: brightness(1.08); }
.sell-btn:disabled { opacity: .6; cursor: default; }
.pending-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--c-amber); border: 1px solid var(--c-amber); }
td.pos, .pos { color: var(--gain); font-weight: 600; } td.neg, .neg { color: var(--loss); font-weight: 600; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 10, 20, .6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--surface); color: var(--text); border-radius: 16px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); border-top: 5px solid var(--grad-b); }
.modal h3 { margin: 0 0 8px; font-size: 1.15rem; }
.modal-action { margin: 0 0 8px; font-weight: 700; }
.modal-body p { margin: 4px 0; color: var(--muted); }
.modal-body p.modal-warning { color: #b42318; font-weight: 700; }
.modal-buttons { display: flex; gap: 12px; margin-top: 16px; }
.modal-btn { flex: 1; padding: 11px 16px; border: 0; border-radius: 10px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; }
.modal-yes { background: #16a34a; } .modal-no { background: #dc2626; }
.modal-btn:disabled { opacity: .45; cursor: not-allowed; }
/* ---- the optional limit price in the Close popups, and the note and Cancel button of a resting limit order (owner, 2026-11-16) ---- */
.modal-input { margin: 14px 0 4px; }
.modal-input label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--text); }
.modal-input input[type=text] { max-width: 10rem; }
.modal-body .modal-input p.modal-hint { margin: 6px 0 0; font-size: .85rem; }
.limit-note { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--accent); max-width: 15rem; white-space: normal; }
.limit-cancel-btn { margin-top: 4px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.limit-cancel-btn:disabled { opacity: .5; cursor: default; }
/* ---- the Refill button on the Harvest positions, its popup and its tags (owner, 2026-11-03) ---- */
.refill-btn, .xrefill-btn { padding: 5px 14px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: linear-gradient(120deg, #2563eb, #7c3aed); box-shadow: 0 2px 8px rgba(37, 99, 235, .35); margin-right: 6px; }
.refill-btn:hover, .xrefill-btn:hover { filter: brightness(1.08); }
.cancel-refill-btn, .xcancel-refill-btn { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
.refill-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #1d4ed8; border: 1px solid #1d4ed8; vertical-align: middle; }
.refill-note { margin-top: 2px; font-size: .78rem; color: var(--muted); white-space: normal; max-width: 22em; }
.refill-note.warn { color: var(--c-amber); }
.refill-modal { max-width: 520px; }
.refill-group { border: 1px solid var(--line, rgba(128, 128, 128, .35)); border-radius: 10px; margin: 0 0 10px; padding: 8px 12px 10px; }
.refill-group legend { font-weight: 700; padding: 0 6px; }
.refill-group label { display: block; margin: 4px 0; cursor: pointer; }
.refill-input { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--muted); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.refill-preview p { margin: 4px 0; color: var(--text); font-size: .92rem; }
.refill-error { margin: 6px 0; color: #b42318; font-weight: 700; }
.refill-modal .modal-warning { color: #b42318; font-weight: 700; margin: 8px 0 0; }
@media (prefers-color-scheme: dark) { .refill-tag { color: #93c5fd; border-color: #93c5fd; } .refill-error, .refill-modal .modal-warning { color: #ff9b94; } }
@media (max-width: 640px) { .refill-modal { max-height: 92vh; overflow-y: auto; } .refill-modal .modal-buttons { position: sticky; bottom: -22px; margin: 12px -22px -22px; padding: 12px 22px 22px; background: var(--surface); } }          /* (on a phone Yes and No stay in view while the popup scrolls) */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px; max-width: min(92vw, 480px); line-height: 1.4; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
#toast.show { opacity: 1; }
.disclaimer { max-width: 70em; line-height: 1.5; }
td.actions, th.actions { position: sticky; right: 0; background: var(--surface); box-shadow: -8px 0 8px -8px rgba(0, 0, 0, .35); padding-left: 10px; }

.banner-tagline { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fbcfe8; }
.brand-tagline { display: none; margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .5); font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .92); white-space: nowrap; }
@media (min-width: 900px) { .brand-tagline { display: inline; } }

/* ---- one banner: logo, name, tagline, quote and the menu all in the big block; a wider page that uses a laptop / desktop screen ---- */
.wrap { max-width: min(1760px, 97vw); padding: 0 24px; }
.page-top { padding-top: 16px; }
.banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 28px 14px; }
.banner-brand { display: flex; align-items: center; gap: 22px; color: inherit; text-decoration: none; }
.banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-name, .banner-tagline, .banner-quote { display: block; margin: 0; }
.banner-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); position: relative; z-index: 1; }
.banner-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.banner-nav a:hover { background: rgba(255, 255, 255, .26); }
.banner-nav .who-email { margin-left: auto; color: rgba(255, 255, 255, .85); font-size: .9rem; white-space: nowrap; }
.signout { white-space: nowrap; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: none; }
.signout:hover { background: rgba(255, 255, 255, .2); }
.banner.compact { padding: 14px 24px 10px; gap: 8px; }
.banner.compact .banner-logo { width: 56px; height: 56px; border-radius: 14px; }
.banner.compact .banner-name { font-size: 1.45rem; }
.banner.compact .banner-tagline { font-size: .85rem; }
.banner.compact .banner-nav { padding-top: 8px; }
main.wrap { padding-top: 8px; }
@media (max-width: 700px) { .banner-brand { flex-direction: column; text-align: center; } .banner-nav { justify-content: center; } .banner-nav .who-email { margin-left: 0; width: 100%; text-align: center; } }
.banner-brand, .banner-brand:hover, .banner-brand * { text-decoration: none; }
/* the top row: the brand, and the clock at its end (owner, 2026-10-17: the clock was over the moving drawing; violet-clock.css puts the clock's centre on the panel's middle line and the row ends just after it, so the drawing - the last column of a page with the row of product buttons - starts after it, and the row is as tall as the clock needs). Too narrow for both: the clock wraps under the brand; on a phone it is the first thing, centred (the 700px rule below). */
.banner-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-width: 0; }
.banner-top > .banner-brand { flex: 0 1 auto; min-width: 0; }
.banner-top > .vclock { flex: 0 0 auto; }
@media (max-width: 700px) { .banner-top { flex-direction: column; justify-content: center; } .banner-top > .vclock { order: -1; } }
#openTable th, #openTable td, #ccTable th, #ccTable td { padding: 8px 7px; font-size: .88rem; }
#ccTable th { white-space: normal; }

/* ---- admin area ---- */
.admin-badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.45em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--c-violet); color: #fff; }
/* ---- the AI badge beside the SignalEdge name (owner, 2026-11-04: "AI-Powered Trade Validation" in a stylish letter and colour). System fonts only (the content-security policy forbids external ones). The banner is a dark violet panel in both themes, so the colours are fixed: a glass pill with a violet glow, a gold spark, and letters that run cyan -> lavender -> pink and shimmer slowly (still when the viewer asks for less motion). ---- */
.ai-badge { display: inline-flex; align-items: center; gap: .5em; vertical-align: middle; margin-left: 12px; padding: 3px 13px 3px 10px; border-radius: 999px; border: 1px solid rgba(196, 181, 253, .6); background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(167, 139, 250, .24) 55%, rgba(244, 114, 182, .2)); box-shadow: 0 0 14px rgba(167, 139, 250, .4), inset 0 0 8px rgba(255, 255, 255, .08); font-family: "Avenir Next", "Futura", "Gill Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-size: max(.72rem, .4em); font-weight: 800; font-style: normal; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
.ai-badge .ai-spark { color: #fde68a; -webkit-text-fill-color: #fde68a; font-size: 1.15em; line-height: 1; text-shadow: 0 0 7px rgba(253, 230, 138, .95); animation: ai-twinkle 2.8s ease-in-out infinite; }
.ai-badge .ai-badge-text { background: linear-gradient(90deg, #67e8f9, #c4b5fd 35%, #f9a8d4 65%, #67e8f9); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ai-shimmer 8s linear infinite; }
@keyframes ai-shimmer { from { background-position: 0 0; } to { background-position: -240% 0; } }
@keyframes ai-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.ai-badge .ai-dot { width: .62em; height: .62em; border-radius: 50%; margin-left: .2em; flex: none; }                                         /* (the Super Admin's status dot: green = an AI check is live, amber = recording only, grey = off or not known) */
.ai-badge .ai-dot-live { background: #34d399; animation: ai-pulse 2.2s ease-out infinite; }
.ai-badge .ai-dot-shadow { background: #fbbf24; }
.ai-badge .ai-dot-off, .ai-badge .ai-dot-unknown { background: #8b8aa0; }
@keyframes ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 100% { box-shadow: 0 0 0 .5em rgba(52, 211, 153, 0); } }
.ai-badge.ai-off { opacity: .65; background: rgba(139, 138, 160, .14); border-color: rgba(139, 138, 160, .5); box-shadow: none; }                       /* (no AI check is live: the badge is grey for everybody, it claims nothing) */
.ai-badge.ai-off .ai-spark { color: #8b8aa0; -webkit-text-fill-color: #8b8aa0; text-shadow: none; animation: none; }
.ai-badge.ai-off .ai-badge-text { background: none; color: #8b8aa0; -webkit-text-fill-color: #8b8aa0; animation: none; }
@media (prefers-reduced-motion: reduce) { .ai-badge .ai-spark, .ai-badge .ai-badge-text, .ai-badge .ai-dot { animation: none; } }
.ai-chip-wrap { margin-top: 3px; }                                                                                                              /* (the AI check under a contract's symbol: a small chip, and under it - after a tap - the lines the hover shows) */
.ai-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(124, 58, 237, .4); background: rgba(124, 58, 237, .1); color: var(--text); font: inherit; font-size: .72rem; font-weight: 700; line-height: 1.4; cursor: pointer; white-space: nowrap; }
.ai-chip-shadow { border-color: var(--warn-line); background: var(--warn-bg); }
.ai-chip-none { border-color: var(--line); background: transparent; color: var(--muted); font-weight: 600; }
.ai-chip-flagged { border-color: var(--warn-line); background: var(--warn-bg); }                                                                                                       /* (a Harvest purchase the AI check flagged: the Super Admin's page only) */
.ai-details > summary { list-style: none; }
.ai-details > summary::-webkit-details-marker { display: none; }                                                                                  /* (the chip is a <summary>: no disclosure triangle) */
.ai-chip-detail { min-width: 15em; max-width: 22em; margin-top: 3px; font-size: .8rem; line-height: 1.35; color: var(--muted); white-space: normal; }
@media (max-width: 700px) { .ai-badge { display: flex; width: fit-content; max-width: 100%; margin: 4px 0 0; padding: 3px 10px 3px 8px; border-radius: 14px; font-size: .64rem; letter-spacing: .08em; line-height: 1.25; white-space: normal; } }          /* (on a phone the pill sits under the name and may break into two lines: the logo, the name and the Menu button leave it about 190 px) */
.role-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8em; font-weight: 600; background: color-mix(in srgb, var(--c-violet) 18%, transparent); color: var(--c-violet); }
.hold-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8em; font-weight: 600; background: color-mix(in srgb, var(--c-amber) 25%, transparent); color: var(--text); }
.choose { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
a.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); border-top: 4px solid var(--line); }
a.tile.c-blue { border-top-color: var(--c-blue); } a.tile.c-violet { border-top-color: var(--c-violet); }
.tile-title { font-size: 1.25rem; font-weight: 700; }
a.card.stat { text-decoration: none; color: var(--text); }
form.confirm-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
form.confirm-form input[type=text], form.confirm-form input[type=email], form.confirm-form select, form.filters input, form.filters select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
form.filters { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.warn-btn { background: var(--c-amber); color: #1b1b1b; border: 0; border-radius: 6px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.ok-btn { background: var(--c-green); color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.notice.ok { border-color: var(--c-green); }

td.pre { white-space: pre-line; }

meter { width: 100%; height: 14px; margin: 6px 0 2px; }
.small-value { font-size: 1.05rem; display: block; }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- market cards (as on the live dashboard) ---- */
.section-label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 6px 0 8px; }
.markets-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
@media (max-width: 980px) { .markets-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .markets-grid { grid-template-columns: repeat(2, 1fr); } }
.index-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); }   /* (the market cards used to wear a different colour each on their top line: decoration only, so they are plain now; the only colour is the arrow and the change) */
.index-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.index-label { font-weight: 700; font-size: .85rem; } .index-sublabel { color: var(--muted); font-size: .76rem; }
.index-price { font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
.index-change { font-size: .84rem; font-weight: 600; } .index-change.good { color: var(--gain); } .index-change.bad { color: var(--loss); }
.index-range, .index-error { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.card.stat .muted { display: block; }
.card.narrow a { color: var(--c-blue); }

/* ---- watchlist (as on the live dashboard's candidate pipeline page) ---- */
.summary-row, .final-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.summary-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .8rem; }
.final-chip { background: linear-gradient(90deg, var(--grad-a), var(--grad-c)); color: #fff; border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .85rem; }
.rank-badge { display: inline-block; min-width: 1.8em; text-align: center; border-radius: 6px; background: color-mix(in srgb, var(--c-indigo) 18%, transparent); font-weight: 700; font-size: .75rem; padding: 1px 4px; }
.status-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.status-passed { background: color-mix(in srgb, var(--c-green) 22%, transparent); color: var(--c-green); }
.status-failed { background: color-mix(in srgb, #e34948 20%, transparent); color: #e34948; }
.stage-chip { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .72rem; font-weight: 600; background: var(--line); }
td.catalyst { max-width: 28em; font-size: .78rem; color: var(--muted); }
.score-meter { width: 48px; height: 8px; margin: 0; vertical-align: middle; }
.visually-hidden { position: absolute; left: -9999px; }

.product-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-tag { font-size: .62em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, var(--grad-a), var(--grad-c)); color: #fff; }

.products-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.product-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-size: .85rem; }
.product-chip.on { border-color: var(--c-green); } .product-chip.on strong { color: var(--c-green); } .product-chip.off { opacity: .65; }
.product-chip .product-tag { font-size: .65rem; }
.rebound-alert { border-left: 3px solid var(--c-violet); padding: 4px 10px; margin: 0 0 10px; } .pre { white-space: pre-line; font-size: .85rem; }

.period-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.period-pills .pill { display: inline-block; padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.period-pills .pill:hover { border-color: var(--c-violet); }
.period-pills .pill.active { background: linear-gradient(135deg, var(--c-indigo, #4f46e5), var(--c-violet, #9333ea)); color: #fff; border-color: transparent; }

.family-tabs { display: flex; gap: 6px; margin: 4px 0 18px; border-bottom: 2px solid var(--line); }
.family-tabs .family-tab { padding: 10px 22px; font-weight: 700; text-decoration: none; color: var(--text); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.family-tabs .family-tab:hover { border-bottom-color: var(--c-violet); }
.family-tabs .family-tab.active { color: var(--c-violet); border-bottom-color: var(--c-violet); }

/* ---- the family buttons in the header: SignalEdge is the parent, SignalEdgeCascade and SignalEdgeFlare are the two buttons under it ---- */
.family-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0 12px; position: relative; z-index: 1; }
.family-button { padding: 9px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .55); }
.family-button:hover { background: rgba(255, 255, 255, .28); }
.family-button.active { background: #fff; color: #4a2fd0; border-color: #fff; }
/* each family's button wears its logo's colour: SignalEdgeCascade the green of its steps, SignalEdgeFlare the blue of its flame, SignalEdgeHarvest the amber of its grain */
.family-button.family-cascade { border-color: #22c55e; }
.family-button.family-flare { border-color: #38bdf8; }
.family-button.family-harvest { border-color: #f59e0b; }
.family-button.family-cascade:hover { background: rgba(34, 197, 94, .35); }
.family-button.family-flare:hover { background: rgba(56, 189, 248, .35); }
.family-button.family-harvest:hover { background: rgba(245, 158, 11, .35); }
.family-button.family-cascade.active { background: #22c55e; border-color: #22c55e; color: #06220f; }
.family-button.family-flare.active { background: #38bdf8; border-color: #38bdf8; color: #04243a; }
.family-button.family-harvest.active { background: #f59e0b; border-color: #f59e0b; color: #2b1a02; }
@media (max-width: 700px) { .family-switch { justify-content: center; } }

/* ---- the admin Logs page ---- */
.logs-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.log-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.log-file { width: 100%; text-align: left; display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.log-file:hover, .log-file.active { border-color: var(--c-violet); background: rgba(124, 92, 255, .12); }
.log-file-name { font-weight: 700; word-break: break-word; }
.log-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.log-tools input[type="text"] { flex: 1 1 260px; min-width: 0; }
.log-body { max-height: 60vh; overflow: auto; margin: 0; padding: 12px; border-radius: 10px; border: 1px solid var(--line); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; background: rgba(0, 0, 0, .25); }
.ai-answer { margin: 8px 0; white-space: pre-wrap; line-height: 1.5; }
.ai-answer.bad { color: var(--neg, #ff6b6b); }
@media (max-width: 800px) { .logs-layout { grid-template-columns: 1fr; } }

/* ---- the moving drawing in the header: SignalEdge (a travelling signal), SignalEdgeCascade (steps that light up, climbing), SignalEdgeFlare (blue embers rising). Pure CSS on transform / opacity (light on the machine), nothing inline, off for small screens and for people who ask for no motion ---- */
.banner-art { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; pointer-events: none; z-index: 0; opacity: .6; }          /* (the moving drawing a little quieter; owner, 2026-11-12, "Quieter header") */
.banner-art.with-nav { bottom: 62px; }                                    /* (above the menu row) */
.banner-art svg { width: 100%; height: 100%; display: block; }
.banner > *:not(.banner-art) { position: relative; z-index: 1; }
.banner-art .sig-pulse { stroke-dasharray: 14 86; animation: sig-run 5.5s linear infinite; }
.banner-art .sig-b { stroke-dasharray: 6 94; animation-duration: 8s; animation-delay: -3s; }
.banner-art .art-orbs circle { animation: orb-drift 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.banner-art .art-orbs circle:nth-child(2) { animation-duration: 12s; animation-delay: -4s; } .banner-art .art-orbs circle:nth-child(3) { animation-duration: 7s; animation-delay: -2s; } .banner-art .art-orbs circle:nth-child(4) { animation-duration: 10s; animation-delay: -6s; }
.banner-art .art-ticks rect { animation: tick-beat 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.banner-art .art-ticks rect:nth-child(2) { animation-delay: -.5s; } .banner-art .art-ticks rect:nth-child(3) { animation-delay: -1s; } .banner-art .art-ticks rect:nth-child(4) { animation-delay: -1.5s; } .banner-art .art-ticks rect:nth-child(5) { animation-delay: -2s; }
.banner-art .step { opacity: .16; animation: step-light 8.4s ease-in-out infinite; }
.banner-art .step:nth-child(2) { animation-delay: .6s; } .banner-art .step:nth-child(3) { animation-delay: 1.2s; } .banner-art .step:nth-child(4) { animation-delay: 1.8s; } .banner-art .step:nth-child(5) { animation-delay: 2.4s; } .banner-art .step:nth-child(6) { animation-delay: 3s; } .banner-art .step:nth-child(7) { animation-delay: 3.6s; } .banner-art .step:nth-child(8) { animation-delay: 4.2s; }
.banner-art .dot { opacity: 0; animation: dot-up 3.6s ease-in infinite; }
.banner-art .dot:nth-child(2) { animation-delay: -1.2s; } .banner-art .dot:nth-child(3) { animation-delay: -2.4s; } .banner-art .dot:nth-child(4) { animation-delay: -.6s; }
.banner-art .ember { opacity: 0; animation: ember-rise 4.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.banner-art .ember:nth-child(2) { animation-duration: 5.2s; animation-delay: -1s; } .banner-art .ember:nth-child(3) { animation-duration: 3.8s; animation-delay: -2.2s; } .banner-art .ember:nth-child(4) { animation-duration: 5.8s; animation-delay: -.4s; }
.banner-art .ember:nth-child(5) { animation-duration: 4.1s; animation-delay: -3s; } .banner-art .ember:nth-child(6) { animation-duration: 6s; animation-delay: -1.7s; } .banner-art .ember:nth-child(7) { animation-duration: 3.5s; animation-delay: -.8s; }
.banner-art .ember:nth-child(8) { animation-duration: 5s; animation-delay: -2.6s; } .banner-art .ember:nth-child(9) { animation-duration: 4.6s; animation-delay: -3.4s; } .banner-art .ember:nth-child(10) { animation-duration: 5.6s; animation-delay: -.2s; }
.banner-art .ember:nth-child(11) { animation-duration: 3.9s; animation-delay: -1.4s; } .banner-art .ember:nth-child(12) { animation-duration: 4.8s; animation-delay: -2.9s; }
.banner-art .glow { animation: glow-pulse 3.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
.banner-art .glow-b { animation-duration: 2.4s; animation-delay: -1s; }
@keyframes sig-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes orb-drift { from { transform: translate(-8px, 6px) scale(.92); } to { transform: translate(10px, -8px) scale(1.08); } }
@keyframes tick-beat { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.1); } }
@keyframes step-light { 0% { opacity: .16; } 8% { opacity: 1; } 28% { opacity: .55; } 44%, 100% { opacity: .16; } }
@keyframes dot-up { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-70px); } }
@keyframes ember-rise { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 10% { opacity: 1; } 65% { opacity: .8; transform: translate(8px, -60px) scale(.85); } 100% { opacity: 0; transform: translate(-5px, -100px) scale(.3); } }
@keyframes glow-pulse { from { opacity: .45; transform: scale(.92); } to { opacity: .95; transform: scale(1.08); } }
@media (max-width: 700px) { .banner-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .banner-art * { animation: none !important; } .banner-art .step { opacity: .55; } .banner-art .ember, .banner-art .dot { opacity: .35; } }
/* on a page that has the row of product buttons (SignalEdgeCascade, SignalEdgeFlare, SignalEdgeHarvest) the drawing starts to the right of that row and never under it (owner, 2026-10-15): the banner is a grid - the brand and the buttons in the first column (as wide as the wider of the two), the drawing in the rest, the menu row across both; with no room left (< 200px) the drawing is not drawn; on a small screen the banner is the plain column again (the drawing is off there anyway) */
.banner.has-pills { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); column-gap: 0; }
.banner.has-pills > .banner-top { grid-column: 1; grid-row: 1; }
.banner.has-pills > .family-switch { grid-column: 1; grid-row: 2; }
.banner.has-pills > .banner-nav { grid-column: 1 / -1; grid-row: 3; }
.banner.has-pills > .banner-art { position: relative; inset: auto; width: auto; min-width: 0; grid-column: 2; grid-row: 1 / 3; container-type: inline-size; }
.banner.has-pills > .banner-art svg { position: absolute; inset: 0 0 0 12px; width: calc(100% - 12px); height: 100%; }
@container (max-width: 199px) { .banner-art svg { display: none; } }
@media (max-width: 700px) { .banner.has-pills { display: flex; } }

/* ---- the e-mail with Sign out just below it, so a long admin menu can wrap without splitting them ---- */
.banner-nav .who { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.banner-nav .who .who-email { margin-left: 0; }
@media (max-width: 700px) { .banner-nav .who { margin-left: 0; width: 100%; align-items: center; } }

/* ---- the Flare tab's own book (laid out like the live SignalEdgeFlare dashboard) ---- */
.flare-book { margin-top: 8px; }
.fb-head { display: grid; gap: 8px; }
.fb-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: rgba(255, 255, 255, .04); }
.fb-text { display: grid; line-height: 1.2; } .fb-label { font-weight: 800; } .fb-sub { font-size: .8rem; color: var(--muted); }
.fb-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.fb-badge[data-state="ok"] .fb-dot, .fb-chip[data-state="ok"] { background-color: #22c55e; } .fb-badge[data-state="ok"] .fb-dot { background: #22c55e; }
.fb-badge[data-state="bad"] .fb-dot { background: #ef4444; } .fb-badge[data-state="idle"] .fb-dot { background: #f59e0b; } .fb-badge[data-state="off"] .fb-dot { background: #94a3b8; }
.fb-meta, .fb-refresh { margin: 0; }
.fb-chip { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #64748b; color: #fff; vertical-align: middle; }
.fb-chip[data-state="ok"] { background: #16a34a; } .fb-chip[data-state="idle"] { background: #d97706; } .fb-chip[data-state="off"], .fb-chip[data-state="unknown"] { background: #64748b; } .fb-chip[data-state="bad"] { background: #dc2626; }
.fb-note { display: block; font-size: .78rem; color: var(--muted); }
.fb-src.fb-wide { display: block; width: fit-content; margin: 3px 0 0; }                           /* (the wide-market tag under the price a sale gets) */
.fb-mid { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }                 /* (the middle-price figure in small grey text under the 'if sold now' number) */
.fb-src { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: rgba(245, 158, 11, .2); color: #f59e0b; }
.period-pills button.pill { font: inherit; font-weight: 600; cursor: pointer; }                 /* (the Flare strategies' own period buttons: the same pills as the Cascade page, but buttons, not links) */
.flare-book .period-pills { margin-bottom: 12px; }
.flare-book .cards + .cards, .flare-book .cards + p.muted { margin-top: 10px; }
.fb-title { margin: 22px 0 2px; font-size: 1.25rem; } .fb-subtitle { margin: 0 0 10px; max-width: 70em; }
.fb-paused { margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #dc2626; color: #fff; vertical-align: middle; }
.fb-tiles { margin-bottom: 4px; }
.flare-close-btn { padding: 5px 14px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: #dc2626; }
.flare-close-btn:hover { filter: brightness(1.08); } .flare-close-btn:disabled { opacity: .6; cursor: default; }
.put-close-btn { padding: 5px 14px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: #dc2626; }
.put-close-btn:hover { filter: brightness(1.08); } .put-close-btn:disabled { opacity: .6; cursor: default; }
/* the Long LEAP Call's own Close button (owner, 2026-10-31; the same red look, a rule of its own so that nothing of the Long Put is shared) */
.leap-close-btn { padding: 5px 14px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: #dc2626; }
.leap-close-btn:hover { filter: brightness(1.08); } .leap-close-btn:disabled { opacity: .6; cursor: default; }
/* Hold / Resume beside Close on the Flare positions (owner, 2026-10-28): amber to hold, green to resume; the ON HOLD tag in the symbol cell */
.position-hold-btn { display: block; margin: 0 0 4px; padding: 5px 10px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: #d97706; }          /* (above Close, so the last column stays as narrow as it was) */
.position-hold-btn.is-on { background: #16a34a; }
.entry-desk-btn { display: block; margin: 0 0 4px; padding: 5px 10px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; background: #d97706; }          /* (the Super Admin's Pending Entries: Hold in amber, Resume in green, Cancel in red, one above the other so the column stays narrow) */
.entry-desk-btn.is-on { background: #16a34a; }
.entry-desk-btn.is-cancel { background: #dc2626; margin-bottom: 0; }
.entry-desk-btn:hover { filter: brightness(1.08); } .entry-desk-btn:disabled { opacity: .6; cursor: default; }
.entry-review { margin: 6px 0 10px; font-weight: 700; } .entry-review .entry-desk-btn { display: inline-block; margin: 0 0 0 10px; background: #2563eb; }          /* (the Long Call's Review switch, one line above the table) */
.flare-book td small.co-sub { display: block; font-size: .78rem; opacity: .9; max-width: 19em; white-space: normal; }
.position-hold-btn:hover { filter: brightness(1.08); } .position-hold-btn:disabled { opacity: .6; cursor: default; }
.position-hold-tag { display: block; width: fit-content; margin: 3px 0 0; padding: 0 6px; border-radius: 6px; font-size: .72rem; font-weight: 800; background: #d97706; color: #fff; }          /* (under the symbol, so a held row is not wider than the others) */
.type-tag { display: block; width: fit-content; margin: 2px 0 0; padding: 0 6px; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: #fff; }          /* (the TYPE of a Long Put under its symbol, every user, owner 18 Nov 2026: SPIKE FADE, MARKET FREE-FALL, MARKET CORRECTION, HAND-PICKED; white on a fixed colour, the same in both themes) */
.type-tag.type-spike_fade { background: #4f46e5; } .type-tag.type-free_fall { background: #b91c1c; } .type-tag.type-correction { background: #c2410c; } .type-tag.type-hand_picked { background: #0f766e; } .type-tag.type-stock_free_fall { background: #7c2d12; }
.type-tag .type-sub { margin-left: 5px; font-size: .64rem; font-weight: 600; opacity: .85; }          /* (the Super Admin's small word inside a SPIKE FADE chip: solid or normal) */
.put-tags .type-tag { margin: 0; }
.tier-card tr.tier-sub td:first-child { padding-left: 22px; font-weight: 400; color: var(--muted); }          /* (Solid and Normal: the two small lines inside SPIKE FADE) */
.put-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; margin-top: 2px; }                                                                         /* (the Long Put's tier word and the AI chip beside it, under a symbol) */
.put-tags .ai-chip-wrap { margin-top: 0; }
.pattern-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; margin-top: 2px; }                                                                          /* (the pattern tags of a Long Put line, owner 12 Nov 2026: small grey chips under the symbol or the earnings tag; a record, not a warning, so no colour) */
.pattern-tag { display: inline-block; width: fit-content; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: .68rem; font-weight: 600; background: transparent; color: var(--muted); cursor: help; }
.tier-card .tier-total td { font-weight: 800; border-top: 2px solid var(--line); }
.tier-card th, .tier-card td { padding: 7px 6px; font-size: .86rem; } .tier-card th { font-size: .66rem; letter-spacing: 0; }          /* (compact, so the six columns fit a phone) */
.flare-book [hidden] { display: none !important; }

/* ---- the Cascade tab's account line, pending orders, chart and trade history (laid out like the live SignalEdgeCascade dashboard) ---- */
.cb-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cb-mode { padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #16a34a; color: #fff; }
.cb-mode[data-mode="live"] { background: #dc2626; }
.cb-equity { font-weight: 700; } .cb-sentiment { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.cb-tiles .value.pos, .cb-tiles .small.pos { color: var(--gain); } .cb-tiles .value.neg, .cb-tiles .small.neg { color: var(--loss); }
.cb-tiles .stat .small { display: block; margin-top: 2px; }
.cb-chart { position: relative; height: 280px; }
.cb-detail { display: block; margin-top: 2px; font-weight: 400; }
.reason-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; background: rgba(148, 163, 184, .2); color: inherit; }
.reason-chip.rc-STOP, .reason-chip.rc-STOP_LOSS { background: rgba(239, 68, 68, .2); color: #f87171; }
.reason-chip.rc-FLOOR, .reason-chip.rc-TAKE_PROFIT, .reason-chip.rc-HARD_TARGET, .reason-chip.rc-COVERED { background: rgba(34, 197, 94, .2); color: #4ade80; }
.reason-chip.rc-MANUAL_CLOSE, .reason-chip.rc-EXTERNAL, .reason-chip.rc-RECOVERING { background: rgba(245, 158, 11, .2); color: #fbbf24; }
.reason-chip[class*="rc-CC_"] { background: rgba(34, 197, 94, .2); color: #4ade80; }

/* "Refresh Now" in the top panel (the Cascade and Flare tabs put it there): beside Sign out, the same size and shape, in yellow */
.who-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.who-actions form { margin: 0; }
button.banner-refresh { white-space: nowrap; padding: 10px 18px; border-radius: 8px; border: 0; background: linear-gradient(120deg, #facc15, #f59e0b 70%, #eab308); color: #1f1300; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 3px 10px rgba(245, 158, 11, .35); }
button.banner-refresh:hover { filter: brightness(1.07); }
button.banner-refresh:disabled { opacity: .6; cursor: default; filter: none; }
/* a smaller top panel: it was taking about 40% of a laptop screen */
.banner { padding: 12px 24px 8px; gap: 8px; }
.banner:not(.compact) .banner-logo { width: 68px; height: 68px; border-radius: 16px; }
.banner:not(.compact) .banner-name { font-size: 1.55rem; }
.banner:not(.compact) .banner-tagline { font-size: .9rem; margin-top: 2px; }
.banner:not(.compact) .banner-quote { font-size: .92rem; margin-top: 2px; }
.banner-brand { gap: 16px; }
.banner:not(.compact) .banner-nav { padding-top: 8px; }
.banner-art.with-nav { bottom: 50px; }

/* Waivers page: customer, products, last day, reason and the button in one aligned row (wraps on a narrow screen) */
form.waive-form { gap: 12px 18px; padding-top: 6px; }
form.waive-form select { min-width: 280px; padding: 9px 10px; font: inherit; }
form.waive-form label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin: 0; }
form.waive-form input[type=date] { padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
form.waive-form input[type=text] { flex: 1 1 220px; width: auto; min-width: 0; padding: 9px 10px; font: inherit; }

/* Watchlist tables */
.wl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.wl-tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--surface); font-weight: 600; font-size: .9rem; }
.wl-tab-admin { margin-left: auto; border-style: dashed; }                                       /* (the AI check: a page of the admin area, shown to the Super Admin at the end of the Harvest tabs) */
.wl-tab.on { background: linear-gradient(135deg, #5b5ff0, #c026d3); border-color: transparent; color: #fff; }
.wl-wrap { overflow-x: auto; }
.wl-table { border-collapse: collapse; min-width: 880px; width: 100%; }
.wl-table th, .wl-table td { padding: 6px 10px; white-space: nowrap; }
.wl-table thead th { text-align: right; }
.wl-table th.wl-date, .wl-table th.wl-tkr, .wl-table th.wl-status-h, .wl-table th.wl-price, .wl-table td.wl-date, .wl-table td.wl-tkr, .wl-table td.wl-price { text-align: left; }
.wl-table td.wl-tkr, .wl-table th.wl-tkr { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.wl-cell span { display: block; }
.wl-cell small { display: block; font-size: .78rem; opacity: .9; }
.wl-table th.wl-opt-h, .wl-table td.wl-opt { text-align: left; }
.wl-opt span, .wl-opt small { display: block; }
.wl-table th.co-l, .wl-table td.co-l { text-align: left; }                                                                         /* (the Cancelled Orders table, docs/pending_entries_review.md step 3: its text columns read from the left, a small line sits under the main one) */
.wl-table td small.co-sub { display: block; font-size: .78rem; opacity: .9; }
.co-table td strong { white-space: nowrap; }                                                                                          /* (the "Cancelled on" day, 2026-11-18, is never split at its hyphens, not even in a phone card: owner, 18 Nov 2026) */
.wl-cell .wl-optday { margin-top: 2px; border-top: 1px dashed rgba(148, 163, 184, .35); padding-top: 2px; }                      /* (the option's own close under the stock's, in a day of the SignalEdgeFlare watchlist) */
.wl-cell small.wl-optday { border-top: 0; margin-top: 0; padding-top: 0; }
.wl-table tfoot th, .wl-table tfoot td { border-top: 2px solid var(--line); }
.wl-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--line); color: var(--muted, inherit); }
.wl-status.sb { border-color: var(--good); color: var(--good); }
.wl-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 8px 0 6px; }
.wl-periods { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-tab.small { padding: 5px 12px; font-size: .82rem; }
.wl-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wl-range label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.wl-range input[type=date] { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: .85rem; color-scheme: light dark; }
.wl-range .button { padding: 6px 18px; }
.wl-export { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; }                                      /* (the Excel / PDF links of every watchlist table, owner 2026-11-04) */
.wl-export .wl-export-btn { padding: 6px 18px; text-decoration: none; }
.wl-clear { font-size: .85rem; }
.wl-range-line { margin: 4px 0 8px; }
.wl-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0; }

/* The Action drop-down in a table row */
details.menu { position: relative; display: inline-block; text-align: left; }
details.menu > summary { list-style: none; cursor: pointer; padding: 6px 14px; user-select: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary::after { content: " \25BE"; }
details.menu[open] > summary::after { content: " \25B4"; }
.menu-list { display: flex; flex-direction: column; gap: 2px; min-width: 210px; margin-top: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); z-index: 20; }
.menu-list.floating { position: fixed; margin-top: 0; }
.menu-list form { margin: 0; }
.menu-list button.menu-item[type=submit] { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.menu-list button.menu-item[type=submit]:hover, .menu-list button.menu-item[type=submit]:focus-visible { background: var(--bg); }
.menu-list button.menu-item.danger[type=submit] { color: #ff9b94; }
@media (prefers-color-scheme: light) { .menu-list button.menu-item.danger[type=submit] { color: #b42318; } }
th.actions.col-left, td.actions.col-left { text-align: left; }
td.actions.menu-open, th.actions.menu-open { z-index: 40; }

/* ---- the source of a name (the Harvest tab and the SignalEdge watchlist; set by class, never by an inline style) ---- */
.src-tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; line-height: 1.25; max-width: 11.5em; white-space: normal; vertical-align: middle; background: rgba(148, 163, 184, .2); color: inherit; }
.src-tag.src-pipeline { background: rgba(56, 189, 248, .2); color: #38bdf8; }
.src-tag.src-rebound100 { background: rgba(245, 158, 11, .2); color: #f59e0b; }
.src-tag.src-strongbuy { background: rgba(34, 197, 94, .2); color: var(--good); }
.src-tag.src-rebound50 { background: rgba(167, 139, 250, .2); color: #a78bfa; }
.src-tag .shadow-mark { font-weight: 700; font-style: italic; opacity: .85; }                                  /* (the "-shadow" of a name that is only measured: Super Admin's list) */
.picked-mark { color: var(--good); font-weight: 700; font-size: .72rem; }
.picked-mark.backup { color: var(--muted); }                                                                    /* (the day's second decided name: bought by an account that cannot buy the picked one) */
.picked-mark .by-ai { color: var(--accent); }                                                                        /* ("picked by AI": the AI picker chose the name, owner 2026-11-02) */
/* the AI check tab of the Harvest Watchlist (owner, 2026-10-31; Super Admin only): the AI picker's looks and the AI judge's OK / AVOID of both voices */
.ai-reason { white-space: normal; max-width: 62ch; line-height: 1.35; margin: 3px 0 2px; }
#spreadDesk td.sd-wrap { white-space: normal; min-width: 12em; max-width: 20em; line-height: 1.3; }       /* (the Credit Spread desk's long cells wrap, so its Hold and Cancel buttons are on screen without scrolling) */
#spreadDesk td.sd-ai { min-width: 14em; max-width: 24em; }
#spreadDesk td.sd-ai .sd-line { font-size: .88rem; margin: 0 0 2px; }                 /* (not .small: that class pulls a line 8px up, which put Gemini's line on top of Claude's) */
.ai-verdict { display: inline-block; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .78rem; }
.ai-verdict.ok { color: var(--good); border-color: var(--good); }
.ai-verdict.avoid { color: #b42318; border-color: #b42318; background: var(--bad-bg); }
.ai-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }                                                    /* (the AI check's own tabs: Harvest and the Long LEAP Call; the look of the watchlists' tabs) */
.ai-tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--surface); font-weight: 600; font-size: .9rem; }
.ai-tab.on { background: linear-gradient(135deg, #5b5ff0, #c026d3); border-color: transparent; color: #fff; }
.ai-verdict.nj { color: var(--muted); }
/* SignalEdgeScout's list (the AI check's Scout tab): one small box for each stock of a look's list; Claude's pick is boxed in bold, Gemini's has a dashed box, the plain rule's first name is underlined */
.scout-chip { display: inline-block; margin: 0 5px 4px 0; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: .84rem; white-space: nowrap; }
.scout-chip small { color: var(--muted); }
.scout-chip.claude { font-weight: 800; border: 2px solid var(--good); }
.scout-chip.gemini { border: 2px dashed #5b5ff0; }
.scout-chip.gemini.claude { border: 2px solid var(--good); box-shadow: 0 0 0 2px #5b5ff0; }
.scout-chip.plain { text-decoration: underline; }
.scout-looks td, .scout-track td { white-space: normal; }                                                          /* (the cells wrap: twelve names in one line would push the two voices off the screen) */
.scout-looks td:nth-child(3) { min-width: 17rem; max-width: 34rem; }
.scout-looks td:nth-child(4), .scout-looks td:nth-child(5) { min-width: 15rem; max-width: 26rem; }
                                                                              /* (a signal the judge could not judge: neither a pass nor a fail) */
.ai-outcome-bought { color: var(--good); font-weight: 600; }
.wl-table td.ai-outcome { white-space: normal; min-width: 14em; max-width: 26em; }                                                    /* (more specific than the table's no-wrap rule: the outcome is a sentence) */
.ai-note { margin-top: 4px; }
@media (prefers-color-scheme: dark) { .ai-verdict.avoid { color: #ff9b94; border-color: #ff9b94; } }
.ai-agree-both_avoid, .ai-agree-differ { font-weight: 700; }
.wl-table.ai-table thead th, .wl-table.ai-table td { vertical-align: top; text-align: left; }
.wl-table.ai-table td { padding-top: 8px; padding-bottom: 8px; }
.wl-table td.ai-move { white-space: normal; min-width: 13em; max-width: 20em; }                                                         /* (the Long Put log's stock column is a sentence) */
.ai-move-yes { font-weight: 700; }
.ai-outcome-cancelled_ai, .ai-outcome-cancelled_you { color: var(--muted); }
/* The Super Admin's "Paper picks" table on the LEAP watchlist tab (docs/leap_shadow_picks.md): its text columns wrap, so the Status and the Result are on screen without scrolling sideways */
.wl-table.paper-picks { min-width: 0; }
.wl-table.paper-picks thead th, .wl-table.paper-picks td { vertical-align: top; text-align: left; white-space: normal; }
.wl-table.paper-picks td:nth-child(1), .wl-table.paper-picks td:nth-child(2), .wl-table.paper-picks td.num { white-space: nowrap; }
.wl-table.paper-picks td.num, .wl-table.paper-picks thead th:last-child { text-align: right; }
.ai-names { min-width: 0; margin: 6px 0; }
.wl-bought-h, .wl-bought { white-space: nowrap; }                                                                   /* (the Purchase status column of the SignalEdgeHarvest list, owner 2026-11-04: "Purchased" / "Not Purchased", one word each, never wrapped) */
.wl-bought .bought-yes { color: var(--good); font-weight: 800; }
.wl-bought .bought-no { color: var(--muted); }
.src-tag .purchased-mark { color: var(--good); font-weight: 800; }                                              /* (the "-purchased" of a name the customer's Harvest bought: bold and green, a colour the source texts do not use) */
.hv-sources th { white-space: nowrap; }
#openTable.hv-open th, #openTable.hv-open td { padding-left: 5px; padding-right: 5px; }                       /* (one more column than SignalEdgeCascade's open-positions table: the source) */
#openTable.hv-open .src-tag { min-width: 10.5em; }
.hv-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 12px; }

/* Telegram: "Change token or chat id" is a button next to Disconnect; the form it opens sits below the buttons (a native <details>, no script) */
.tg-change { display: inline-block; }
.tg-change > summary { list-style: none; cursor: pointer; background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c)); border: 0; color: #fff; box-shadow: 0 3px 10px rgba(147, 51, 234, .3); }          /* (the same look as the buttons beside it) */
.tg-change > summary:hover { filter: brightness(1.07); }
.tg-change > summary::-webkit-details-marker { display: none; }
.tg-change-form { display: none; flex: 1 0 100%; }
.tg-change[open] ~ .tg-change-form { display: block; }
.tg-note { margin-top: 16px; }

/* Trading mode (admin): the paper / live badges and the loud live notice */
.live-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; line-height: 1.25; background: #dc2626; color: #fff; vertical-align: middle; }
.paper-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; line-height: 1.25; background: rgba(34, 197, 94, .2); color: #16a34a; vertical-align: middle; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .paper-badge { color: #4ade80; } }
:root[data-theme="dark"] .paper-badge { color: #4ade80; }
.card form + p.muted { margin-top: 12px; }
/* the drop-downs of the watchlist tables (owner, 2026-10-17): one under each of the Date, Ticker and Status / Source headers */
.wl-filter-form { margin: 0; }
.wl-fsel { display: block; margin-top: 4px; max-width: 10rem; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: .78rem; font-weight: 400; }
.wl-fsel.on { border-color: var(--good); }
.wl-filter-line { margin: 4px 0 8px; }

/* ---- the phone header (owner, 2026-10-18: "Implement all of these" - 1. "On a phone the header fills the whole first screen ... a compact phone header: clock and logo in one row, the menu behind one 'Menu' button, the product buttons in one row. Desktop stays as it is.") ----
   Up to 700px wide the top bar is the logo and the name on the left and the Menu button on the right, the clock under it, then the three product buttons in ONE row (their short names, data-short: "Cascade" / "Flare" / "Harvest"; the full name stays the accessible name). The quote, and the tagline once signed in, are left out. The menu links with the e-mail, Refresh Now and Sign out are a panel that the button opens (navmenu.js); with scripts off nav-nojs.css shows the panel open. Wider screens are untouched: the button is not shown there. */
.banner { overflow: hidden; overflow: clip; }                                      /* (clip, not only hidden: a hidden box can still be scrolled sideways by the browser when a button inside it takes the focus - the glow that bleeds out of the panel's corner gives it room to - and the logo and the first product button slid out of sight) */
.nav-toggle { display: none; }
@media (max-width: 700px) {
  .banner, .banner.compact { padding: 12px 14px 10px; gap: 6px; }
  .banner-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .banner-top > .banner-brand { grid-column: 1; grid-row: 1; flex-direction: row; text-align: left; gap: 10px; }
  .banner-top > .nav-toggle { grid-column: 2; grid-row: 1; }
  .banner-top > .vclock { grid-column: 1 / -1; grid-row: 2; order: 0; justify-self: center; }
  .banner:not(.compact) .banner-logo, .banner.compact .banner-logo { width: 44px; height: 44px; border-radius: 11px; }
  .banner:not(.compact) .banner-name, .banner.compact .banner-name { font-size: 1.25rem; }
  .banner-quote { display: none; }
  .banner.has-nav .banner-tagline { display: none; }
  .banner:not(.has-nav) .banner-tagline { font-size: .68rem; margin-top: 0; }
  .nav-toggle { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .nav-toggle:hover, .banner.nav-open .nav-toggle { background: rgba(255, 255, 255, .26); }
  .banner-nav { display: none; }
  .banner.nav-open .banner-nav { display: flex; }
  .family-switch { flex-wrap: nowrap; justify-content: center; gap: 6px; padding: 2px 0 4px; }
  .family-switch .family-button { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 0; line-height: 1; text-align: center; }
  .family-switch .family-button::after { content: attr(data-short); font-size: .92rem; }
}

/* ---- the "Get started" card of a new customer's dashboard (owner, 2026-10-18: item 2 of "Implement all of these"; docs/get_started_card.md) ---- */
.cb-strip[hidden] { display: none; }                                                 /* (the account strip is hidden while the card is up for an account that is not connected) */
.get-started .gs-count { margin-left: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.gs-steps { list-style: none; margin: 0; padding: 0; }
.gs-step { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.gs-step:first-child { border-top: 0; }
.gs-mark { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--line); color: var(--muted); font-weight: 800; }
.gs-step.next .gs-mark { border-color: var(--c-violet); color: var(--c-violet); }
.gs-step.done .gs-mark { background: var(--good); border-color: var(--good); color: var(--surface); }
.gs-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-title { font-weight: 700; }
.gs-optional { font-size: .85rem; }
.gs-text { font-size: .9rem; }
.gs-done { color: var(--good); font-weight: 700; }
.gs-step .button { white-space: nowrap; }
@media (max-width: 560px) { .gs-step { grid-template-columns: 2rem minmax(0, 1fr); align-items: start; } .gs-step .button, .gs-step .gs-done { grid-column: 2; justify-self: start; } }

/* ---- the footer's links and the copyright line (owner, 2026-10-18: item 4 of "Implement all of these"; docs/footer_and_legal.md) ---- */
.foot-links { margin: 8px 0 0; }
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot .copyright { margin: 6px 0 0; }

/* ---- one rule for the header's buttons, a visible focus, the page you are on, a way past the header, a chart that fits (owner, 2026-10-18: item 6 of "Implement all of these": "Six different button looks should become one rule", "Check ... keyboard use"; docs/polish_pass.md) ----
   The header has the product buttons (each keeps its own colour: green, blue, orange), the menu links (glass pills), and ACTIONS - Menu, Refresh Now, Sign out - which now share one look: an outlined glass pill (they were a yellow gradient, a violet-pink gradient and a plain outline). The violet-pink gradient is for the main button of a page's own content. */
.banner-nav button.signout, .banner-nav button.banner-refresh, .banner-nav .who-actions button { white-space: nowrap; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: none; filter: none; }
.banner-nav button.signout:hover, .banner-nav button.banner-refresh:hover { background: rgba(255, 255, 255, .26); filter: none; }
/* the clicked buttons (owner, 2026-10-20: "when we click make the text letter within sub menu BLACK and the background colour something visible ... Refresh Now: letters black, background yellow. Sign out: letters black, background red"):
   Refresh Now is yellow while it is pressed and for as long as it works (the page reloads or the data is fetched: it is disabled and says 'Refreshing...'); Sign out is red while it is pressed. */
.banner-nav button.banner-refresh:active, .banner-nav button.banner-refresh:disabled { background: #facc15; border-color: #facc15; color: #000; opacity: 1; }
.banner-nav button.banner-refresh:disabled { cursor: default; }
.banner-nav button.signout:active { background: #ef4444; border-color: #ef4444; color: #000; }
/* the sub-menu button you clicked - the page you are on - in every module and in the admin area: black letters on a solid white pill (it was white letters on a faint glass pill), and the same while a menu button is pressed */
.banner-nav a[aria-current="page"], .banner-nav a:active { background: #fff; color: #000; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
/* the keyboard's place on the dark header: a white ring with a dark halo (the page's blue ring is lost on the purple) */
.banner a:focus-visible, .banner button:focus-visible, .banner .banner-nav button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(0, 0, 0, .4); }
/* "Skip to the page": the first thing a keyboard reaches, shown only while it has the focus */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #fff; color: #1b1e4b; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 12px; }
main:focus { outline: none; }
/* the dashboard's chart is a canvas of its own width (300): it must never be wider than its card (it made the page 26px wider than a 320px phone) */
.cb-chart canvas { max-width: 100%; }

/* ---- the front page (owner, 2026-10-18: item 3 of "Implement all of these"; docs/front_page.md): how it works in three steps, the dashboard's status row as a picture (no results, no prices), a few things worth knowing ---- */
.how, .preview, .good { max-width: 64rem; margin: 28px 0 0; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.how-step > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.how-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c)); color: #fff; font-weight: 800; }
.preview-frame { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 24px rgba(91, 95, 240, .18); }
.preview-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.preview-frame .cards { margin: 0; }
.good-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) { .how-steps { grid-template-columns: 1fr; } }

/* ---- the day boxes of the watchlist tables (owner, 2026-10-18: "mark the square box to highlight it so that it will be easy for the user to have a quick look on the data"; docs/watchlist_boxes.md): a bold green box on the day with a line's biggest gain, a red box on the day with its biggest loss (measured on the option's price where the line has an option). The box is drawn over the cell by its ::after, so nothing moves when it appears. ---- */
:root { --wl-gain: #16a34a; --wl-loss: #dc2626; }
@media (prefers-color-scheme: dark) { :root { --wl-gain: #4ade80; --wl-loss: #f87171; } }
.wl-in { display: block; width: fit-content; margin-left: auto; position: relative; }                                    /* (the figures of a boxed cell: a block as wide as its widest line, at the cell's right edge; the box is drawn around IT, so it hugs the figures with the same gap on the left as on the right - owner, 2026-10-18 evening: "All the boxes has lots of space left side. It should be like the box area in right side") */
.wl-cell.wl-best .wl-in::after, .wl-cell.wl-worst .wl-in::after { content: ""; position: absolute; inset: -3px -6px; border: 3px solid var(--wl-gain); border-radius: 8px; pointer-events: none; }
.wl-cell.wl-worst .wl-in::after { border-color: var(--wl-loss); }
.wl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.wl-key { display: inline-block; padding: 0 6px; border: 2px solid var(--wl-gain); border-radius: 5px; font-weight: 700; }
.wl-key-loss { border-color: var(--wl-loss); }

/* the admin menu in three labelled groups (owner, 2026-10-20, item C: People / Operations / Controls between Overview and the Customer area; one group wraps as a unit, on a phone each is a row of its own) */
.banner-nav .nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .32); }
.banner-nav .nav-cap { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .78); margin-right: 2px; }
.banner-nav .nav-sep { align-self: stretch; width: 1px; background: rgba(255, 255, 255, .32); }
@media (max-width: 700px) { .banner-nav .nav-group { width: 100%; padding-left: 0; border-left: 0; justify-content: center; } .banner-nav .nav-cap { width: 100%; text-align: center; } .banner-nav .nav-sep { display: none; } }

/* ---- the customer's details page (owner, 2026-10-20; docs/customer_profile.md): a form on two or three columns that falls to one on a phone, and the number's code page ---- */
input[type=tel], form.profile-form select, #f_code { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; width: 100%; }
form.profile-form select[aria-invalid="true"], input[type=tel][aria-invalid="true"] { border-color: #b42318; }
.profile-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-field label { font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); }
@media (max-width: 560px) { .profile-grid, .profile-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.profile-verified { margin: 0; color: var(--good, #1a7f37); font-weight: 600; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 0; }
.profile-resend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
#f_code { max-width: 12rem; font-size: 1.4rem; letter-spacing: .25em; text-align: center; }
.profile-resend button.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ---- the "Stop using SignalEdge" page (owner, 2026-10-20; docs/customer_deactivation.md): each open position as a short entry with what rests at the broker (a list, not a wide table: it reads on a phone) ---- */
.stop-positions { list-style: none; margin: 0 0 8px; padding: 0; }
.stop-positions li { padding: 10px 0; border-top: 1px solid var(--line); }
.stop-positions li:first-child { border-top: 0; padding-top: 0; }
.stop-title { font-weight: 600; }
.stop-fact { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* ---- the admin Reports (owner, 2026-10-21; docs/admin_reports.md): the Customer report's status pills, small second lines, sortable headings and totals row ---- */
.status-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8em; font-weight: 600; background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--text); white-space: nowrap; }
.status-pill.good { background: color-mix(in srgb, var(--c-green) 22%, transparent); }
.status-pill.warn { background: color-mix(in srgb, var(--c-amber) 28%, transparent); }
.status-pill.bad { background: color-mix(in srgb, #b42318 20%, transparent); }
.status-pill.off, .status-pill.muted { color: var(--muted); }
.small-line { font-size: .78rem; }
.report-table { font-size: .88rem; }
.report-table th, .report-table td { padding: 6px 8px; }
.report-table td.wrap { white-space: normal; min-width: 10rem; max-width: 18rem; overflow-wrap: anywhere; }
.report-table th a { color: inherit; text-decoration: none; white-space: nowrap; }
.report-table th a:hover { text-decoration: underline; }
.report-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); vertical-align: top; }
.report-notes { margin: 12px 0 0; padding-left: 1.2em; }
.pdf-link { margin-left: 8px; font-weight: 600; }

/* ---- the Terms of Service page (owner, 2026-10-21): a long text, so a wider column, the red "pending for lawyer review" line, blanks marked in yellow, the short version and the contents in boxes ---- */
.card.legal { max-width: 880px; margin: 16px auto 24px; padding: 22px 28px; }
.legal h1 { font-size: 1.9rem; margin: 4px 0 6px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 10px; scroll-margin-top: 16px; }
.legal p, .legal li { line-height: 1.62; }
.legal p { margin: 0 0 10px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.terms-pending { color: #c1121f; font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; margin: 0 0 6px; }
.terms-pending strong { font-weight: 800; }
.terms-testing { margin: 0 0 14px; }
.legal .brief { border: 1px solid var(--line); border-left: 4px solid var(--grad-b, #7c5cff); border-radius: 10px; padding: 12px 18px 8px; margin: 16px 0 18px; background: rgba(124, 92, 255, .06); }
.legal .brief h2 { margin-top: 4px; border-left: 0; padding-left: 0; }
.legal .toc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px 6px; margin: 0 0 18px; }
.legal .toc h2 { margin: 0 0 8px; border-left: 0; padding-left: 0; }
.legal .toc ol { columns: 2; column-gap: 28px; margin: 0 0 8px; padding-left: 22px; font-size: .95rem; }
.legal .toc li { margin: 0 0 3px; break-inside: avoid; }
mark.ph { background: #fff2a8; color: #3a2e00; padding: 0 3px; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .terms-pending { color: #ff6b6b; } mark.ph { background: #5a4a10; color: #ffe9a0; } }
@media (max-width: 640px) { .card.legal { padding: 16px 16px; } .legal .toc ol { columns: 1; } }

/* the family feed's switchboard (owner, 2026-10-25): one card per person, one clear switch, the rest behind "More" - made to be used on a phone */
.person-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.person-name { font-size: 1.05rem; }
.person-meta { margin: 4px 0 10px; }
.person-card .actions-row { gap: 6px 16px; align-items: flex-start; }
.person-card .actions-row form { margin: 0; }
.person-card button[type=submit].warn-btn { background: var(--c-amber); color: #1b1b1b; box-shadow: none; padding: 8px 16px; border-radius: 8px; }
.person-card button[type=submit].ok-btn { background: var(--c-green); color: #fff; box-shadow: none; padding: 8px 16px; border-radius: 8px; }
.person-more summary { cursor: pointer; color: var(--accent); padding: 8px 0; list-style-position: inside; }
.person-more-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 6px; }
.person-more-body .inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-field { width: 100%; box-sizing: border-box; }
.invite-text { width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: inherit; resize: vertical; }
#invite-copy, .share-menu summary { font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2; padding: 10px 18px; border-radius: 8px; }
#invite-note { align-self: center; }
.invite-actions { gap: 10px 14px; }
.share-menu { position: relative; display: inline-block; }
.share-menu summary { list-style: none; display: inline-block; cursor: pointer; }
.share-menu summary::-webkit-details-marker { display: none; }
.share-list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.share-list a, .share-list button { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.share-list a:hover, .share-list button:hover, .share-list a:focus-visible, .share-list button:focus-visible { background: var(--line); }
.share-list button[hidden] { display: none; }
@media (max-width: 560px) { .share-list { left: auto; right: 0; } }                                                                                                    /* (on a phone the menu opens leftwards from the button, so it stays on the screen) */
.person-asks { margin: 4px 0 10px; }
/* the family feed page (owner, 2026-10-25: "the msg comes with text grey and not very clear which user is missing to click the validate. Can u make it bold black and all the action button like Add, Ok etc as blue bold in the msg"): no grey text on this page, the notices and the validation status in bold black, and every action button, and the name of a button inside a message, blue and bold. (The shared Yes / No popup is outside .family-page and stays as it is on every page.) */
.family-page .muted { color: var(--text); }
.family-page .notice { font-weight: 700; color: var(--text); }
.family-page .notice.good { font-weight: 700; }
.family-page .notice .detail, .family-page .check-line .detail { font-weight: 500; }
.family-page .check-line { margin: 6px 0 10px; font-weight: 700; color: var(--text); }
.family-page .state-todo { display: inline-block; padding: 3px 10px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-weight: 800; color: var(--text); }
.family-page .act { color: var(--accent); font-weight: 800; }
.family-page button[type=submit]:not(.link):not(.warn-btn), .family-page .person-card button[type=submit].ok-btn, .family-page #invite-copy { background: var(--accent); color: var(--accent-text); border: 2px solid var(--accent); box-shadow: none; font-weight: 800; cursor: pointer; }
.family-page .person-card button[type=submit].warn-btn, .family-page .share-menu summary { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; font-weight: 800; }
.family-page button.link, .family-page .person-more summary, .family-page .share-list a, .family-page .share-list button { color: var(--accent); font-weight: 800; }
.family-page .invite-actions + p.small { margin-top: 12px; }                                                                                                          /* (the bordered buttons are a little taller: the "only the link" line no longer touches them) */

/* ---- the admin Jobs page (owner, 28 Oct 2026; docs/jobs_page.md): every job by module for one day, the last 30 days as squares under each job, a status chip you can read without the colour ---- */
.jobs-page .card.c-red { border-top-color: #e34948; } .jobs-page .card.c-red .value { color: #e34948; }
.jobs-page .jobs-counts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.jobs-page .jobs-day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jobs-page .jobs-day .button { padding: 6px 14px; }
.jobs-page .jobs-pick input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.jobs-page .jobs-dayname { font-weight: 700; margin-left: 6px; }
.jobs-page .jobs-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.jobs-page .jobs-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; padding: 3px 4px 4px; border-radius: 8px; border: 1px solid var(--line); border-top-width: 4px; background: var(--surface); color: var(--text); font: inherit; line-height: 1.15; cursor: pointer; }
.jobs-page .jobs-chip .chip-wd { font-size: .68rem; color: var(--muted); } .jobs-page .jobs-chip .chip-d { font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.jobs-page .jobs-chip.chip-ok { border-top-color: var(--c-green); } .jobs-page .jobs-chip.chip-bad { border-top-color: #e34948; } .jobs-page .jobs-chip.chip-none { border-top-color: var(--line); }
.jobs-page .jobs-chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .jobs-page .jobs-chip.active .chip-wd { color: inherit; }
.jobs-page .jobs-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.jobs-page .jobs-modules { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.jobs-page .jobs-modules .pill { padding: 5px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.jobs-page .jobs-modules .pill.active { background: linear-gradient(135deg, var(--c-indigo, #4f46e5), var(--c-violet, #9333ea)); color: #fff; border-color: transparent; }
.jobs-page .jobs-problems { font-weight: 600; }
.jobs-table th, .jobs-table td { white-space: normal; vertical-align: top; }
.jobs-table td.num { white-space: nowrap; }
.jobs-table .job-name { min-width: 210px; } .jobs-table .job-name b { display: block; }
.jobs-table .job-sched, .jobs-table .job-freq { color: var(--muted); min-width: 130px; }
.jobs-table .job-out { min-width: 160px; }
.jobs-table small { color: var(--muted); font-size: .78rem; } .jobs-table small.job-failed { color: #b42318; font-weight: 700; } .jobs-table small.job-note { display: block; margin-top: 2px; }
.jobs-table tr.job-group th { background: color-mix(in srgb, var(--c-violet) 10%, var(--surface)); color: var(--text); text-transform: none; letter-spacing: 0; font-size: .95rem; padding: 10px; }
.jobs-table tr.job-row { cursor: pointer; } .jobs-table tr.job-row:hover { background: color-mix(in srgb, var(--c-indigo) 7%, transparent); }
.jobs-table tr.job-row[aria-expanded=true] { background: color-mix(in srgb, var(--c-indigo) 10%, transparent); }
.jobs-table tr.job-detail td { background: var(--bg); padding: 10px 14px 14px; }
.jobs-table table.job-runs { width: auto; font-size: .85rem; } .jobs-table table.job-runs th, .jobs-table table.job-runs td { padding: 4px 10px; }
.jobs-table tr.flash { animation: jobflash 2.6s ease-out; }
@keyframes jobflash { from { background: color-mix(in srgb, var(--c-amber) 38%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .jobs-table tr.flash { animation: none; outline: 2px solid var(--c-amber); } }
.job-status { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.job-status.st-ok { background: color-mix(in srgb, var(--c-green) 22%, transparent); color: var(--good); }
.job-status.st-running { background: color-mix(in srgb, var(--c-blue) 22%, transparent); color: var(--c-blue); }
.job-status.st-waiting { background: color-mix(in srgb, var(--c-amber) 26%, transparent); color: var(--text); }
.job-status.st-failed { background: color-mix(in srgb, #e34948 20%, transparent); color: #b42318; }
.job-status.st-missed { background: transparent; color: #b42318; border-color: #e34948; border-style: dashed; }
.job-status.st-idle { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--text); }
.job-status.st-off, .job-status.st-no_market { background: transparent; color: var(--muted); border-color: var(--line); }
.job-status.st-no_data { background: transparent; color: var(--muted); border-color: var(--line); border-style: dashed; }
@media (prefers-color-scheme: dark) { .job-status.st-failed, .job-status.st-missed, .jobs-table small.job-failed { color: #ff9b94; } }
.jobs-strip { display: flex; gap: 2px; margin-top: 5px; }
.jobs-strip .sq { display: block; width: 7px; height: 12px; border-radius: 2px; background: var(--line); }
.jobs-strip .sq-ok { background: var(--c-green); } .jobs-strip .sq-failed { background: #e34948; } .jobs-strip .sq-missed { background: #e8590c; }
.jobs-strip .sq-running { background: var(--c-blue); } .jobs-strip .sq-waiting { background: var(--c-amber); } .jobs-strip .sq-idle { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.jobs-strip .sq-off, .jobs-strip .sq-no_market { background: color-mix(in srgb, var(--line) 70%, transparent); height: 6px; margin-top: 6px; }
.jobs-strip .sq-no_data { background: transparent; border: 1px dashed var(--line); } .jobs-strip .sq-none { background: color-mix(in srgb, var(--line) 40%, transparent); height: 4px; margin-top: 8px; }
.jobs-legend ul { margin: 0 0 10px; padding-left: 18px; } .jobs-legend li { margin: 0 0 6px; }
@media (max-width: 560px) { .jobs-page .jobs-chip { min-width: 30px; } }
.earning { white-space: nowrap; }                                                                                   /* (the Earning column, owner 2026-10-29: the report date of the ticker) */
.earning-days { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }                          /* (the days left, small, under the date) */
.earning-days.soon { color: var(--c-amber); font-weight: 700; }                                                     /* (a report within a week) */
/* The Stop loss switch in the Harvest console's header (owner, 2026-10-30; docs/harvest_stop_switch.md): a coloured pill between Watchlist and Admin area; a click opens its three choices as pills right beside it (in the row, not over the page: the banner clips anything that hangs out of it); a banner on the page while it is OFF. */
.stop-switch { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.banner-nav .stop-switch-btn { font: inherit; font-weight: 700; color: #fff; padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .75); cursor: pointer; white-space: nowrap; }
.banner-nav .stop-green .stop-switch-btn { background: #15803d; }
.banner-nav .stop-blue .stop-switch-btn { background: #1d4ed8; }
.banner-nav .stop-red .stop-switch-btn { background: #b91c1c; }
.banner-nav .stop-switch-btn:hover { filter: brightness(1.15); }
.banner-nav .stop-switch-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.stop-switch-menu { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.stop-switch-menu[hidden] { display: none; }
.banner-nav .stop-switch-menu .stop-choice { padding: 5px 14px; border: 0; border-radius: 999px; background: #fff; color: #111; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.banner-nav .stop-switch-menu .stop-choice:hover, .banner-nav .stop-switch-menu .stop-choice:focus-visible { background: #facc15; }
.banner-nav .stop-switch-menu .stop-choice.current::after { content: " \2713"; color: #15803d; }
.stop-off-banner { border-color: #b91c1c; }
.stop-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; width: max-content; max-width: min(92vw, 560px); padding: 10px 16px; border-radius: 12px; background: #111827; color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.stop-note[hidden] { display: none; }
@media (max-width: 700px) { .stop-switch { width: 100%; justify-content: center; } }
/* The Harvest console's two switches on a line of their own (owner, 2026-11-05: "move Admin area next to Calender. Move Stop loss and Timing to below"): the empty element before them takes a whole line of the menu row, so the switches start a new one and the user's block follows them on it. The negative top margin cancels the row gap that the empty line would add twice. The phone menu panel already stacks them, so there the element is not drawn. */
.banner-nav .nav-break { flex: 0 0 100%; height: 0; margin: 0; padding: 0; }
.banner.compact.has-nav .banner-nav .nav-break { margin-top: -4px; }
@media (max-width: 700px) { .banner-nav .nav-break { display: none; } }

/* ---- a slimmer header on a laptop (owner, 2026-11-01; docs/PRODUCT_REVIEW_2026-11-01.pdf, item 5): the same panel, the same drawing and clock, less air. The phone header (700 px and under) is not touched. ---- */
@media (min-width: 701px) {
  .banner.compact.has-nav { padding: 10px 22px 8px; gap: 4px; }
  .banner.compact.has-nav .banner-logo { width: 46px; height: 46px; border-radius: 12px; }
  .banner.compact.has-nav .banner-brand { gap: 14px; }
  .banner.compact.has-nav .banner-name { font-size: 1.3rem; }
  .banner.compact.has-nav .banner-tagline { font-size: .72rem; margin-top: 0; }
  .banner.compact.has-nav .family-switch { padding: 2px 0 6px 60px; gap: 6px 8px; }                /* (owner, 2026-11-05: the three product buttons start under the title text, not under the logo: 60px = the logo's 46px + the brand's 14px gap above) */
  .banner.compact.has-nav .family-button { padding: 4px 18px; font-size: .92rem; }
  .banner.compact.has-nav .banner-nav { padding-top: 6px; gap: 4px 8px; }
  .banner.compact.has-nav .banner-nav a { padding: 3px 12px; font-size: .92rem; }
  .banner.compact.has-nav .banner-nav .who { flex-direction: row; align-items: center; gap: 10px; }
  .banner.compact.has-nav .banner-nav button.signout, .banner.compact.has-nav .banner-nav button.banner-refresh, .banner.compact.has-nav .banner-nav .who-actions button { padding: 3px 14px; font-size: .92rem; }
  /* The Harvest console's two switches (Stop loss, Timing) at the size of the other pills (owner, 2026-11-05: "Reduce the size of Stop loss and Timing buttons and try to match with same letter size and box size of Dashbord etc."): the same letter size and the same 28px height as the links (a 2px padding and a 1px border give the 3px of the links' padding), the colours as they were; their choices shrink with them. The phone menu keeps its large touch targets. */
  .banner.compact.has-nav .banner-nav .stop-switch { gap: 4px 6px; }
  .banner.compact.has-nav .banner-nav .stop-switch-btn { padding: 2px 12px; font-size: .92rem; font-weight: 600; border-width: 1px; border-color: rgba(255, 255, 255, .55); }
  .banner.compact.has-nav .banner-nav .stop-switch-menu { padding: 2px; }
  .banner.compact.has-nav .banner-nav .stop-switch-menu .stop-choice { padding: 1px 12px; font-size: .92rem; font-weight: 600; }
  .banner.compact.has-nav .who-actions { gap: 8px; }
}

/* ---- the grey notes behind one toggle (owner, 2026-11-01; docs/PRODUCT_REVIEW_2026-11-01.pdf, item 2): plain <details>, closed after the first visit (static/ux.js) ---- */
details.fold { margin: 6px 0 8px; }
details.fold > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "\25B8"; font-size: .8em; }
details.fold[open] > summary::before { content: "\25BE"; }
details.fold > summary:hover { border-color: var(--c-violet); color: inherit; }
details.fold > summary:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 2px; }
details.fold[open] > :not(summary):first-of-type { margin-top: 8px; }

/* ---- the Cancelled Orders sections of the Flare books fold away (owner, 18 Nov 2026: "if I click it will show all contents and another click will hide the data ... this table is growing and the page is Dashboard is long now"): plain <details>, drawn closed; the heading, a count of the entries inside and a hint stay on one line ---- */
.co-card > details.co-collapse > summary { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; list-style: none; border-radius: 8px; user-select: none; }
.co-card > details.co-collapse > summary::-webkit-details-marker { display: none; }
.co-card > details.co-collapse > summary::before { content: "\25B8"; color: var(--muted); font-size: 1.05rem; line-height: 1; transition: transform .15s ease; }
.co-card > details.co-collapse[open] > summary::before { transform: rotate(90deg); }
.co-card > details.co-collapse > summary > h2 { margin: 0; }
.co-card > details.co-collapse[open] > summary { margin-bottom: 12px; }
.co-card > details.co-collapse > summary:hover .co-hint { color: inherit; }
.co-card > details.co-collapse > summary:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 3px; }
.co-card .co-count { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-card .co-hint::after { content: "click to show"; }
.co-card > details.co-collapse[open] .co-hint::after { content: "click to hide"; }
@media (prefers-reduced-motion: reduce) { .co-card > details.co-collapse > summary::before { transition: none; } }

/* ---- the Flare dashboard's strategy switcher (owner, 2026-11-01; docs/PRODUCT_REVIEW_2026-11-01.pdf, items 4, 6 and 7): quick links under each strategy, the at-a-glance strip, the Needs you box, one period for all ---- */
.fb-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; font-size: .9rem; }
.fb-links a { color: var(--c-violet); text-decoration: none; font-weight: 600; } .fb-links a:hover { text-decoration: underline; }
.fb-switch { margin: 6px 0 14px; }
.fb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 12px; }
.fb-tile { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); border-top: 4px solid var(--c-violet); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.fb-tile:nth-child(1) { border-top-color: #6b7280; } .fb-tile:nth-child(2) { border-top-color: #10b981; } .fb-tile:nth-child(3) { border-top-color: #7c3aed; } .fb-tile:nth-child(4) { border-top-color: #f59e0b; }
.fb-tile:hover { border-color: var(--c-violet); }
.fb-tile.on { background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(167, 139, 250, .08)); border-color: var(--c-violet); box-shadow: 0 0 0 2px rgba(124, 92, 255, .35); }
.fb-tile:focus-visible { outline: 2px solid var(--c-violet); outline-offset: 2px; }
.fb-tile-top { display: flex; align-items: center; gap: 8px; }
.fb-tile-name { font-weight: 800; }
.fb-tile-dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .35); }
.fb-tile-dot[hidden] { display: none; }
.fb-tile-line { color: var(--muted); font-size: .88rem; }
.fb-tile-pl { font-weight: 700; font-size: .95rem; min-height: 1.2em; }
.fb-needs { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid #fdba74; background: #fff7ed; color: #7c2d12; font-size: .93rem; line-height: 1.5; }
.fb-needs[hidden] { display: none; }
.fb-needs-bad { border-color: #fca5a5; background: #fef2f2; color: #7f1d1d; } .fb-needs-info { border-color: var(--line); background: var(--surface); color: var(--text); }
.fb-needs a { color: inherit; font-weight: 600; text-decoration: underline; }
.fb-needs-title { display: block; margin-bottom: 2px; } .fb-needs-row { margin: 1px 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fb-needs { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .5); color: #fde68a; }
  :root:not([data-theme="light"]) .fb-needs-bad { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .5); color: #fecaca; }
  :root:not([data-theme="light"]) .fb-needs-info { background: var(--surface); border-color: var(--line); color: var(--text); }
}
:root[data-theme="dark"] .fb-needs { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .5); color: #fde68a; }
:root[data-theme="dark"] .fb-needs-bad { background: rgba(239, 68, 68, .14); border-color: rgba(239, 68, 68, .5); color: #fecaca; }
:root[data-theme="dark"] .fb-needs-info { background: var(--surface); border-color: var(--line); color: var(--text); }
.fb-period { margin: 0 0 4px; }
body.fb-switched .flare-book .period-pills[data-results] { display: none; }          /* (the one period selector above the books is there: the books' own buttons are pressed by it) */
.fb-strategy[hidden] { display: none !important; }

/* ---- the admin Status board (owner, 2026-11-01; docs/PRODUCT_REVIEW_2026-11-01.pdf, item 8): one read-only table of every switch ---- */
.status-chip { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; border: 1px solid var(--line); }
.status-on { background: rgba(34, 197, 94, .16); color: #166534; border-color: rgba(34, 197, 94, .5); }
.status-off { background: var(--surface); color: var(--muted); }
.status-warn { background: rgba(245, 158, 11, .18); color: #92400e; border-color: rgba(245, 158, 11, .55); }
.status-bad { background: rgba(239, 68, 68, .16); color: #991b1b; border-color: rgba(239, 68, 68, .55); }
.status-info { background: rgba(99, 102, 241, .12); color: #3730a3; border-color: rgba(99, 102, 241, .4); }
strong.status-bad { background: none; border: 0; color: #b91c1c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-on { color: #86efac; } :root:not([data-theme="light"]) .status-warn { color: #fcd34d; } :root:not([data-theme="light"]) .status-bad { color: #fca5a5; } :root:not([data-theme="light"]) .status-info { color: #c7d2fe; }
}
:root[data-theme="dark"] .status-on { color: #86efac; } :root[data-theme="dark"] .status-warn { color: #fcd34d; } :root[data-theme="dark"] .status-bad { color: #fca5a5; } :root[data-theme="dark"] .status-info { color: #c7d2fe; }
.status-group { margin-top: 14px; } .status-table td { vertical-align: top; } .status-table td:first-child { white-space: normal; min-width: 14em; } .status-table td:nth-child(3) { min-width: 10em; max-width: 46em; white-space: normal; }                                     /* (a long detail wraps instead of pushing the 'Change it' column off the screen: the AI spend rows, 2026-11-11) */

/* ---- phone cards (owner, 2026-11-01; docs/PRODUCT_REVIEW_2026-11-01.pdf, item 9): on a phone each row of a dashboard table is a card, each cell named by its column (static/ux.js adds data-label); a table stays a table on a wider screen ---- */
@media (max-width: 640px) {
  .table-wrap:has(> table.cardify) { overflow: visible; }
  table.cardify { display: block; width: 100%; min-width: 0; border: 0; }                                                                       /* (min-width 0: the Cancelled Orders table is a .wl-table with a minimum width of 880px, which kept its cards wider than a phone: owner's look, 18 Nov 2026) */
  table.cardify thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  table.cardify tbody { display: block; }
  table.cardify tbody tr { display: block; margin: 0 0 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  table.cardify tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; border: 0; text-align: right; white-space: normal; }
  table.cardify tbody td::before { content: attr(data-label); flex: 0 0 40%; text-align: left; color: var(--muted); font-size: .82rem; font-weight: 600; }
  table.cardify tbody td:first-child { font-weight: 800; font-size: 1.05rem; justify-content: flex-start; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  table.cardify tbody td:first-child::before, table.cardify tbody td[data-label=""]::before { display: none; }
  table.cardify tbody td[data-label=""] { justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  table.cardify tbody td:empty { display: none; }
  table.cardify tbody td button { min-height: 40px; }
}

/* The Calendar page (owner, 2026-11-01: "a calendar next to the watchlist which will open like a calendar in Windows"; docs/market_calendar.md): a month grid, Sunday first, six weeks, today in the accent colour, closed days red, early closes amber, weekends the page colour. */
.cal-outlook { padding: 12px 16px; }
.cal-outlook p { margin: 0 0 6px; }
.cal-outlook dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 6px 0 0; font-size: .92rem; }
.cal-outlook dt { color: var(--muted); }
.cal-outlook dd { margin: 0; }
.cal-now-closed strong, .cal-now-weekend strong { color: #b42318; }
.cal-now-early strong { color: #8a5a00; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.cal-title { margin: 0 6px; padding-left: 0; border-left: 0; font-size: 1.35rem; min-width: 9em; text-align: center; }
.cal-step { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 1.5rem; line-height: 1; }
.cal-step.off { opacity: .35; }
.cal-tools { display: contents; }                                                                                  /* (beside the arrows on a wide screen; a row of its own on a phone) */
.cal-views { display: inline-flex; gap: 6px; margin-left: auto; }
.cal-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cal-years a { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-years a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.cal-card { padding: 10px 12px; }
table.cal-grid { table-layout: fixed; border-collapse: separate; border-spacing: 4px; width: 100%; font-size: .95rem; }
.cal-grid th { text-align: center; padding: 6px 0; border-bottom: 0; }
.cal-grid td { position: relative; height: 92px; vertical-align: top; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); white-space: normal; }
.cal-grid td.cal-weekend { background: var(--bg); }
.cal-grid td.cal-closed { background: var(--bad-bg); border-color: var(--bad-line); }
.cal-grid td.cal-early { background: var(--warn-bg); border-color: var(--warn-line); }
.cal-grid td.cal-out { opacity: .5; }
.cal-grid td.cal-today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-today .cal-num { background: var(--accent); color: var(--accent-text); }
.cal-label { display: block; margin-top: 4px; font-size: .72rem; line-height: 1.2; font-weight: 600; }
.cal-closed .cal-label { color: #b42318; }
.cal-early .cal-label { color: #8a5a00; }
.cal-grid td.cal-closed::after, .cal-grid td.cal-early::after { position: absolute; top: 5px; right: 8px; font-size: .78rem; font-weight: 700; }
.cal-grid td.cal-closed::after { content: "\2715"; color: #b42318; }
.cal-grid td.cal-early::after { content: "\00BD"; color: #8a5a00; }
.cal-count { margin: 8px 0 0; }
.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.cal-mini-card { margin: 0; padding: 10px; }
.cal-mini-title { margin: 0 0 4px; font-size: 1rem; }
.cal-mini-title a { color: var(--text); text-decoration: none; }
table.cal-mini { border-spacing: 2px; font-size: .78rem; }
.cal-mini th { padding: 2px 0; font-size: .66rem; }
.cal-mini td { height: auto; padding: 2px 0; text-align: center; border-radius: 6px; }
.cal-mini .cal-num { min-width: 22px; height: 22px; }
.cal-mini .cal-label, .cal-mini td.cal-closed::after, .cal-mini td.cal-early::after { display: none; }
.cal-mini td.cal-out { visibility: hidden; }                                                                         /* (a small month shows its own days only: the days of its neighbours are in their own boxes) */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 4px 0 16px; padding: 0; font-size: .85rem; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-sw { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.cal-sw.cal-closed { background: var(--bad-bg); border-color: var(--bad-line); }
.cal-sw.cal-early { background: var(--warn-bg); border-color: var(--warn-line); }
.cal-sw.cal-weekend { background: var(--bg); }
.cal-sw.cal-today-sw { background: var(--accent); border-color: var(--accent); border-radius: 999px; }
.cal-list td, .cal-list th { white-space: normal; }
.cal-list tr.cal-row-closed td:last-child { color: #b42318; font-weight: 600; }
.cal-list tr.cal-row-early td:last-child { color: #8a5a00; font-weight: 600; }
.cal-note { display: block; font-size: .78rem; }
.cal-aside { margin: 10px 0 0; }
.cal-foot { margin: 10px 0 0; }
@media (prefers-color-scheme: dark) {
  .cal-now-closed strong, .cal-now-weekend strong, .cal-closed .cal-label, .cal-grid td.cal-closed::after, .cal-list tr.cal-row-closed td:last-child { color: #ff9b94; }
  .cal-now-early strong, .cal-early .cal-label, .cal-grid td.cal-early::after, .cal-list tr.cal-row-early td:last-child { color: #fbbf24; }
}
@media (max-width: 640px) {
  .cal-bar { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px 6px; align-items: center; }
  .cal-title { min-width: 0; margin: 0; font-size: 1.15rem; }
  .cal-tools { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; }
  .cal-views { margin-left: 0; }
  .cal-years a { padding: 3px 9px; font-size: .8rem; }
  .cal-grid td { height: 56px; padding: 4px; }
  .cal-grid { border-spacing: 2px; }
  .cal-grid .cal-label { display: none; }
  .cal-grid td.cal-closed::after, .cal-grid td.cal-early::after { top: auto; bottom: 3px; left: 0; right: 0; text-align: center; font-size: .72rem; }          /* (a phone's box is 37 px wide: the mark goes under the number, not over it) */
  .cal-outlook dl { grid-template-columns: 1fr; gap: 0; }
  .cal-outlook dd { margin-bottom: 6px; }
}

/* the three money rules under the money field of each SignalEdgeFlare card (Settings, every user's own; cloud.web.budget_form): three labelled boxes in a row, one under the other on a phone */
.budget-block { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.budget-block h3 { font-size: 1rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.budget-grid { display: grid; grid-template-columns: minmax(15rem, 1.4fr) repeat(3, minmax(8rem, 1fr)); gap: 10px 20px; margin: 8px 0 6px; align-items: start; }          /* (the fourth number, new positions per day: owner, 24 Nov 2026) */
.budget-field label { display: block; margin: 0 0 4px; }
.budget-field .field-error { margin: 4px 0 0; }
.budget-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.budget-row input { max-width: 8rem; }
.budget-block input[type="text"] { max-width: 8rem; }
.budget-row select { flex: 1 1 11rem; min-width: 0; }
.budget-preview { font-weight: 600; }
@media (max-width: 640px) { .budget-grid { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 1100px) { .budget-field label { min-height: 3em; } }          /* (a label that wraps to two lines - number 4 on a laptop - must not push its box lower than the others) */

/* The AI spend line under the header (the Super Admin's alone; owner, 2026-11-11): what the AI modules have cost so far, an estimate counted at 10:00, 14:00 and 18:00 ET on weekdays. cloud.web.ai_spend_box */
.ai-spend-wrap { padding-top: 6px; }
.ai-spend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.ai-spend:hover { border-color: var(--accent); }
.ai-spend-name { font-weight: 700; }
.ai-spend-item strong { font-variant-numeric: tabular-nums; }
.ai-spend-vendor, .ai-spend-asof, .ai-spend-note { color: var(--muted); }
.ai-spend-est { margin-left: auto; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 560px) { .ai-spend { font-size: .84rem; gap: 2px 12px; } .ai-spend-est { margin-left: 0; } }

/* The Near misses page (Admin > Operations; docs/near_miss_watch.md): the difference from the list names is green when the near-miss name did better, red when worse; the written rule's sentence carries the reading's tone on its left edge. */
.nm-table th, .nm-table td { vertical-align: top; }
.nm-table td.small { white-space: normal; min-width: 12em; max-width: 24em; }
.nm-diff.up { color: var(--good); font-weight: 600; }
.nm-diff.down { color: #b42318; font-weight: 600; }
.nm-reading { border-left: 4px solid var(--line); }
.nm-recommend_off { border-left-color: #b42318; }
.nm-second_look { border-left-color: var(--good); }
@media (prefers-color-scheme: dark) { .nm-diff.down { color: #ff9b94; } .nm-recommend_off { border-left-color: #ff9b94; } }

/* The Execution quality page (Admin > Operations; docs/execution_quality_page.md): how each account's stock buys filled against the quote they met. A buy that paid more than 0.05% over the ask is red; a fill with no quote to compare with is grey. */
.eq-filters { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 8px 0 16px; }
.eq-table th, .eq-table td { vertical-align: top; }
.eq-table td.small, .eq-table th.small { white-space: normal; }
.eq-table .eq-worse { color: var(--loss); font-weight: 600; }
.eq-table tr.eq-noquote td { color: var(--muted); }
.eq-health li { margin: 4px 0; }

/* ---- the big result number with its chart (owner, 2026-11-12, "Make the results the star, and add charts"): the first card of every results block (Cascade, the four Flare strategies, Harvest) is the period's profit or loss as a big number with the running total of the closed trades beside it ---- */
.cb-tiles.has-hero { grid-template-columns: repeat(4, minmax(0, 1fr)); }                       /* (the hero on its own row, the four small tiles under it fill the row) */
.cb-tiles .card.result-hero { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); align-items: center; gap: 8px 28px; padding: 20px 24px; }
.result-hero .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.result-hero .value { font-size: 2.8rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 2px 0; }
.result-hero .small { font-size: 1rem; margin-top: 2px; }
.rh-chart { position: relative; height: 170px; min-width: 0; }
.rh-chart .cb-chart { height: 100%; }
.card.stat .rh-empty { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 12px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.card.stat .rh-empty[hidden] { display: none; }
@media (max-width: 900px) { .cb-tiles.has-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cb-tiles .card.result-hero { grid-template-columns: 1fr; padding: 16px; } .result-hero .value { font-size: 2.4rem; } .rh-chart { height: 150px; } }

/* ---- friendlier empty states (owner, 2026-11-12, "Friendlier empty states ... a short card with the one next step"): a sentence that says there is nothing here yet sits in a soft dashed card (the scripts' own sentences, whose ids end in Empty, and the pages' own, which carry the class), and a line that says something is wrong has its one next step as a button ---- */
.empty-state, p.muted[id$="Empty"] { margin: 10px 0 0; padding: 18px 16px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.notice .empty-action { margin-left: 12px; padding: 3px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.notice .empty-action:hover { background: color-mix(in srgb, currentColor 14%, transparent); }

/* ---- The framed picture beside the clock (owner, 2026-11-15: "I need it some where here as most time I spend in this customer area. The photo should fix like the clock and show when I click any area ... please adjust the clock and this photo some where in proper area as marked ... it should show only super admin"; then, seeing it: "make the clock size down to match with the god/goddess picture size. Also extend the picture size to right to match with the clock length. Basically the clock and picture length and width should same to make uniform for better looking"; docs/header_frame.md) ----
   Only the Super Admin's header has it: templates/_hero.html puts .has-frame on the header and the link (.frame-thumb) after the clock; every other header is byte for byte what it was. The clock card and the picture are the SAME SIZE (the clock's width; the height is 0.467 of it, so the clock card is extended downwards and the picture - a wide crop of the top of the artwork - is extended to the right) and the PAIR is
   centred on the panel's middle line, where the clock alone was (violet-clock.css). A click opens the whole picture large (static/frame-view.js); in a phone-width window the picture is left out and the clock is as it always was. */
.banner.has-frame { --frame-gap: 14px; --frame-h: calc(var(--clock-w) * .467); --frame-w: var(--clock-w); --pair-w: calc(var(--clock-w) + var(--frame-gap) + var(--frame-w)); }
.frame-thumb { display: block; flex: 0 0 auto; width: var(--frame-w); height: var(--frame-h); box-sizing: border-box; border-radius: 10px; overflow: hidden; position: relative; z-index: 2; line-height: 0; background: #2a1a10; border: 1px solid rgba(250, 204, 21, .55); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .7), 0 0 14px -4px rgba(250, 204, 21, .35); transition: transform .15s ease, box-shadow .15s ease; }
.frame-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.frame-thumb:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .75), 0 0 18px -2px rgba(250, 204, 21, .55); }
.frame-thumb:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .frame-thumb { transition: none; } .frame-thumb:hover { transform: none; } }
@media (min-width: 701px) {
  .banner.has-frame .vclock { height: var(--frame-h); }
  .banner.has-frame .vclock .vc-glass { height: 100%; display: flex; flex-direction: column; justify-content: space-evenly; }      /* (the same text, spread over the taller card) */
}
@media (min-width: 1160px) {                                                                                                  /* (room for the brand, the clock and the picture side by side; below it the pair goes under the brand, see the next block) */
  .banner.has-nav.has-frame > .banner-top { display: grid; align-items: center; column-gap: 0; min-width: calc(50cqw + var(--pair-w) / 2 + 24px); grid-template-columns: minmax(max-content, calc(50cqw - var(--pair-w) / 2)) var(--clock-w) calc(var(--frame-gap) + var(--frame-w)) minmax(0, 1fr); }      /* (the same three columns with or without the row of product buttons: brand, clock, picture - the clock keeps the middle line's company) */
  .banner.has-nav.has-frame > .banner-top > .banner-brand { grid-column: 1; justify-self: start; margin-right: 20px; }
  .banner.has-nav.has-frame > .banner-top > .vclock { grid-column: 2; margin: 0; }
  .banner.has-nav.has-frame > .banner-top > .frame-thumb { grid-column: 3; margin-left: var(--frame-gap); align-self: center; }
  .banner:not(.has-pills).has-frame > .banner-top { width: auto; }
  .banner:not(.has-pills).has-frame > .banner-art { width: calc(50% - var(--pair-w) / 2 - 24px); }
}
@media (min-width: 701px) and (max-width: 1159px) {                                                                           /* (a medium window: the brand keeps its line and the PAIR - the clock and the picture, always together - sits under it, in the middle) */
  .banner.has-nav.has-frame > .banner-top { display: grid; grid-template-columns: var(--clock-w) var(--frame-w); justify-content: center; align-items: center; gap: 10px var(--frame-gap); min-width: 0; width: auto; }
  .banner.has-pills.has-frame > .banner-top { grid-column: 1 / -1; }                                                              /* (the whole width of the header, so the pair is centred in it and not only under the brand) */
  .banner.has-nav.has-frame > .banner-top > .banner-brand { grid-column: 1 / -1; justify-self: start; margin-right: 0; }
  .banner.has-nav.has-frame > .banner-top > .vclock { grid-column: 1; margin: 0; }
  .banner.has-nav.has-frame > .banner-top > .frame-thumb { grid-column: 2; margin: 0; }
}
@media (max-width: 700px) { .frame-thumb { display: none; } }

/* the large picture over the page (static/frame-view.js builds it on the first click) */
html.frame-open { overflow: hidden; }
.frame-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 6, 26, .86); cursor: zoom-out; }
.frame-lightbox[hidden] { display: none; }
.frame-lightbox img { display: block; max-width: min(96vw, 1500px); max-height: calc(100vh - 40px); width: auto; height: auto; border-radius: 12px; background: #2a1a10; box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(250, 204, 21, .4); }
.frame-lightbox .frame-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 600 22px/1 system-ui, sans-serif; cursor: pointer; }
.frame-lightbox .frame-close:hover { background: rgba(255, 255, 255, .3); }
.frame-lightbox .frame-close:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }

/* ---- the moving slogan under the header (owner, 2026-11-15: "Can u put that tag line in the highlighted area in moving right to left with bold some fancy letter and color?"; "The tag line all users to see it"; docs/header_ticker.md) ----
   A slim band in the header's own dark violet (so it reads the same in the light and the dark theme) under the header panel. The three sentences of brand.SLOGAN run from the right to the left in CSS alone: the track holds FOUR copies of them and moves by exactly one copy - a quarter of itself - and starts again, so nothing jumps and the band is never empty (one copy is wider than a quarter of the widest page: tests/test_header_ticker.py does the sum). The letters are bold italic capitals in a stylish humanist font of the viewer's own system (Optima on a Mac, Candara or Trebuchet on Windows; no font is loaded: the content-security policy allows none), every sentence in a colour of its own; the sparks between them are decoration (hidden from screen readers, like the three later copies). It stops while the pointer is over it, and a viewer who asked their device for less motion gets ONE copy, still and centred. */
.tag-ticker { display: block; margin: -8px 0 6px; border-radius: 999px; overflow: hidden; background: linear-gradient(100deg, #17193f 0%, #2a1757 52%, #4a1b52 100%); border: 1px solid rgba(196, 181, 253, .34); box-shadow: 0 0 22px -8px rgba(168, 85, 247, .65), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tag-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.tag-track { display: flex; width: max-content; padding: 2px 0; animation: tag-run 22s linear infinite; }
.tag-ticker:hover .tag-track { animation-play-state: paused; }
.tag-copy { display: flex; flex: none; align-items: center; white-space: nowrap; filter: drop-shadow(0 0 4px rgba(196, 181, 253, .5)); }
.tag-s { font-family: "Optima", "Candara", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; font-size: 1.05rem; font-weight: 800; font-style: italic; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; color: #e9d5ff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) { .tag-s { color: transparent; -webkit-background-clip: text; background-clip: text; } }
.tag-s1 { background-image: linear-gradient(90deg, #67e8f9, #a5b4fc 60%, #e9d5ff); }
.tag-s2 { background-image: linear-gradient(90deg, #f9a8d4, #fda4af 55%, #fdba74); }
.tag-s3 { background-image: linear-gradient(90deg, #fde68a, #fbbf24 55%, #fcd34d); }
.tag-spark { flex: none; margin: 0 1.3em; font-size: .85rem; color: #fcd34d; text-shadow: 0 0 8px rgba(252, 211, 77, .75); }
@keyframes tag-run { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (max-width: 700px) { .tag-ticker { margin-bottom: 8px; } .tag-s { font-size: .82rem; letter-spacing: .14em; } .tag-track { animation-duration: 17s; } }              /* (a copy is about 710 px wide on a phone against about 930 px on a laptop: the same speed, about 42 px a second) */
/* The age of a console price (owner, 2026-11-19: the Harvest console showed MTSI at yesterday's price for six minutes while the market traded 4% higher; cloud.price_age): the small line under a price - grey with the time of the trade, amber when the price is not up to date - and the banner above the table.
   A price that is not up to date is dimmed with the value and the P/L of its row, and the Sell and Refill popups quote nothing from it. */
.price-age { font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.25; white-space: nowrap; }
.price-age.old { color: var(--c-amber); font-weight: 700; }
td.price-old { opacity: .62; font-style: italic; }
.price-banner { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--text); font-size: .88rem; line-height: 1.35; }

@media (max-width: 640px) {                                                                                                                       /* (the price-age line sits on its own line under the price in a phone card, not beside it: it would run off the card) */
  table.cardify tbody td:has(> .price-age) { flex-wrap: wrap; }
  table.cardify tbody td > .price-age { flex: 0 0 100%; text-align: right; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .tag-view { -webkit-mask-image: none; mask-image: none; }
  .tag-track { width: auto; animation: none; padding: 4px 14px; justify-content: center; }
  .tag-copy { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; white-space: normal; text-align: center; }
  .tag-copy + .tag-copy, .tag-spark:last-child { display: none; }
}

/* The Long Call's own two types (owner, 24 Nov 2026). */
.type-tag.type-call-washout { background: #0f766e; color: #fff; }
.type-tag.type-call-meltup { background: #9a3412; color: #fff; }
