/* Anubis — tokens of appendix C (SPEC), light and dark. ContrastTests reads this block: keep one token per line. */ :root { --page: #f1f3f0; --surface: #fbfcfa; --surface-2: #e9ede8; --track: #dfe4de; --rule: #d9ded8; --rule-inner: #e3e7e2; --control: #8a948e; --text: #141a17; --text-2: #46504a; --text-3: #5f6963; --link: #1c5cab; --info-bg: #e3eefb; --gain: #0a6b55; --gain-bg: #dff2ea; --loss: #b42f1a; --loss-bg: #fbe5df; --attention: #7a5000; --attention-bg: #fbefcf; --s-crypto-trend: #2a78d6; --s-equity-momentum: #eb6834; --s-equity-meanrev: #4a3aa7; --bench: #8a948e; --cash: #c5cbc4; } :root[data-theme="dark"] { --page: #101412; --surface: #181d1a; --surface-2: #222924; --track: #2c342f; --rule: #2c342f; --rule-inner: #262d28; --control: #6c766f; --text: #f2f5f1; --text-2: #c3cbc4; --text-3: #9aa39c; --link: #86b6ef; --info-bg: #17304f; --gain: #4cc9a4; --gain-bg: #12372d; --loss: #ff8d78; --loss-bg: #45201a; --attention: #f2c14e; --attention-bg: #3d2f0c; --s-crypto-trend: #17a2b8; --s-equity-momentum: #d95926; --s-equity-meanrev: #9085e9; --bench: #6c766f; --cash: #3a433d; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --page: #101412; --surface: #181d1a; --surface-2: #222924; --track: #2c342f; --rule: #2c342f; --rule-inner: #262d28; --control: #6c766f; --text: #f2f5f1; --text-2: #c3cbc4; --text-3: #9aa39c; --link: #86b6ef; --info-bg: #17304f; --gain: #4cc9a4; --gain-bg: #12372d; --loss: #ff8d78; --loss-bg: #45201a; --attention: #f2c14e; --attention-bg: #3d2f0c; --s-crypto-trend: #17a2b8; --s-equity-momentum: #d95926; --s-equity-meanrev: #9085e9; --bench: #6c766f; --cash: #3a433d; } } /* Instrument Sans served by the app itself, never from the internet (ADR 0004, SIL OFL: assets/InstrumentSans-OFL.txt). One variable file covers weights 400 to 700; italics are drawn by the browser from it. */ @font-face { font-family: "Instrument Sans"; src: url("/assets/InstrumentSans.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; } :root { --font: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color-scheme: light dark; } *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 20px; font-variant-numeric: proportional-nums; } a { color: var(--link); } h1, h2, h3 { margin: 0; font-weight: 650; } h1 { font-size: 22px; line-height: 28px; } h2 { font-size: 17px; line-height: 24px; } h3 { font-size: 14px; line-height: 20px; } p { margin: 0; } code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; } :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .icon { flex: none; } .logo-dark { display: none; } :root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: inline; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: inline; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } } /* ---- Shell ---- */ .shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; } .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--rule); padding: 20px 12px 24px; } .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; margin-bottom: 20px; min-height: 40px; } .brand-link { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 650; } .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; } .icon-button:hover { background: var(--surface-2); color: var(--text); } .when-closed { display: none; } .nav-group { list-style: none; margin: 0; padding: 0; } .nav-group + .nav-group { margin-top: 22px; } .nav-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; margin-bottom: 2px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; } .nav-item:hover { background: var(--surface-2); color: var(--text); } .nav-item.active { background: var(--surface-2); color: var(--text); font-weight: 600; } :root[data-nav="collapsed"] .shell { grid-template-columns: 72px minmax(0, 1fr); } :root[data-nav="collapsed"] .brand { flex-direction: column; gap: 8px; padding: 0; } :root[data-nav="collapsed"] .brand-name, :root[data-nav="collapsed"] .nav-label { display: none; } :root[data-nav="collapsed"] .nav-item { justify-content: center; padding: 10px; } :root[data-nav="collapsed"] .when-open { display: none; } :root[data-nav="collapsed"] .when-closed { display: inline; } .main { min-width: 0; display: flex; flex-direction: column; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap; padding: 16px 32px; background: var(--surface); border-bottom: 1px solid var(--rule); } .topbar-title { min-width: 0; flex: 1 1 auto; } .status-line { color: var(--text-3); font-size: 13px; line-height: 18px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; } @media (max-width: 1240px) { .topbar { flex-wrap: wrap; } .topbar-actions { flex-wrap: wrap; } } .topbar-actions form { margin: 0; } /* As in the mockup: one point smaller up here, so the date line keeps its full length at 1440 px. */ .topbar-actions .pill, .topbar-actions .btn, .topbar-actions .currency select { font-size: 13px; } .phone-brand, .phone-bot, .mode-band, .bottombar { display: none; } .pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 550; white-space: nowrap; } .pill-bot { border: 1px solid var(--rule); background: var(--surface); color: var(--text); margin-right: 0; } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gain); flex: none; } [data-state="paused"] .dot { background: var(--attention); } [data-state="stopped"] .dot { background: var(--loss); } .pill-mode { background: var(--info-bg); color: var(--link); margin-right: 12px; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; } .btn:hover { background: var(--surface-2); } .btn:disabled { opacity: .55; cursor: not-allowed; } .btn-small { height: 32px; padding: 0 12px; } .btn-danger { border-color: var(--loss); color: var(--loss); } .btn-danger:hover { background: var(--loss-bg); } .btn-primary { background: var(--text); border-color: var(--text); color: var(--surface); } .btn-primary:hover { background: var(--text-2); } .currency { position: relative; } .currency select, select, input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) { height: 40px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; padding: 0 12px; } textarea { border: 1px solid var(--control); border-radius: 8px; background: var(--surface); color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; padding: 8px 12px; resize: vertical; } .currency select { appearance: none; padding: 0 40px 0 16px; font-weight: 550; cursor: pointer; } .select-chevron { position: absolute; right: 14px; top: 12px; pointer-events: none; color: var(--text-2); } .stale-notice { display: flex; align-items: center; gap: 10px; margin: 12px 32px 0; padding: 10px 12px; border-radius: 10px; background: var(--attention-bg); color: var(--attention); font-size: 13.5px; } .stale-notice[hidden] { display: none; } .page { padding: 28px 32px 36px; display: flex; flex-direction: column; gap: 28px; flex: 1; } .page-footer { color: var(--text-3); font-size: 13px; line-height: 18px; } /* ---- Components ---- */ .panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; } .panel > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .panel > h3, .panel h3 { margin: 20px 0 8px; } .note { color: var(--text-3); font-size: 13px; line-height: 18px; } .hint { color: var(--text-3); font-size: 13px; line-height: 18px; } .empty { display: flex; flex-direction: column; gap: 8px; color: var(--text-2); max-width: 70ch; } .empty-title { color: var(--text); font-weight: 600; font-size: 15px; } .notice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 20px; } .notice .icon { margin-top: 2px; } .notice-loss { background: var(--loss-bg); color: var(--loss); } .notice-gain { background: var(--gain-bg); color: var(--gain); } .notice-attention { background: var(--attention-bg); color: var(--attention); } .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-size: 18px; line-height: 24px; font-weight: 600; } .badge-gain { background: var(--gain-bg); color: var(--gain); } .badge-loss { background: var(--loss-bg); color: var(--loss); } .gain { color: var(--gain); } .loss { color: var(--loss); } .arrow { flex: none; } .table-wrap { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 20px; font-variant-numeric: tabular-nums; } .table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text-3); padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule-inner); } .table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-inner); vertical-align: top; } .table .num { text-align: right; } .nowrap { white-space: nowrap; } .facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; } .facts dt { color: var(--text-3); } .facts dd { margin: 0; overflow-wrap: anywhere; } .facts + .hint, .facts + h2, .facts + h3 { margin-top: 16px; } .form { display: flex; flex-direction: column; gap: 8px; max-width: 420px; } .form label { font-weight: 550; margin-top: 6px; } .form .btn { align-self: flex-start; margin-top: 10px; } .form-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; } .form-inline label { min-width: 80px; font-weight: 550; } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .row > div { display: flex; flex-direction: column; gap: 8px; } .choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; } .choice input { margin-top: 4px; } fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; margin-bottom: 8px; padding: 0; } .step { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); align-items: center; justify-content: center; font-size: 14px; } .postgres-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; } .postgres-fields[hidden] { display: none; } .test-result:empty { display: none; } .steps { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; } .secret { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; } .tabs { display: flex; gap: 16px; flex-wrap: wrap; } .tabs a { color: var(--text-2); text-decoration: none; font-weight: 550; } .tabs a:hover { color: var(--text); text-decoration: underline; } .columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; } .more-list { list-style: none; margin: 0; padding: 0; } .more-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule-inner); } /* ---- Panoramica ---- */ .head-block { display: grid; grid-template-columns: 1.35fr 1fr; padding: 0; } .half { padding: 24px 28px; min-width: 0; } .half + .half { border-left: 1px solid var(--rule); } .half-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 44px; } .half-head h2 { display: flex; align-items: center; gap: 12px; } .segmented { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--surface-2); gap: 2px; } .segmented a { padding: 6px 14px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; } .segmented a.on { background: var(--surface); color: var(--text); font-weight: 550; } .lead { color: var(--text-2); font-size: 17px; line-height: 24px; margin-top: 20px; } .big-result { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; } .big-number { font-size: 60px; line-height: 60px; font-weight: 650; letter-spacing: -0.025em; } .half-past .note { margin-top: 10px; } .cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); } .cell { display: flex; flex-direction: column; gap: 2px; } .cell-label { color: var(--text-3); font-size: 13px; } .cell-value { font-size: 18px; line-height: 24px; font-weight: 650; letter-spacing: -0.015em; } .cell-change { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; } .statement { font-size: 20px; line-height: 28px; font-weight: 650; margin: 20px 0 8px; } .list-title { color: var(--text-3); font-weight: 550; margin-top: 20px !important; padding-bottom: 8px; border-bottom: 1px solid var(--rule); } .moves { list-style: none; margin: 0; padding: 0; } .moves li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-inner); } .move-time { font-weight: 650; font-variant-numeric: tabular-nums; } .moves-past .move-time { font-weight: 500; color: var(--text-3); } .more { display: inline-block; margin-top: 12px; } .chart { margin: 20px 0 0; } .chart-box { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 84px; height: 284px; } .chart-axis { position: relative; } .chart-axis span { position: absolute; left: 0; transform: translateY(-50%); color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; } .chart-plot { position: relative; } .chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .chart .grid { stroke: var(--rule-inner); stroke-width: 1; } .chart .area { fill: var(--text); opacity: .05; } .chart .equity { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; } .chart .bench { fill: none; stroke: var(--bench); stroke-width: 2; stroke-linejoin: round; } .end-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); } .end-dot.bench-dot { background: var(--bench); } .end-label { position: absolute; left: 100%; margin-left: 14px; transform: translateY(-50%); font-weight: 650; font-size: 13px; white-space: nowrap; } .end-label.bench-label { font-weight: 400; color: var(--text-3); } .legend { display: flex; gap: 20px; margin-top: 12px; color: var(--text-2); font-size: 13px; } .key { display: inline-flex; align-items: center; gap: 8px; } .key::before { content: ""; width: 18px; height: 2px; background: var(--text); } .key-bench::before { background: var(--bench); } .chart-table { margin-top: 8px; font-size: 13px; } .chart-table summary { color: var(--link); cursor: pointer; } .chart-table .table-wrap { max-height: 280px; overflow: auto; margin-top: 8px; } /* ---- Service pages ---- */ .service { min-height: 100vh; display: flex; justify-content: center; padding: 48px 16px; } .service-box { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; } .service-brand { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 650; margin-bottom: 8px; } .service-section { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; } .service-section h2 { display: flex; align-items: center; gap: 10px; } .service-foot { color: var(--text-3); font-size: 13px; margin-top: 8px; } .problems td:first-child { white-space: nowrap; } /* ---- Phone (SPEC 13.4, appendix C): 390 px and below the tablet width ---- */ @media (max-width: 760px) { .shell { display: block; padding-bottom: 76px; } .sidebar { display: none; } .topbar { flex-wrap: nowrap; padding: 12px 16px; } .topbar h1, .status-line, .pill, .currency, .topbar-actions form:not(.stop-form) { display: none; } .topbar-title { display: flex; align-items: center; gap: 14px; } .phone-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 650; } .phone-bot { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; } .btn-danger { height: 44px; } .mode-band { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--info-bg); color: var(--link); font-weight: 550; font-size: 14px; } .stale-notice { margin: 12px 16px 0; } .page { padding: 16px; gap: 14px; } .panel { padding: 18px; } .head-block { grid-template-columns: 1fr; gap: 14px; padding: 0; background: none; border: 0; } .half { padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; } .half + .half { border-left: 1px solid var(--rule); } .segmented, .cell-change, .cell-extra, .long, .chart-axis { display: none; } .lead { margin-top: 12px; } .big-result { gap: 12px; } .big-number { font-size: 46px; line-height: 48px; } .badge { font-size: 15px; padding: 4px 10px; } .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chart-box { grid-template-columns: minmax(0, 1fr) 80px; height: 200px; } .legend { flex-direction: column; gap: 4px; } .statement { font-size: 18px; line-height: 26px; margin-top: 12px; } .columns { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule); z-index: 10; } .bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 11.5px; line-height: 14px; } .bottom-item.active { background: var(--surface-2); color: var(--text); font-weight: 650; } .nav-item, .btn, .more-list a { min-height: 44px; } }