/* MarketMover, the web app: the app's five looks as token sets, its panels, chips and price cells.
   A sidebar on a wide screen (the Mac), a tab bar on a phone (iOS). */
:root, [data-theme="day"] { color-scheme: light; --bg:#FFFFFF; --panel:#F4F7FC; --panel2:#EAF0F9; --panel3:#DFE7F4; --line:#D3DCEB; --ink:#0B1633; --ink2:#3F4B6E; --muted:#66718F; --accent:#1E5EFF; --on-accent:#FFFFFF; --amber:#A35400; --up:#0E8F63; --down:#D32F2F; --lay:#A8336F; --lay-panel:#F7E6EF; --model:#5643CF; --model-panel:#EBE7FB; --code-r:#1E5EFF; --code-g:#0E8F63; --code-h:#C9521A; }
[data-theme="night"] { color-scheme: dark; --bg:#06080F; --panel:#0C1120; --panel2:#121A2E; --panel3:#18223A; --line:#212D48; --ink:#E9EEFF; --ink2:#A7B1CC; --muted:#7581A3; --accent:#2962FF; --on-accent:#FFFFFF; --amber:#FFB000; --up:#1DE9A4; --down:#FF5C5E; --lay:#F0A8C8; --lay-panel:#2A2440; --model:#9C8CFF; --model-panel:#1C1930; --code-r:#4A9BFF; --code-g:#1FB98A; --code-h:#FF7A3C; }
[data-theme="navy"] { color-scheme: dark; --bg:#071233; --panel:#0B1B4B; --panel2:#10245E; --panel3:#152C70; --line:#22397E; --ink:#FFFFFF; --ink2:#B4C0E0; --muted:#8492BC; --accent:#1DE9A4; --on-accent:#071233; --amber:#FFC24D; --up:#3DE38A; --down:#FF6B6B; --lay:#F3B3D0; --lay-panel:#2C2A5F; --model:#B6A9FF; --model-panel:#1F2264; --code-r:#5CA6FF; --code-g:#2BD39C; --code-h:#FF8F55; }
[data-theme="ice"] { color-scheme: light; --bg:#EAF1FF; --panel:#FFFFFF; --panel2:#DCE6FA; --panel3:#CFDCF5; --line:#BFCFEC; --ink:#0B1633; --ink2:#3F4B6E; --muted:#62708F; --accent:#1E5EFF; --on-accent:#FFFFFF; --amber:#A35400; --up:#0E8F63; --down:#D32F2F; --lay:#A8336F; --lay-panel:#F5E2EC; --model:#5643CF; --model-panel:#E4E0F9; --code-r:#1E5EFF; --code-g:#0E8F63; --code-h:#C9521A; }
[data-theme="graphite"] { color-scheme: dark; --bg:#08080A; --panel:#0E0E12; --panel2:#14141A; --panel3:#1B1B22; --line:#23232C; --ink:#E9E9EE; --ink2:#A6A6B0; --muted:#7A7A88; --accent:#4A9BFF; --on-accent:#06080F; --amber:#FFB000; --up:#21D16B; --down:#FF4D4F; --lay:#F0A8C8; --lay-panel:#2A2440; --model:#9C8CFF; --model-panel:#1C1930; --code-r:#4A9BFF; --code-g:#1FB98A; --code-h:#FF7A3C; }
:root { --side: 216px; --tab: 64px; --r: 12px; --num: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; } button { font: inherit; color: inherit; } input, textarea, select { font: inherit; color: var(--ink); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 600; }
.up { color: var(--up); } .down { color: var(--down); } .amber { color: var(--amber); } .muted { color: var(--muted); } .ink2 { color: var(--ink2); } .model-c { color: var(--model); }
.frame { display: flex; min-height: 100vh; min-height: 100dvh; }
/* the sidebar (wide) */
.side { display: none; width: var(--side); flex: none; background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 0; height: 100vh; height: 100dvh; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 16px; padding: 6px 8px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.sidenav { display: flex; flex-direction: column; gap: 1px; margin-top: 12px; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 500; }
.sidenav a svg { width: 18px; height: 18px; color: var(--ink2); } .sidenav a.on { background: var(--panel3); font-weight: 600; } .sidenav a.on svg { color: var(--accent); }
.sidenav a .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.side-foot { margin-top: auto; padding: 8px; }
.plan-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--model-panel); color: var(--model); white-space: nowrap; }
/* the main column and the toolbar */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); min-height: 50px; }
.top .title { flex: 1; text-align: center; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top.root { border-bottom-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.form-w { max-width: 780px; }
.top .nav-btn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--panel2); display: grid; place-items: center; cursor: pointer; color: var(--ink); } .top .nav-btn:disabled { opacity: .35; }
.top .nav-btn svg { width: 18px; height: 18px; } .top .nav-btn.accent { color: var(--accent); }
.top .group { display: flex; gap: 4px; background: var(--panel); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.view { max-width: 1180px; width: 100%; margin: 0 auto; padding: 12px 14px calc(var(--tab) + 28px); flex: 1; }
.foot { max-width: 1180px; width: 100%; margin: 0 auto; padding: 8px 14px calc(var(--tab) + 20px); color: var(--muted); font-size: 12px; }
/* the tab bar (phone) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; justify-content: space-around; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 5px 4px calc(4px + env(safe-area-inset-bottom)); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 10px; font-weight: 600; flex: 1; padding: 4px 0; }
.tabbar a svg { width: 24px; height: 24px; } .tabbar a.on { color: var(--accent); }
.tabbar a .count { position: absolute; top: 0; right: calc(50% - 22px); font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 999px; background: var(--down); color: #fff; padding: 0 4px; }
@media (min-width: 900px) { .top.root { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); } .view > h1:first-child, .view > .form-w > h1:first-child, .root-title { display: none; } .side { display: flex; } .tabbar { display: none; } .view, .foot { padding-bottom: 24px; max-width: none; } .view { padding: 16px 24px 24px; } .top { padding: 8px 20px; } .top .title { text-align: left; font-size: 17px; } }
/* type */
h1 { font-size: 26px; letter-spacing: -0.02em; margin: 4px 0 10px; font-weight: 700; } h2 { font-size: 16px; margin: 14px 0 8px; font-weight: 600; } h3 { font-size: 14px; margin: 10px 0 6px; font-weight: 600; }
.cap { font-size: 12px; color: var(--muted); } .cap2 { font-size: 11px; color: var(--muted); } .kicker { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.note { color: var(--ink2); font-size: 13px; margin: 8px 0; } .loading, .empty { color: var(--muted); padding: 36px 0; text-align: center; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin: 8px 0 4px; } .empty svg { width: 40px; height: 40px; color: var(--muted); }
.err { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--down) 12%, var(--panel)); color: var(--down); margin: 8px 0; font-size: 13px; }
.warn { color: var(--amber); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; }
/* panels, chips, buttons */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.panel2 { background: var(--panel2); border-radius: 10px; padding: 10px; } .panel.lvl2 { background: var(--panel2); } .panel.lvl3 { background: var(--panel3); }
.strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); } .strip::-webkit-scrollbar { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; } .strip.chips { flex-wrap: nowrap; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--panel2); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: var(--accent); color: var(--on-accent); } .chip.small { padding: 4px 9px; font-size: 12px; } .chip.lvl3 { background: var(--panel3); color: var(--ink2); } .chip.lvl3.on { background: var(--accent); color: var(--on-accent); }
.chip svg { width: 13px; height: 13px; }
.menu { position: relative; display: inline-block; } .menu-list { position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-height: 60vh; overflow-y: auto; }
.menu-list.right { left: auto; right: 0; } .menu-list button { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; } .menu-list button:hover { background: var(--panel2); } .menu-list button.on::before { content: "✓"; font-size: 12px; } .menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; } .menu-list button.danger { color: var(--down); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; border: 0; cursor: pointer; font-size: 14px; }
.btn.ghost { background: var(--panel2); color: var(--ink); } .btn.small { padding: 5px 11px; font-size: 13px; } .btn[disabled] { opacity: .45; cursor: default; } .btn.wide { width: 100%; padding: 13px; font-size: 16px; } .btn.danger { background: transparent; color: var(--down); } .btn.link { background: none; color: var(--accent); padding: 4px 6px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { width: 30px; height: 30px; border-radius: 999px; border: 0; background: var(--panel); color: var(--ink2); display: inline-grid; place-items: center; cursor: pointer; flex: none; } .icon-btn svg { width: 16px; height: 16px; } .icon-btn.on { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.fact { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); font-size: 13px; color: var(--ink2); } .fact img { width: 14px; height: 14px; border-radius: 4px; } .fact.amber { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.code-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; } .code-chip svg { width: 14px; height: 14px; }
.code-chip.R { color: var(--code-r); background: color-mix(in srgb, var(--code-r) 15%, transparent); } .code-chip.G { color: var(--code-g); background: color-mix(in srgb, var(--code-g) 15%, transparent); } .code-chip.H { color: var(--code-h); background: color-mix(in srgb, var(--code-h) 15%, transparent); }
.code-chip.glyph { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 999px; } .code-chip.glyph svg { width: 15px; height: 15px; }
.live { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--down); color: #fff; font-size: 11px; font-weight: 700; }
.badges { display: inline-flex; gap: 3px; align-items: center; } .badges img { width: 18px; height: 18px; border-radius: 5px; display: block; } .badges .more { font-size: 11px; font-weight: 700; color: var(--ink2); background: var(--panel3); padding: 2px 5px; border-radius: 5px; } .badges.big img { width: 22px; height: 22px; border-radius: 6px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--panel3); border: 0; cursor: pointer; flex: none; padding: 0; } .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); } .switch[aria-checked="true"] { background: var(--up); } .switch[aria-checked="true"]::after { left: 23px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); } .row:first-child { border-radius: var(--r) var(--r) 0 0; } .row:last-child { border-bottom: 0; border-radius: 0 0 var(--r) var(--r); } .row:only-child { border-radius: var(--r); }
.row b { display: block; font-weight: 600; } .row img { width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; } .row small { color: var(--muted); display: block; font-size: 12px; } .row .val { color: var(--muted); font-size: 14px; white-space: nowrap; } .row a.val, .row .val.accent { color: var(--accent); }
.group { margin: 16px 0; } .group > .kicker { padding: 0 12px 6px; } .group > .cap { padding: 6px 12px 0; } .group .list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.field { margin: 12px 0; } .field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; } .field small { color: var(--muted); display: block; margin-top: 4px; font-size: 12px; }
textarea, input[type=text], input[type=number], input[type=search], select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; } textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
input.inline { width: 90px; text-align: right; padding: 5px 8px; }
/* the home */
.jump { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; scroll-snap-type: x mandatory; } .jump::-webkit-scrollbar { display: none; }
.jump a { flex: 0 0 170px; scroll-snap-align: start; padding: 10px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.jump .hd { display: flex; align-items: center; gap: 6px; } .jump .hd .num { font-size: 12px; } .jump .hd .cd { margin-left: auto; } .jump .venue { font-weight: 600; font-size: 14px; height: 38px; line-height: 19px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cd { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; } .cd.soon { color: var(--amber); } .cd.now { color: var(--down); }
.meeting { padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); margin: 8px 0; }
.meeting .hd { display: flex; align-items: center; gap: 8px; color: var(--ink); } .meeting .hd .t { flex: 1; min-width: 0; } .meeting .hd b { font-size: 16px; font-weight: 600; display: block; } .meeting .hd small { color: var(--muted); font-size: 12px; } .meeting .hd svg.chev { width: 14px; height: 14px; color: var(--muted); }
.rchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding-bottom: 2px; } .rchips::-webkit-scrollbar { display: none; }
.rchip { flex: none; padding: 6px 8px; border-radius: 6px; background: var(--panel2); color: var(--ink); font-size: 12px; text-align: center; min-width: 58px; display: flex; flex-direction: column; gap: 1px; align-items: center; } .rchip b { font-family: var(--num); font-weight: 600; font-size: 12px; display: flex; gap: 3px; align-items: center; } .rchip small { color: var(--muted); font-size: 11px; }
.rchip.done { background: var(--panel3); color: var(--muted); } .rchip.done b { color: var(--muted); } .rchip.next { background: color-mix(in srgb, var(--accent) 18%, transparent); } .rchip.on { background: var(--accent); color: var(--on-accent); } .rchip.on small, .rchip.on b { color: var(--on-accent); } .rchip svg { width: 9px; height: 9px; color: var(--amber); }
.bb-row { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--panel2); color: var(--ink); margin: 6px 0; } .bb-row .t { flex: 1; } .bb-row b { display: block; font-size: 14px; font-weight: 600; } .bb-row small { color: var(--muted); font-size: 12px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .sec-hd .cap { text-align: right; }
/* the race card */
.race-hd { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; } .race-hd .t { flex: 1; font-size: 18px; font-weight: 600; line-height: 1.3; } .race-hd .cd { font-size: 16px; } .race-hd .right { display: flex; align-items: center; gap: 8px; flex: none; }
.fresh { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); } .fresh.on { color: var(--up); } .fresh svg { width: 13px; height: 13px; }
.xstrip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); margin: 8px 0; } .xstrip .big { font-family: var(--num); font-size: 20px; font-weight: 700; } .xstrip .sub { font-size: 12px; color: var(--muted); } .xstrip img { width: 30px; height: 30px; border-radius: 8px; } .xstrip .delayed { margin-left: auto; text-align: right; } .xstrip .delayed b { color: var(--amber); display: block; }
.mstrip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; line-height: 1.6; border-radius: 10px; background: var(--model-panel); font-size: 13px; color: var(--ink2); margin: 8px 0; flex-wrap: wrap; } .mstrip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--model); } .mstrip b { color: var(--model); font-family: var(--num); } .mstrip .r { margin-left: auto; }
.ctl { display: flex; align-items: center; gap: 14px; margin: 8px 0; font-size: 13px; color: var(--ink2); font-weight: 600; } .ctl button { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ink2); font-weight: 600; cursor: pointer; font-size: 13px; } .ctl svg { width: 14px; height: 14px; } .ctl .hint { margin-left: auto; font-weight: 500; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.grid { display: grid; grid-template-columns: 140px 1fr; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
@media (min-width: 900px) { .grid { grid-template-columns: 250px 1fr; } }
.grid .names { display: flex; flex-direction: column; } .grid .prices { overflow-x: auto; scrollbar-width: thin; }
.grid .prices table { border-collapse: separate; border-spacing: 0; } .grid .prices th, .grid .prices td { padding: 0 4px; text-align: center; white-space: nowrap; }
.grid .prices th { height: 48px; vertical-align: bottom; padding-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--muted); } .grid .prices th img { width: 18px; height: 18px; border-radius: 5px; display: block; margin: 0 auto 3px; } .grid .prices th.model { color: var(--model); font-weight: 600; } .grid .prices th.model span { color: var(--muted); font-weight: 500; display: block; }
.grid .prices th .lbl { display: block; }
.grid .rowh { height: 64px; } @media (min-width: 900px) { .grid .rowh { height: 56px; } }
.grid .names .hd { height: 48px; } .grid .names .name { height: 64px; padding: 6px 6px 6px 10px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); cursor: pointer; } @media (min-width: 900px) { .grid .names .name { height: 56px; } }
.grid .names .pos { width: 20px; height: 20px; border-radius: 50%; background: var(--panel3); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; } .grid .names .pos.first { background: var(--amber); color: #000; }
.grid .names .silk { width: 28px; height: 28px; border-radius: 7px; background: var(--panel3); flex: none; position: relative; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink2); overflow: visible; } .grid .names .silk img { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; } .grid .names .silk img + .n { display: none; } .ls { font-family: var(--num); letter-spacing: .06em; } .grid .names .silk .bm { position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; color: var(--muted); border: 0; padding: 0; cursor: pointer; } .grid .names .silk .bm svg { width: 10px; height: 10px; } .grid .names .silk .bm.on { color: var(--amber); }
.grid .names .txt { min-width: 0; flex: 1; } .grid .names .txt b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .grid .names .txt b .n { font-family: var(--num); font-weight: 600; } .grid .names .txt small { display: block; color: var(--ink2); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid .names .name.scr { opacity: .5; } .grid .names .name.scr b { text-decoration: line-through; } .grid .names .name.scr .scr { color: var(--down); text-decoration: none; font-weight: 700; margin-left: 4px; } .grid .names .txt .ded { color: var(--amber); }
@media (min-width: 900px) { .grid .names .txt b { -webkit-line-clamp: 1; } }
.grid .prices td { border-top: 1px solid var(--line); height: 64px; } @media (min-width: 900px) { .grid .prices td { height: 56px; } }
.px { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 38px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); font-family: var(--num); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--ink); vertical-align: middle; }
@media (min-width: 900px) { .px { width: 66px; font-size: 15px; } }
.px.lay { background: var(--lay-panel); color: var(--lay); border-color: transparent; } .px.tote { border-color: transparent; } .px.tote.pl { color: var(--ink2); } .px.closed { background: var(--panel); border-color: transparent; color: var(--ink2); font-weight: 500; } .px.gap { background: transparent; border-color: transparent; color: var(--muted); }
.px.best::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.px .mv { position: absolute; top: 3px; left: 3px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; } .px .mv.firm { border-top: 6px solid var(--up); } .px .mv.drift { border-bottom: 6px solid var(--down); }
.px.value { outline: 1.5px solid var(--up); outline-offset: -1px; }
.px.flash-up { animation: fu .7s ease-out .1s; } .px.flash-down { animation: fd .7s ease-out .1s; } @keyframes fu { from { background: color-mix(in srgb, var(--up) 35%, var(--panel2)); } to { background: var(--panel2); } } @keyframes fd { from { background: color-mix(in srgb, var(--down) 35%, var(--panel2)); } to { background: var(--panel2); } }
.px.model { background: var(--model-panel); border-color: transparent; color: var(--model); flex-direction: column; gap: 0; line-height: 1.1; } .px.model small { font-size: 8px; color: var(--muted); font-weight: 500; } .px.model.pl { font-weight: 500; }
.px.fluc { width: 96px; flex-direction: column; line-height: 1.1; font-size: 12px; } .px.fluc small { font-size: 10px; font-weight: 500; }
.mkt td { height: 30px !important; } .mkt .px { height: 24px; font-size: 11px; background: var(--panel); border-color: transparent; color: var(--ink2); font-weight: 500; } .mkt .px.model { background: var(--model-panel); color: var(--model); }
.grid .names .mkt-l { height: 30px; padding: 0 10px; font-size: 11px; line-height: 1.15; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); color: var(--ink2); } .grid .names .mkt-l small { color: var(--muted); font-size: 10px; }
.ml { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-family: var(--num); } .ml i { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; } .ml.firm { color: var(--up); } .ml.firm i { border-top: 6px solid var(--up); } .ml.drift { color: var(--down); } .ml.drift i { border-bottom: 6px solid var(--down); } .ml.same { color: var(--muted); }
.src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 8px 0; } .src .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--model); }
.segs { margin-top: 12px; } .seg-body { margin-top: 8px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; } table.t th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 6px; border-bottom: 1px solid var(--line); } table.t td { padding: 7px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; } table.t td.n, table.t th.n { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; } table.t tr:last-child td { border-bottom: 0; } table.t img { width: 18px; height: 18px; border-radius: 5px; vertical-align: middle; }
.tscroll { overflow-x: auto; }
.form-card { padding: 10px 12px; border-radius: 10px; background: var(--panel2); margin: 6px 0; } .form-card .hd { display: flex; gap: 8px; align-items: baseline; } .form-card .hd .n { color: var(--amber); font-family: var(--num); } .form-card .hd b { font-weight: 600; } .form-card .ls { font-family: var(--num); letter-spacing: .08em; color: var(--ink2); margin-left: auto; font-size: 13px; } .form-card .stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.result-box { padding: 10px 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); margin: 8px 0; display: block; color: var(--ink); } .result-box .pl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .result-box .pl span { display: inline-flex; align-items: center; gap: 5px; } .result-box .pl i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--panel3); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; } .result-box .pl i.first { background: var(--amber); color: #000; }
.divs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .divs span { padding: 2px 7px; border-radius: 6px; background: var(--panel2); font-size: 12px; font-family: var(--num); }
/* sheets */
.sheet { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 40%, transparent); display: flex; align-items: flex-end; justify-content: center; } @media (min-width: 700px) { .sheet { align-items: center; } }
.sheet .card { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 16px 16px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); } @media (min-width: 700px) { .sheet .card { border-radius: 16px; max-height: 86vh; } }
.sheet .card.wide { max-width: 760px; }
.sheet .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .sheet .bar b { font-size: 16px; }
.sheet.full .card { max-width: 640px; border-radius: 0; max-height: 100vh; height: 100vh; height: 100dvh; padding-top: max(14px, env(safe-area-inset-top)); } @media (min-width: 700px) { .sheet.full .card { border-radius: 16px; height: auto; max-height: 92vh; } }
.sheet h1 { font-size: 26px; margin: 10px 0 6px; } .sheet .lede { color: var(--ink2); font-size: 16px; } .sheet .links { display: flex; gap: 14px; font-weight: 600; margin: 10px 0 14px; flex-wrap: wrap; }
.dots { display: flex; gap: 5px; align-items: center; margin: 6px 0; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); } .dots i.on { background: var(--accent); } .dots .cap { margin-left: 6px; }
.tour-ic { width: 48px; height: 48px; color: var(--accent); margin: 14px 0 6px; } .tour-ic svg { width: 44px; height: 44px; }
.lock { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--panel2); font-size: 12px; color: var(--ink2); } .lock svg { width: 12px; height: 12px; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; } .books label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 500; cursor: pointer; } .books label img { width: 22px; height: 22px; border-radius: 6px; } .books label.on { border-color: var(--up); }
.locked { text-align: center; padding: 40px 16px; } .locked svg { width: 40px; height: 40px; color: var(--muted); } .locked b { display: block; font-size: 18px; margin: 8px 0 4px; } .locked p { color: var(--ink2); max-width: 420px; margin: 0 auto 14px; }
/* the looks picker */
.themes { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px; } .theme { flex: none; border: 0; background: none; padding: 0; cursor: pointer; text-align: center; font-size: 12px; } .theme .sw { width: 72px; height: 66px; border-radius: 10px; border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; } .theme.on .sw { border: 2px solid var(--accent); } .theme .sw i { display: block; border-radius: 3px; } .theme .sw .dots2 { display: flex; gap: 4px; } .theme .sw .dots2 i { width: 9px; height: 9px; border-radius: 50%; } .theme b { display: block; margin-top: 4px; font-weight: 600; color: var(--ink); } .theme small { color: var(--muted); display: block; }
/* stat cards, picks, model */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .stat { padding: 12px 14px; border-radius: 10px; background: var(--panel2); } .stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; } .stat .v { font-family: var(--num); font-size: 22px; font-weight: 700; margin: 2px 0; } .stat .n { font-size: 11px; color: var(--muted); }
.pick-race { padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin: 10px 0; } .pick-race .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .pick-race .hd b { font-size: 15px; } .pick-race .hd .cd { margin-left: auto; }
.pick-grid { overflow-x: auto; } .pick-grid table { border-collapse: separate; border-spacing: 4px 6px; } .pick-grid th { font-size: 11px; font-weight: 500; color: var(--muted); text-align: center; vertical-align: bottom; } .pick-grid th img { width: 18px; height: 18px; border-radius: 5px; display: block; margin: 0 auto 3px; } .pick-grid th.model { color: var(--model); font-weight: 600; } .pick-grid th.model span { display: block; color: var(--muted); font-weight: 500; }
.pick-grid td { text-align: center; vertical-align: middle; } .pick-grid td.runner { text-align: left; min-width: 170px; } .pick-grid td.runner b { font-weight: 600; font-size: 14px; display: block; } .pick-grid td.runner small { font-size: 12px; } .pick-grid td.stake { text-align: right; min-width: 84px; } .pick-grid td.stake b { font-family: var(--num); display: block; font-size: 14px; } .pick-grid td.stake small { font-size: 11px; color: var(--muted); }
.pick-grid .px { width: 56px; } .pick-grid .px.best { outline: 1.5px solid var(--up); outline-offset: -1px; } .pick-grid .px.best::after { display: none; }
.banner { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); margin: -12px -14px 10px; } .banner svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 1px; }
.hline { font-size: 34px; font-weight: 700; margin: 2px 0 10px; } .hline.fitted { color: var(--model); } .hline.builtin { color: var(--ink2); }
svg.chart { width: 100%; height: auto; display: block; } .legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 4px; } .legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 4px; }
/* the community */
.cwrap { display: block; } @media (min-width: 900px) { .cwrap { display: grid; grid-template-columns: 236px 1fr; gap: 20px; align-items: start; margin: -16px -24px 0; } .cwrap > div:last-child { padding: 16px 24px 0 0; min-width: 0; } .cwrap.solo { display: block; margin: 0; } }
.cside { background: var(--panel); border-right: 1px solid var(--line); padding: 10px 8px; position: sticky; top: 50px; height: calc(100vh - 50px); overflow-y: auto; }
.cside .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 8px 4px; } .cside a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; } .cside a.on { background: var(--panel3); font-weight: 600; } .cside a .ic { color: var(--ic, var(--ink2)); width: 18px; text-align: center; flex: none; } .cside a.on .ic { color: var(--accent); } .cside a .unread { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); } .cside a.muted-ch { color: var(--muted); } .cside a.unr { font-weight: 600; }
.cside .online { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); padding: 0 8px 6px; } .cside .online i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); display: inline-block; }
.chan { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--panel); } .chan:first-child { border-radius: var(--r) var(--r) 0 0; } .chan:last-child { border-bottom: 0; border-radius: 0 0 var(--r) var(--r); }
.chan .ic { width: 22px; text-align: center; font-size: 18px; color: var(--accent); flex: none; } .chan .t { flex: 1; min-width: 0; } .chan b { display: block; font-weight: 500; } .chan small { color: var(--muted); display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chan .unread { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); } .chan .when { font-size: 11px; color: var(--muted); }
.chan-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0; } .chan-bar .ic { font-size: 20px; color: var(--accent); } .chan-bar .t { flex: 1; min-width: 0; } .chan-bar b { font-size: 16px; } .chan-bar small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chan-bar .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.msgs { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 100px; }
.msg { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 5px 4px; border-radius: 8px; position: relative; } .msg.cont { padding-top: 0; } .msg:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.msg .av { width: 28px; height: 28px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 600; color: var(--ink2); font-size: 12px; overflow: hidden; cursor: pointer; border: 0; padding: 0; } .msg .av img { width: 100%; height: 100%; object-fit: cover; } .msg.bot .av { background: var(--model-panel); color: var(--model); }
.msg .who { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .msg .who b { color: var(--ink); font-weight: 600; font-size: 14px; } .msg .who .time { font-size: 11px; }
.role { font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 999px; } .role.owner { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); } .role.admin { background: color-mix(in srgb, var(--model) 18%, transparent); color: var(--model); } .role.founder { background: var(--panel2); color: var(--ink2); font-weight: 400; }
.msg .body { font-size: 14px; white-space: pre-wrap; word-break: break-word; } .msg .body code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--panel2); padding: 0 4px; border-radius: 4px; }
.msg .quote { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .msg .deleted { font-style: italic; color: var(--muted); font-size: 13px; }
.msg.pinned { background: color-mix(in srgb, var(--amber) 10%, transparent); border-left: 3px solid var(--amber); padding-left: 10px; }
.msg .more { opacity: .22; border: 0; background: none; cursor: pointer; padding: 2px 4px; color: var(--ink2); align-self: start; } .msg:hover .more { opacity: 1; } .msg .more svg { width: 16px; height: 16px; }
.rchip-c { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--model-panel); color: var(--ink); font-size: 13px; margin: 4px 0; } .rchip-c.lay { background: var(--lay-panel); } .rchip-c.watch { background: color-mix(in srgb, var(--amber) 14%, transparent); } .rchip-c.bet { background: var(--panel2); outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); } .rchip-c .num { font-size: 13px; } .rchip-c img { width: 16px; height: 16px; border-radius: 4px; } .rchip-c .tag { font-size: 9px; font-weight: 800; } .rchip-c .tag.lay { color: var(--lay); } .rchip-c .tag.watch { color: var(--amber); } .rchip-c .sep { width: 1px; height: 14px; background: var(--line); }
.pill { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; } .pill.won, .pill.placed { color: var(--up); background: color-mix(in srgb, var(--up) 18%, transparent); } .pill.lost { color: var(--down); background: color-mix(in srgb, var(--down) 18%, transparent); } .pill.void, .pill.cancelled { color: var(--muted); background: color-mix(in srgb, var(--muted) 18%, transparent); } .pill.other { color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, transparent); }
.media { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .media img { height: 120px; max-width: 260px; border-radius: 8px; object-fit: cover; cursor: pointer; } .media img.gif { height: auto; max-height: 200px; }
.reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .reacts button { border: 0; background: var(--panel2); border-radius: 999px; padding: 2px 8px; font-size: 12px; cursor: pointer; } .reacts button.mine { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.poll { max-width: 420px; padding: 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-top: 6px; } .poll b { display: block; font-size: 14px; margin-bottom: 6px; } .poll .opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-radius: 6px; overflow: hidden; font-size: 14px; } .poll .opt .bar { position: absolute; inset: 0; background: var(--panel2); border-radius: 6px; z-index: 0; } .poll .opt.mine .bar { background: color-mix(in srgb, var(--accent) 22%, transparent); } .poll .opt span { position: relative; z-index: 1; } .poll .opt .pct { margin-left: auto; font-family: var(--num); font-size: 12px; color: var(--ink2); } .poll .cap { margin-top: 4px; }
.racemark { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 0; width: 100%; text-align: left; cursor: pointer; font-size: 14px; font-weight: 600; margin: 4px 0; } .racemark svg { width: 16px; height: 16px; color: var(--accent); } .racemark .r { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.composer { position: fixed; left: 0; right: 0; bottom: var(--tab); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 7; } @media (min-width: 900px) { .composer { left: var(--side); bottom: 0; padding-bottom: 12px; } }
.composer .inner { margin: 0 auto; padding: 0 2px; } @media (min-width: 900px) { .composer { padding-left: 256px; } .composer .inner { max-width: none; } .composer.solo { padding-left: 24px; } }
.composer .attach { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .composer .attach .chip { font-weight: 500; } .composer .attach .chip button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); display: inline-grid; } .composer .attach .chip button svg { width: 14px; height: 14px; }
.composer .line { display: flex; gap: 6px; align-items: flex-end; } .composer textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; border-radius: 12px; padding: 9px 12px; } .composer .icon-btn { width: 36px; height: 36px; background: var(--panel2); } .composer .send { background: var(--accent); color: var(--on-accent); }
.record { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--ink); } .record:first-child { border-radius: var(--r) var(--r) 0 0; } .record:last-child { border-bottom: 0; border-radius: 0 0 var(--r) var(--r); } .record .av { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 600; color: var(--ink2); font-size: 13px; overflow: hidden; flex: none; } .record .av img { width: 100%; height: 100%; object-fit: cover; } .record .t { min-width: 0; } .record b { font-weight: 600; } .record small { display: block; color: var(--muted); font-size: 12px; }
.act { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--ink); position: relative; } .act .av { width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 600; color: var(--ink2); position: relative; flex: none; } .act .av .bd { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; } .act .t { flex: 1; min-width: 0; font-size: 13px; } .act .t b { font-weight: 600; } .act .t .ex { color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .act .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.notes { display: flex; flex-direction: column; gap: 8px; } .noteb { padding: 8px 10px; border-radius: 8px; background: var(--panel); max-width: 90%; } .noteb.house { background: var(--model-panel); } .noteb .hd { font-size: 11px; color: var(--muted); margin-bottom: 2px; } .noteb .hd b { color: var(--ink); }
.prof-hd { display: flex; align-items: center; gap: 12px; } .prof-hd .av { width: 64px; height: 64px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-size: 24px; font-weight: 600; color: var(--ink2); overflow: hidden; } .prof-hd .av img { width: 100%; height: 100%; object-fit: cover; }
.emoji-pick { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; } .emoji-pick button { border: 0; background: var(--panel2); border-radius: 8px; font-size: 18px; padding: 4px 6px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 16px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 13px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); } @media (min-width: 900px) { .toast { bottom: 20px; } }
.rg { padding: 10px 12px; border-radius: 10px; background: var(--panel); font-size: 12px; color: var(--ink2); margin: 12px 0; } .rg b { display: block; color: var(--ink); margin-bottom: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
