/* Wacky Wheels control tower dashboard. Moved from the old single-file page. */ :root { color-scheme: dark; --bg: #070c27; --bg-2: #0b1437; --card: #0f1739; --card-hi: #141f4a; --line: rgba(var(--hi), 0.08); --line-2: rgba(var(--hi), 0.14); --text: #ffffff; --text-2: #c3cce3; --muted: #93a1c4; --accent: #0075ff; --accent-2: #2b8cff; --accent-soft: rgba(0, 117, 255, 0.16); /* Status: fixed roles, always shown with an icon and a word. */ --good: #0ca30c; --good-text: #3ddc84; --warn: #fab219; --bad: #d03b3b; --bad-text: #ff7a7a; /* Chart series, dark steps (validated on #0f1739, adjacent pairs). */ --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; /* Surfaces as r, g, b so each rule keeps its own opacity: rgba(var(--panel), 0.8). */ --ink: 6, 11, 40; /* inset wells, darker than a card */ --panel: 15, 23, 57; /* cards and controls */ --panel-hi: 20, 31, 74; --hi: 255, 255, 255; /* faint highlights and tracks */ --shade: 0, 0, 0; /* shadows */ --fs: 1; /* text size: Settings → Text size → Large sets 1.14 */ --radius: 18px; --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; } * { box-sizing: border-box; } html, body { margin: 0; } body { font-family: var(--sans); font-size: calc(15px * var(--fs)); line-height: 1.5; color: var(--text); background: radial-gradient(1200px 700px at 85% -10%, rgba(0, 117, 255, 0.22), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(67, 24, 255, 0.18), transparent 60%), var(--bg); background-attachment: fixed; min-height: 100vh; } a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; } .mono { font-family: var(--mono); font-size: calc(12px * var(--fs)); } /* ---------- layout ---------- */ .app { display: grid; grid-template-columns: 264px 1fr; gap: 24px; padding: 20px; min-height: 100vh; } .side { position: sticky; top: 20px; align-self: start; height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(var(--panel), 0.96), rgba(var(--panel), 0.82)); border: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; } .brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #0075ff, #4318ff); font-weight: 800; } .brand-name { font-size: calc(12px * var(--fs)); letter-spacing: 0.16em; font-weight: 700; line-height: 1.3; } .brand-name span { display: block; color: var(--muted); letter-spacing: 0.1em; font-weight: 600; font-size: calc(10px * var(--fs)); } .nav-label { font-size: calc(10px * var(--fs)); letter-spacing: 0.14em; color: var(--muted); font-weight: 700; padding: 14px 12px 6px; } .nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text-2); font-weight: 600; font-size: calc(13px * var(--fs)); } .nav a:hover { background: rgba(var(--hi), 0.04); color: var(--text); } .nav a.on { background: var(--card-hi); color: var(--text); box-shadow: 0 6px 18px rgba(var(--shade), 0.25); } .nav .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--card-hi); color: var(--accent-2); } .nav a.on .ico { background: var(--accent); color: #fff; } .ico svg { width: 15px; height: 15px; } .side-foot { margin-top: auto; } .help { border-radius: 16px; padding: 16px; position: relative; overflow: hidden; background: radial-gradient(160px 120px at 90% 0%, rgba(67, 24, 255, 0.7), transparent 70%), linear-gradient(135deg, #0075ff 0%, #1a2a7a 100%); } .help h4 { margin: 0 0 4px; font-size: calc(13px * var(--fs)); } .help p { margin: 0 0 10px; font-size: calc(11px * var(--fs)); color: rgba(255, 255, 255, 0.82); line-height: 1.5; } .help code { display: block; font-family: var(--mono); font-size: calc(10.5px * var(--fs)); background: rgba(var(--ink), 0.55); border-radius: 8px; padding: 6px 8px; margin-top: 4px; color: #dbe6ff; } .main { min-width: 0; display: flex; flex-direction: column; gap: 20px; } /* ---------- motion (off for prefers-reduced-motion) ---------- */ .card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; } .card.stat:hover, .g-hero > .card:hover, .g-agents .agent:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 24px 50px rgba(var(--shade), 0.35); } /* Charts draw in once, when they first appear (a filter change does not replay them). */ .draw { stroke-dashoffset: var(--off); animation: draw 1.1s cubic-bezier(.2, .8, .2, 1) both 0.15s; } @keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: var(--off); } } .chart .bar { transform-box: fill-box; transform-origin: bottom; } .chart .bar { animation: grow 0.6s cubic-bezier(.2, .8, .2, 1) both; } @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } } [hidden] { display: none !important; } @media (prefers-reduced-motion: reduce) { .draw, .chart .bar { animation: none !important; } .card { transition: none; } } /* ---------- top bar ---------- */ .topbar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: rgba(var(--panel), 0.72); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); transition: box-shadow 0.25s, border-color 0.25s, background 0.25s; } .topbar.scrolled { box-shadow: 0 14px 40px rgba(var(--shade), 0.45); border-color: var(--line-2); background: rgba(var(--panel), 0.88); } .tb-left { min-width: 0; display: grid; gap: 2px; } .tb-left h1 { margin: 0; font-size: calc(22px * var(--fs)); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; } .tb-sub { font-size: calc(13.5px * var(--fs)); color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 14px; } .tb-sub span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .tb-sub b { color: var(--text); font-variant-numeric: tabular-nums; } .tb-sub .ok { color: var(--good-text); } .tb-sub .bad { color: var(--bad-text); } .trail { font-size: calc(13px * var(--fs)); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .trail a { color: var(--text-2); } .trail a:hover { color: var(--accent-2); } .trail .sep { opacity: 0.5; } .tb-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 1 1 280px; max-width: 460px; } .load-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; font-size: calc(13px * var(--fs)); color: var(--text-2); background: rgba(var(--panel), 0.8); border: 1px solid var(--line-2); } .search kbd { font-family: var(--mono); font-size: calc(11px * var(--fs)); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; } .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.18); } .search:focus-within kbd { display: none; } .icon-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; cursor: pointer; font-size: calc(13px * var(--fs)); font-weight: 700; color: #fff; border: 1px solid transparent; background: linear-gradient(135deg, #0075ff, #4318ff); box-shadow: 0 8px 20px rgba(0, 117, 255, 0.3); transition: transform 0.15s, box-shadow 0.15s; } .icon-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 117, 255, 0.45); } .icon-btn svg { width: 15px; height: 15px; } .icon-btn.busy svg { animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(var(--panel), 0.8); color: var(--text-2); } .search svg { width: 15px; height: 15px; flex: none; } .empty svg { width: 16px; height: 16px; vertical-align: -3px; } .search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; } .chip-btn { padding: 9px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(var(--panel), 0.8); cursor: pointer; font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--text-2); } .chip-btn:hover { color: var(--text); border-color: var(--accent); } /* ---------- cards ---------- */ .card { border-radius: var(--radius); padding: 20px 22px; min-width: 0; background: linear-gradient(127deg, rgba(var(--panel), 0.97) 20%, rgba(var(--panel), 0.72) 80%); border: 1px solid var(--line); box-shadow: 0 20px 45px rgba(var(--shade), 0.25); } .card h3 { margin: 0; font-size: calc(16.5px * var(--fs)); font-weight: 700; } .card .sub { margin: 4px 0 0; font-size: calc(13.5px * var(--fs)); line-height: 1.5; color: var(--text-2); max-width: 900px; } .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .grid { display: grid; gap: 20px; } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.1fr); } .g-chart { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .g-table { grid-template-columns: 1.7fr 1fr; } .stat { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; overflow: hidden; } .stat .stat-body { min-width: 0; } .stat .k { font-size: calc(10.5px * var(--fs)); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .stat .v { font-size: calc(30px * var(--fs)); line-height: 1; font-weight: 800; margin-top: 8px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; } .stat .delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 3px 9px; border-radius: 999px; font-size: calc(11.5px * var(--fs)); font-weight: 700; max-width: 100%; } .stat .delta .arr { font-size: calc(8px * var(--fs)); line-height: 1; } .stat .delta .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stat .delta.up { color: var(--good-text); background: rgba(61, 220, 132, 0.12); } .stat .delta.down { color: var(--bad-text); background: rgba(255, 122, 122, 0.12); } .stat .delta.warn { color: var(--warn); background: rgba(250, 178, 25, 0.13); } .stat .delta.flat { color: var(--text-2); background: rgba(var(--hi), 0.06); } .stat .badge-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; flex: none; box-shadow: 0 10px 22px rgba(0, 117, 255, 0.35); } .stat .badge-ico svg { width: 21px; height: 21px; } .up { color: var(--good-text); } .down { color: var(--bad-text); } .hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(260px 220px at 78% 42%, rgba(80, 140, 255, 0.55), transparent 65%), radial-gradient(180px 160px at 70% 60%, rgba(120, 60, 255, 0.55), transparent 70%), linear-gradient(127deg, rgba(var(--panel), 0.97) 25%, rgba(18, 28, 80, 0.85) 100%); } .hero .k { font-size: calc(12px * var(--fs)); color: var(--text-2); } .hero h2 { margin: 6px 0 8px; font-size: calc(26px * var(--fs)); font-weight: 800; letter-spacing: -0.01em; } .hero p { margin: 0; max-width: 460px; color: var(--text-2); line-height: 1.6; font-size: calc(14.5px * var(--fs)); position: relative; } .hero .go { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs)); font-weight: 700; margin-top: 18px; position: relative; } .hero .go:hover { color: var(--accent-2); } .model-pill { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(var(--ink), 0.6); border: 1px solid var(--line-2); font-size: calc(11px * var(--fs)); color: var(--text-2); position: relative; } .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; } .gauge-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 4px; } .gauge-wrap .gauge-cap { font-size: calc(13.5px * var(--fs)); color: var(--text-2); } .gauge-wrap .gauge-cap b { color: var(--text); } .gauge-num { margin-top: -26px; text-align: center; padding: 10px 18px; border-radius: 16px; min-width: 190px; background: rgba(var(--ink), 0.7); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; } .gauge-num .big { font-size: calc(26px * var(--fs)); font-weight: 800; font-variant-numeric: tabular-nums; } .gauge-num .ends { font-size: calc(10px * var(--fs)); color: var(--muted); } .gauge-cap { font-size: calc(11px * var(--fs)); color: var(--muted); } .reader { display: flex; flex-direction: column; align-items: center; gap: 14px; } .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; } .mini .tile { border-radius: 14px; padding: 10px 12px; background: rgba(var(--ink), 0.6); border: 1px solid var(--line); text-align: center; } .mini .tile .k { font-size: calc(12px * var(--fs)); color: var(--muted); white-space: nowrap; } .mini .tile .v { font-size: calc(20px * var(--fs)); font-weight: 800; margin-top: 2px; } .mini .tile .v small { font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--muted); } .ring-center { font-size: calc(11px * var(--fs)); fill: var(--text-2); } /* ---------- chart ---------- */ .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: calc(12px * var(--fs)); color: var(--text-2); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .chart { position: relative; } .chart svg { display: block; width: 100%; } .axis text { fill: var(--muted); font-size: calc(10px * var(--fs)); font-family: var(--sans); } .grid-line { stroke: rgba(var(--hi), 0.07); stroke-width: 1; } .tip { position: absolute; pointer-events: none; z-index: 5; min-width: 180px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--ink), 0.96); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(var(--shade), 0.45); font-size: calc(12px * var(--fs)); opacity: 0; transition: opacity 0.1s; transform: translate(-50%, calc(-100% - 12px)); } .tip.on { opacity: 1; } .tip b { display: block; margin-bottom: 6px; } .tip .row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); } .tip .row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; } .tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; } .toggle { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(var(--ink), 0.65); border: 1px solid var(--line); } .toggle button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; cursor: pointer; font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--text-2); } .toggle button.on { background: var(--accent); color: #fff; } .bars { display: grid; gap: 12px; } .hbar .lab { display: flex; justify-content: space-between; font-size: calc(12px * var(--fs)); color: var(--text-2); margin-bottom: 6px; } .hbar .lab b { color: var(--text); font-variant-numeric: tabular-nums; } .hbar .track { height: 6px; border-radius: 4px; background: rgba(var(--hi), 0.06); overflow: hidden; } .hbar .fill { height: 100%; border-radius: 4px; background: var(--s1); } /* ---------- tables ---------- */ table { width: 100%; border-collapse: collapse; } th { text-align: left; font-size: calc(11px * var(--fs)); letter-spacing: 0.08em; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; } td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: calc(14px * var(--fs)); } tr.click { cursor: pointer; } tr.click:hover td { background: rgba(var(--hi), 0.025); } .num { text-align: right; font-variant-numeric: tabular-nums; } .clip { max-width: 380px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .scroll-x { overflow-x: auto; } .tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: calc(11px * var(--fs)); font-weight: 700; white-space: nowrap; background: rgba(var(--hi), 0.06); color: var(--text-2); border: 1px solid var(--line); } .tag.k-supplier_delay { color: #8fbaf3; } .tag.k-plant_outage { color: #f0a07c; } .tag.k-quality_hold { color: #6fd4ae; } .tag.k-unconfirmed { color: #f2c66b; } .tag.k-noise { color: var(--muted); } .status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: calc(12px * var(--fs)); white-space: nowrap; } .status svg { width: 14px; height: 14px; } .status.pass { color: var(--good-text); } .status.fail { color: var(--bad-text); } .status.esc { color: var(--warn); } .status.none { color: var(--muted); } .timeline { display: grid; gap: 0; } .tl { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; padding-bottom: 16px; } .tl:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); } .tl .ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--card-hi); } .tl .ico svg { width: 14px; height: 14px; } .tl b { font-size: calc(13px * var(--fs)); } .tl .when { font-size: calc(11px * var(--fs)); color: var(--muted); margin-top: 2px; } /* ---------- events page ---------- */ .ev-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; } .ev-list { display: grid; gap: 8px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 4px; } .ev-item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--panel), 0.75); cursor: pointer; display: grid; gap: 6px; } .ev-item:hover { border-color: var(--line-2); } .ev-item.on { border-color: var(--accent); background: var(--card-hi); } .ev-item .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ev-item .txt { font-size: calc(12px * var(--fs)); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .quote { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(var(--ink), 0.6); border-left: 3px solid var(--accent); color: var(--text-2); line-height: 1.6; } .section-title { font-size: calc(11px * var(--fs)); letter-spacing: 0.12em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; text-transform: uppercase; } .inc { border-radius: 14px; border: 1px solid var(--line); padding: 14px; background: rgba(var(--ink), 0.45); display: grid; gap: 10px; } .fields { display: flex; flex-wrap: wrap; gap: 8px; } .field { font-size: calc(12px * var(--fs)); padding: 5px 10px; border-radius: 10px; background: rgba(var(--hi), 0.05); } .field span { color: var(--muted); margin-right: 5px; } details summary { cursor: pointer; color: var(--accent-2); font-size: calc(12px * var(--fs)); font-weight: 600; } details ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: calc(12px * var(--fs)); line-height: 1.6; } .path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .node { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 10px; background: rgba(0, 117, 255, 0.1); border: 1px solid rgba(0, 117, 255, 0.28); font-size: calc(12px * var(--fs)); } .node small { font-size: calc(9px * var(--fs)); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; } .arrow { color: var(--muted); } .summary-box { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(0, 117, 255, 0.3); line-height: 1.6; } /* ---------- reports page ---------- */ .controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .cmp { display: grid; grid-template-columns: 170px 1fr 1fr 70px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; } .cmp > div { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: calc(12.5px * var(--fs)); min-width: 0; } .cmp .h { font-size: calc(10px * var(--fs)); letter-spacing: 0.1em; color: var(--muted); font-weight: 700; background: rgba(var(--ink), 0.6); text-transform: uppercase; } .cmp .lbl { color: var(--text-2); font-weight: 600; } .cmp .ok { color: var(--good-text); font-weight: 700; } .cmp .no { color: var(--bad-text); font-weight: 700; } .cmp .na { color: var(--muted); } .ids { font-family: var(--mono); font-size: calc(11px * var(--fs)); color: var(--text-2); word-break: break-word; margin-top: 4px; } .diff { font-size: calc(11px * var(--fs)); color: var(--bad-text); margin-top: 3px; } .detail-row td { background: rgba(var(--ink), 0.5); padding: 18px; } .note { font-size: calc(13px * var(--fs)); color: var(--muted); line-height: 1.5; } .fails { margin: 10px 0 0; padding-left: 18px; font-size: calc(12px * var(--fs)); line-height: 1.6; } .fails li.f { color: var(--bad-text); } .fails li.w { color: var(--warn); } /* ---------- saved reports + case panels ---------- */ .runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; } .run { border-radius: 16px; padding: 16px; border: 1px solid var(--line); background: rgba(var(--ink), 0.55); display: grid; gap: 10px; } .run.on { border-color: var(--accent); background: var(--card-hi); } .run-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .run-top b { font-size: calc(14px * var(--fs)); } .run .meter { height: 6px; border-radius: 4px; background: rgba(var(--hi), 0.06); overflow: hidden; } .run .meter i { display: block; height: 100%; border-radius: 4px; } .run-actions { display: flex; gap: 8px; flex-wrap: wrap; } .btn { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--panel), 0.8); cursor: pointer; font-size: calc(12px * var(--fs)); font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; } .btn svg { width: 13px; height: 13px; } .btn:hover { color: var(--text); border-color: var(--accent); } .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.danger { color: var(--bad-text); } .btn.danger:hover { border-color: var(--bad); } .btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; } .btn:disabled { opacity: 0.5; cursor: wait; } .toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 12px 16px; border-radius: 14px; background: rgba(var(--ink), 0.96); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(var(--shade), 0.45); font-size: calc(13px * var(--fs)); opacity: 0; transform: translateY(8px); transition: opacity 0.15s, transform 0.15s; pointer-events: none; } .toast.on { opacity: 1; transform: none; } .pea { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .panel { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(var(--ink), 0.55); min-width: 0; } .panel h4 { margin: 0 0 10px; font-size: calc(11px * var(--fs)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; } .panel h4 .n { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: calc(11px * var(--fs)); letter-spacing: 0; } .panel.prompt { grid-column: 1 / -1; } .panel pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: calc(12px * var(--fs)); line-height: 1.6; color: var(--text); } .panel.verdict { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .panel.verdict.pass { border-color: rgba(12, 163, 12, 0.5); background: rgba(12, 163, 12, 0.08); } .panel.verdict.fail { border-color: rgba(208, 59, 59, 0.55); background: rgba(208, 59, 59, 0.08); } .big-verdict { display: inline-flex; align-items: center; gap: 10px; font-size: calc(22px * var(--fs)); font-weight: 800; } .big-verdict svg { width: 26px; height: 26px; } .pass .big-verdict { color: var(--good-text); } .fail .big-verdict { color: var(--bad-text); } .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: calc(12.5px * var(--fs)); } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-variant-numeric: tabular-nums; } .sysprompt { margin-top: 10px; } .sysprompt pre { max-height: 260px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: rgba(var(--shade), 0.25); color: var(--text-2); } /* ---------- agents ---------- */ .g-agents { grid-template-columns: repeat(4, minmax(0, 1fr)); } .agent { display: grid; gap: 10px; align-content: start; } .agent .who { display: flex; align-items: center; gap: 10px; } .agent .who .badge-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); flex: none; } .agent .who .badge-ico svg { width: 17px; height: 17px; } .agent .who.coord .badge-ico { background: linear-gradient(135deg, #0075ff, #4318ff); } .agent p { margin: 0; color: var(--text-2); font-size: calc(12.5px * var(--fs)); line-height: 1.55; } .agent .tools { display: flex; flex-wrap: wrap; gap: 6px; } .agent .tools .tag { font-family: var(--mono); font-weight: 600; font-size: calc(10.5px * var(--fs)); } .hand { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: calc(12.5px * var(--fs)); } .hand:last-child { border-bottom: 0; } .hand .route { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .hand .route .arrow { font-weight: 400; } .hand .task { color: var(--text-2); } .hand .ret { grid-column: 2; color: var(--text); } .hand .ret b { color: var(--good-text); } .hand .ret .bad { color: var(--bad-text); } /* ---------- written reports ---------- */ .wr-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; } .wr-list { display: grid; gap: 8px; position: sticky; top: 20px; } .wr-item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--panel), 0.75); cursor: pointer; display: grid; gap: 3px; } .wr-item:hover { border-color: var(--line-2); } .wr-item.on { border-color: var(--accent); background: var(--card-hi); } .md { line-height: 1.7; color: var(--text-2); font-size: calc(15px * var(--fs)); min-width: 0; max-width: 1000px; } .md h1, .md h2, .md h3, .md h4 { color: var(--text); line-height: 1.3; margin: 1.4em 0 0.5em; } .md h1 { font-size: calc(22px * var(--fs)); margin-top: 0; } .md h2 { font-size: calc(17px * var(--fs)); } .md h3 { font-size: calc(15px * var(--fs)); } .md h4 { font-size: calc(13.5px * var(--fs)); } .md p { margin: 0 0 0.9em; } .md ul, .md ol { margin: 0 0 0.9em; padding-left: 22px; } .md code { font-family: var(--mono); font-size: calc(12px * var(--fs)); background: rgba(var(--hi), 0.06); padding: 1px 5px; border-radius: 5px; color: var(--text); } .md pre { background: rgba(var(--shade), 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; } .md pre code { background: none; padding: 0; } .md table { margin: 0 0 1em; } .md td { font-size: calc(14px * var(--fs)); } .md th { font-size: calc(11px * var(--fs)); } .md strong { color: var(--text); } .md a { color: var(--accent-2); } .md hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; } @media (max-width: 900px) { .wr-layout { grid-template-columns: 1fr; } .wr-list { position: static; } } /* ---------- tests: charts, cases ---------- */ .g-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; } .panel h4 { margin: 0 0 12px; font-size: calc(11px * var(--fs)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); } .pie { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .pie svg path, .pie svg circle { cursor: default; } .pie-big { fill: var(--text); font-size: calc(26px * var(--fs)); font-weight: 800; } .pie-small { fill: var(--muted); font-size: calc(10px * var(--fs)); } .pie-legend { display: grid; gap: 8px; font-size: calc(13.5px * var(--fs)); min-width: 140px; } .pie-legend div { display: grid; grid-template-columns: 12px 16px 1fr auto; align-items: center; gap: 8px; color: var(--text-2); } .pie-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .pie-legend svg { width: 14px; height: 14px; color: var(--text-2); } .pie-legend b { color: var(--text); font-variant-numeric: tabular-nums; } .pbars { display: grid; gap: 12px; } .pbar .lab { display: flex; justify-content: space-between; font-size: calc(13.5px * var(--fs)); color: var(--text-2); margin-bottom: 6px; gap: 10px; } .pbar .lab i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 7px; } .pbar .lab b { color: var(--text); font-variant-numeric: tabular-nums; } .pbar[data-href] { cursor: pointer; } .pbar[data-href]:hover .lab span { color: var(--text); text-decoration: underline; } .pbar .track { height: 10px; border-radius: 5px; background: rgba(var(--hi), 0.05); display: flex; gap: 2px; overflow: hidden; } .pbar .seg { height: 100%; } .pbar .seg:first-child { border-radius: 5px 0 0 5px; } .pbar .seg:last-child { border-radius: 0 5px 5px 0; } .pbar .seg.ok { background: var(--good); } .pbar .seg.no { background: var(--bad); } .meter { height: 8px; border-radius: 4px; background: rgba(var(--hi), 0.06); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 4px; } .io { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .msg { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: calc(15px * var(--fs)); line-height: 1.6; color: var(--text); } .reasoning { display: flex; gap: 8px; align-items: flex-start; font-size: calc(13px * var(--fs)); color: var(--text-2); background: rgba(0, 117, 255, 0.08); border: 1px solid rgba(0, 117, 255, 0.25); border-radius: 10px; padding: 8px 10px; } .reasoning svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent-2); } .crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--text); } .console { margin: 0; max-height: 72vh; overflow: auto; padding: 14px; border-radius: 12px; background: rgba(var(--shade), 0.35); border: 1px solid var(--line); font-family: var(--mono); font-size: calc(12.5px * var(--fs)); line-height: 1.55; color: #dbe3f5; white-space: pre-wrap; word-break: break-word; } /* Narrower windows: panels sit side by side while each has room (about 300px), then wrap. */ @media (max-width: 1250px) { .g-charts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .io { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } } /* ---------- run guide ---------- */ .steps { display: grid; gap: 14px; } .step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; } .step .n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); font-weight: 800; box-shadow: 0 8px 20px rgba(0, 117, 255, 0.35); } .step h4 { margin: 6px 0 4px; font-size: calc(14px * var(--fs)); } .step p { margin: 0 0 8px; color: var(--text-2); font-size: calc(13px * var(--fs)); line-height: 1.55; } .cmd { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--shade), 0.3); border: 1px solid var(--line); font-family: var(--mono); font-size: calc(12.5px * var(--fs)); color: #dbe6ff; overflow-x: auto; } .cmd code { white-space: pre; } .cmd .copy { flex: none; } .empty { padding: 30px; text-align: center; color: var(--muted); } .hide { display: none !important; } @media (max-width: 1250px) { .g-chart, .g-table { grid-template-columns: 1fr; } .g-hero { grid-template-columns: 1fr 1fr; } .g-hero .hero { grid-column: 1 / -1; } .g4, .g-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 900px) { .app { grid-template-columns: 1fr; padding: 12px; } .side { position: static; height: auto; } .side-foot { display: none; } .ev-layout { grid-template-columns: 1fr; } .ev-list { max-height: 320px; } .cmp { grid-template-columns: 110px 1fr 1fr 44px; } .pea { grid-template-columns: 1fr; } .g4, .g-agents { grid-template-columns: 1fr; } .g-hero { grid-template-columns: 1fr; } .hand { grid-template-columns: 1fr; } .hand .ret { grid-column: 1; } } /* ---- Guide ---- */ .flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .flow li { display: flex; flex-direction: column; gap: 6px; } .flow p, .tour-card p { margin: 0; color: var(--text-2); font-size: calc(12.5px * var(--fs)); line-height: 1.55; } .flow-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; } .tour-card .flow-head { justify-content: flex-start; } .flow-head .badge-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; } .flow-head .badge-ico svg { width: 16px; height: 16px; } .tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .tour-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; transition: border-color 0.15s, background 0.15s; } a.tour-card:hover { border-color: var(--accent); background: rgba(0, 117, 255, 0.07); } .tour-card ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: calc(12.5px * var(--fs)); line-height: 1.6; } .tour-card .go-link { margin-top: auto; padding-top: 4px; font-size: calc(12.5px * var(--fs)); font-weight: 700; color: var(--accent-2); } .tour-card kbd { font-family: var(--mono); font-size: calc(11px * var(--fs)); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; } .g-guide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } .gcmds { display: grid; gap: 10px; } .gcmd p { margin: 6px 2px 0; color: var(--muted); font-size: calc(12.5px * var(--fs)); line-height: 1.5; } .gcmd-line { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: rgba(var(--shade), 0.3); border: 1px solid var(--line); min-width: 0; } .gcmd-line code { flex: 1; min-width: 0; font-family: var(--mono); font-size: calc(12.5px * var(--fs)); color: #dbe6ff; overflow-wrap: anywhere; } .gcmd-line .copy { flex: none; } .gloss { margin: 0; display: grid; gap: 10px; } .gloss > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; } .gloss dd { margin: 0; color: var(--text-2); font-size: calc(12.5px * var(--fs)); line-height: 1.55; overflow-wrap: anywhere; } .gloss.compact > div { gap: 12px; } @media (max-width: 1250px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-guide { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 700px) { .flow, .tour { grid-template-columns: minmax(0, 1fr); } .gloss > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } } /* ---- Title-bar search results ---- */ .search-wrap { position: relative; width: 100%; } .sresults { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(460px, 86vw); max-height: min(70vh, 560px); overflow: auto; padding: 8px; border-radius: 16px; background: rgba(var(--panel), 0.98); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(var(--shade), 0.55); } .sr-head { padding: 8px 10px 4px; font-size: calc(10.5px * var(--fs)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .sr-row { display: grid; gap: 4px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; } .sr-row.on { background: var(--accent-soft); } .sr-top { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--fs)); } .sr-right { margin-left: auto; } .sr-text { font-size: calc(12px * var(--fs)); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sr-text mark { background: rgba(0, 117, 255, 0.35); color: var(--text); border-radius: 3px; padding: 0 1px; } .sr-empty, .sr-foot { padding: 12px 10px; font-size: calc(12.5px * var(--fs)); color: var(--muted); } .toggle button { white-space: nowrap; } /* ---- Event feed filters ---- */ .ev-layout { grid-template-columns: 340px minmax(0, 1fr); } .ev-side { display: grid; gap: 10px; min-width: 0; } .ev-side .ev-list { max-height: calc(100vh - 360px); min-height: 240px; } .ev-filters { display: grid; gap: 8px; } .ev-flabel { font-size: calc(10.5px * var(--fs)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .ev-filters .toggle { display: flex; } .ev-filters .toggle button { flex: 1; padding: 6px 6px; } .ev-n { opacity: 0.7; font-variant-numeric: tabular-nums; margin-left: 2px; } .ev-kinds { display: flex; flex-wrap: wrap; gap: 6px; } .ev-kind { border: 1px solid var(--line-2); background: rgba(var(--hi), 0.04); color: var(--text-2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: calc(11.5px * var(--fs)); font-weight: 600; cursor: pointer; } .ev-kind:hover:not(:disabled) { border-color: var(--accent); } .ev-kind.on { background: var(--accent); border-color: var(--accent); color: #fff; } .ev-kind:disabled { opacity: 0.35; cursor: default; } .ev-showing { display: flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs)); color: var(--muted); padding-top: 2px; } .link-btn { margin-left: auto; border: 0; background: none; color: var(--accent-2); font: inherit; font-weight: 700; cursor: pointer; padding: 0; } .link-btn:hover { text-decoration: underline; } @media (max-width: 1250px) { .ev-side .ev-list { max-height: 320px; } } /* ---- live test run ---- */ .run-card { margin-bottom: 20px; } .run-card .card-head { align-items: center; } .run-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; } .run-count { font-variant-numeric: tabular-nums; font-size: calc(18px * var(--fs)); font-weight: 800; } .run-count span { color: var(--muted); font-weight: 600; font-size: calc(14px * var(--fs)); } .run-meter { height: 10px; border-radius: 999px; background: rgba(var(--hi), 0.06); overflow: hidden; } .run-meter i { display: block; height: 100%; border-radius: 999px; transition: width 0.2s ease-out; } .run-flag { font-size: calc(11px * var(--fs)); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; } .run-flag.go { color: var(--accent-2); background: rgba(0, 117, 255, 0.15); } .run-flag.ok { color: var(--good-text); background: rgba(12, 163, 12, 0.15); } .run-flag.bad { color: var(--bad-text); background: rgba(208, 59, 59, 0.15); } .run-suites { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .run-suite { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink), 0.45); font-size: calc(12px * var(--fs)); color: var(--text-2); } .run-suite b { color: var(--text); font-weight: 700; } .run-suite span { font-variant-numeric: tabular-nums; color: var(--muted); } .run-suite.running { border-color: var(--accent); } .run-suite.done { border-color: rgba(12, 163, 12, 0.55); } .run-suite.failed, .run-suite.stopped { border-color: rgba(208, 59, 59, 0.55); } .run-feed { max-height: 320px; overflow: auto; display: grid; gap: 4px; padding-right: 4px; } .run-case { display: grid; grid-template-columns: 52px 72px minmax(90px, 140px) minmax(80px, 1fr) auto; gap: 10px; align-items: center; padding: 5px 10px; border-radius: 8px; font-family: var(--mono); font-size: calc(12px * var(--fs)); } .run-case.latest { animation: run-in 0.18s ease-out; } .run-case.pass { background: rgba(12, 163, 12, 0.1); } .run-case.fail { background: rgba(208, 59, 59, 0.14); } .run-case .mark { font-weight: 800; letter-spacing: 0.04em; } .run-case.pass .mark { color: var(--good-text); } .run-case.fail .mark { color: var(--bad-text); } .run-case a { color: var(--accent-2); font-weight: 700; } .run-case .who, .run-case .cat, .run-case .set { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .run-wait { padding: 12px; color: var(--muted); font-size: calc(13px * var(--fs)); } .run-tail { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(var(--shade), 0.25); color: var(--muted); font-family: var(--mono); font-size: calc(11px * var(--fs)); white-space: pre-wrap; word-break: break-word; } @keyframes run-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } @media (max-width: 900px) { .run-case { grid-template-columns: 52px 72px 1fr; } .run-case .cat, .run-case .set { display: none; } } /* ---- event run and event add ---- */ .desk-card { margin-bottom: 20px; } .desk-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; } .desk-actions .btn { white-space: nowrap; } .desk-run { margin-top: 14px; display: grid; gap: 8px; } .desk-meter { height: 6px; border-radius: 99px; background: rgba(var(--hi), 0.08); overflow: hidden; } .desk-meter span { display: block; height: 100%; background: var(--accent); } .desk-feed { display: grid; gap: 6px; max-height: 240px; overflow: auto; } .desk-ev { display: grid; grid-template-columns: 64px 110px 1fr; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: rgba(var(--ink), 0.4); font-size: calc(13px * var(--fs)); } .desk-ev b { font-variant-numeric: tabular-nums; } .desk-ev .out { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: calc(11px * var(--fs)); } .desk-ev .sum { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .desk-chat { margin-top: 14px; display: grid; gap: 10px; } .desk-log { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding: 4px; } .desk-bubble { max-width: 78%; padding: 8px 12px; border-radius: 12px; line-height: 1.45; font-size: calc(13.5px * var(--fs)); } .desk-bubble.user { margin-left: auto; background: var(--accent); color: #fff; } .desk-bubble.tower { background: rgba(var(--ink), 0.65); border: 1px solid var(--line); } .desk-bubble button { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent-2); font-weight: 700; cursor: pointer; } .desk-compose { display: flex; gap: 8px; align-items: flex-end; } .desk-compose textarea { flex: 1; resize: vertical; min-height: 64px; max-height: 180px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.65); color: var(--text); font: inherit; line-height: 1.45; } /* ---- Event desk: thinking state ---- */ .desk-bubble.thinking { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; color: var(--text-2); } .desk-bubble.thinking small { grid-column: 1 / -1; color: var(--muted); font-size: calc(11.5px * var(--fs)); } .dots { display: inline-flex; gap: 4px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); opacity: 0.35; animation: blink 1.2s infinite ease-in-out; } .dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; } @keyframes blink { 0%, 80%, 100% { opacity: 0.35; } 40% { opacity: 1; } } .btn .spin { display: inline-flex; } .btn .spin svg { width: 13px; height: 13px; animation: spin 0.8s linear infinite; } @media (prefers-reduced-motion: reduce) { .dots i, .btn .spin svg { animation: none; opacity: 1; } } /* ---- Add events: the composer ---- */ .ask-page { max-width: 860px; margin: 0 auto; display: grid; gap: 24px; } .ask { display: grid; gap: 18px; padding-top: 12px; } .ask-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 24px 0 8px; } .ask-orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, #6fb1ff 0%, #0075ff 45%, #4318ff 100%); box-shadow: 0 10px 40px rgba(0, 117, 255, 0.45), inset 0 -6px 14px rgba(20, 0, 90, 0.35); } .ask-orb svg { width: 26px; height: 26px; } .ask-hero h2 { margin: 8px 0 0; font-size: calc(30px * var(--fs)); font-weight: 800; letter-spacing: -0.01em; } .ask-hero p { margin: 0; max-width: 560px; color: var(--text-2); font-size: calc(14.5px * var(--fs)); } .ask-log { display: grid; gap: 10px; max-height: 46vh; overflow: auto; padding: 6px 4px; } .ask-box { border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(var(--panel-hi), 0.95), rgba(var(--panel), 0.95)); box-shadow: 0 18px 44px rgba(var(--shade), 0.35); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .ask-box:focus-within { border-color: var(--accent); box-shadow: 0 18px 44px rgba(var(--shade), 0.35), 0 0 0 3px var(--accent-soft); } .ask-box.listening { border-color: var(--bad-text); box-shadow: 0 18px 44px rgba(var(--shade), 0.35), 0 0 0 3px rgba(255, 122, 122, 0.18); } .ask-input { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px 20px; } .ask-spark { color: var(--accent-2); padding-top: 3px; } .ask-spark svg { width: 18px; height: 18px; } .ask-input textarea { flex: 1; min-height: 48px; max-height: 220px; resize: none; overflow-y: auto; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: calc(15px * var(--fs)); line-height: 1.5; padding: 0; } .ask-input textarea::placeholder { color: var(--muted); } .ask-send { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: #fff; } .ask-send:hover:not(:disabled) { background: var(--accent-2); } .ask-send:disabled { background: var(--card-hi); color: var(--muted); cursor: default; } .ask-send svg { width: 18px; height: 18px; } .ask-send .spin svg { animation: spin 0.8s linear infinite; } .ask-tools { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--line); } .ask-tool { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-size: calc(13px * var(--fs)); font-weight: 600; cursor: pointer; } .ask-tool svg { width: 15px; height: 15px; } .ask-tool:hover:not(:disabled) { background: rgba(var(--hi), 0.05); color: var(--text); } .ask-tool:disabled { opacity: 0.45; cursor: default; } .ask-tool.on { color: var(--bad-text); background: rgba(255, 122, 122, 0.1); } .ask-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; } .ask-hint { margin-left: auto; color: var(--muted); font-size: calc(11.5px * var(--fs)); padding-right: 6px; } .ask-label { font-size: calc(11px * var(--fs)); letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin-bottom: 10px; } .ask-chips { display: flex; flex-wrap: wrap; gap: 10px; } .ask-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line); background: rgba(var(--panel), 0.8); color: var(--text-2); font-size: calc(13.5px * var(--fs)); font-weight: 600; } .ask-chip svg { width: 15px; height: 15px; color: var(--accent-2); } .ask-chip:hover { border-color: var(--accent); color: var(--text); } .link { color: var(--accent-2); font-weight: 700; } .link:hover { text-decoration: underline; } @media (max-width: 640px) { .ask-hero h2 { font-size: calc(24px * var(--fs)); } .ask-hint { display: none; } .desk-ev { grid-template-columns: 56px 1fr; } .desk-ev .sum { grid-column: 1 / -1; } } @media (prefers-reduced-motion: reduce) { .ask-box { transition: none; } .ask-send .spin svg { animation: none; } } /* ---------- light theme (Settings → Theme) ---------- */ :root[data-theme="light"] { color-scheme: light; --bg: #eef2fa; --bg-2: #e3e9f6; --card: #ffffff; --card-hi: #e6edfb; --line: rgba(15, 23, 57, 0.1); --line-2: rgba(15, 23, 57, 0.18); --text: #0d1430; --text-2: #36415f; --muted: #5f6b8a; --accent: #0062d6; --accent-2: #0a6cf0; --accent-soft: rgba(0, 98, 214, 0.12); --good-text: #0b7a3a; --bad-text: #c02626; --ink: 232, 237, 248; --panel: 255, 255, 255; --panel-hi: 244, 247, 253; --hi: 15, 23, 57; --shade: 70, 84, 120; } :root[data-theme="light"] body { background: radial-gradient(1200px 700px at 85% -10%, rgba(0, 117, 255, 0.1), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(67, 24, 255, 0.07), transparent 60%), var(--bg); } :root[data-theme="light"] .side { background: linear-gradient(160deg, #ffffff, #f4f7fd); } :root[data-theme="light"] .card { box-shadow: 0 12px 30px rgba(70, 84, 120, 0.12); } :root[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 24px rgba(70, 84, 120, 0.08); } :root[data-theme="light"] .topbar.scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 12px 30px rgba(70, 84, 120, 0.16); } :root[data-theme="light"] .hero { background: radial-gradient(260px 220px at 78% 42%, rgba(80, 140, 255, 0.35), transparent 65%), radial-gradient(180px 160px at 70% 60%, rgba(120, 60, 255, 0.28), transparent 70%), linear-gradient(127deg, #ffffff 25%, #e6ecfb 100%); } /* ---------- text size and motion (Settings) ---------- */ :root[data-size="small"] { --fs: 0.9; } :root[data-size="large"] { --fs: 1.14; } :root[data-size="xlarge"] { --fs: 1.28; } :root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; } /* ---------- Add events: recording and notes ---------- */ .ask-box.recording { border-color: var(--accent); box-shadow: 0 18px 44px rgba(var(--shade), 0.35), 0 0 0 3px var(--accent-soft); } .ask-rec { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; min-height: 76px; } .ask-round { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center; background: rgba(var(--hi), 0.04); color: var(--text-2); } .ask-round:hover:not(:disabled) { color: var(--text); border-color: var(--text-2); } .ask-round:disabled { opacity: 0.4; cursor: default; } .ask-round svg { width: 16px; height: 16px; } .ask-wave { flex: 1; height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; overflow: hidden; } .ask-wave i { flex: 1; min-width: 2px; max-width: 5px; border-radius: 3px; background: var(--accent-2); transition: height 70ms linear; } .ask-wave.still i { background: var(--muted); opacity: 0.5; } .ask-clock { flex: none; min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: calc(13px * var(--fs)); font-weight: 600; } .ask-send svg[viewBox] { stroke-width: 2.4; } .ask-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(var(--panel), 0.85); color: var(--text-2); font-size: calc(13.5px * var(--fs)); } .ask-note > svg { width: 16px; height: 16px; color: var(--warn); flex: none; } .ask-note > span { flex: 1 1 260px; } .ask-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: grid; } .ask-x svg { width: 14px; height: 14px; } @media (prefers-reduced-motion: reduce) { .ask-wave i { transition: none; } } /* ---------- Settings ---------- */ .set-page { max-width: 860px; display: grid; gap: 20px; } .set-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); } .set-row:first-of-type { border-top: 0; padding-top: 4px; } .set-label { display: grid; gap: 2px; } .set-label b { font-size: calc(14px * var(--fs)); } .set-label span { color: var(--muted); font-size: calc(12.5px * var(--fs)); line-height: 1.45; } .set-control { min-width: 0; } .set-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .set-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: calc(12.5px * var(--fs)); font-weight: 700; background: rgba(var(--hi), 0.06); color: var(--text-2); } .set-pill svg { width: 13px; height: 13px; } .set-pill.good { color: var(--good-text); } .set-pill.bad { color: var(--bad-text); } .set-pill.warn { color: var(--warn); } .set-note { margin: 10px 0 0; color: var(--text-2); font-size: calc(13px * var(--fs)); } .set-foot { display: flex; justify-content: flex-end; } @media (max-width: 640px) { .set-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } } /* ---------- dropdowns (components/Select.jsx) ---------- */ .sel { position: relative; width: 100%; max-width: 440px; } .sel-btn { width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(var(--panel-hi), 0.95), rgba(var(--panel), 0.95)); color: var(--text); font: inherit; font-size: calc(14px * var(--fs)); font-weight: 600; box-shadow: 0 1px 0 rgba(var(--hi), 0.05) inset, 0 6px 16px rgba(var(--shade), 0.18); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .sel-btn:hover { border-color: rgba(var(--hi), 0.32); } .sel-btn:focus-visible, .sel.open .sel-btn { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .sel-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sel-ph { color: var(--muted); font-weight: 500; } .sel-btn .sel-hint { flex: none; color: var(--muted); font-weight: 500; font-size: calc(12.5px * var(--fs)); } .sel-chev { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(var(--hi), 0.07); color: var(--text-2); } .sel-chev svg { width: 14px; height: 14px; transition: transform 0.15s ease; } .sel.open .sel-chev svg { transform: rotate(180deg); } .sel-sm { width: auto; } .sel-sm .sel-btn { padding: 7px 10px 7px 12px; border-radius: 10px; font-size: calc(12.5px * var(--fs)); gap: 8px; box-shadow: none; } .sel-sm .sel-chev { width: 18px; height: 18px; border-radius: 6px; } .sel-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(460px, 92vw); padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 22px 50px rgba(var(--shade), 0.45), 0 2px 0 rgba(var(--hi), 0.04) inset; } .sel-pop.up { top: auto; bottom: calc(100% + 6px); } .sel-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 4px; border-radius: 10px; background: rgba(var(--ink), 0.7); border: 1px solid var(--line); color: var(--muted); } .sel-search svg { width: 14px; height: 14px; flex: none; } .sel-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: calc(13.5px * var(--fs)); } .sel-search:focus-within { border-color: var(--accent); } .sel-list { max-height: 300px; overflow-y: auto; outline: 0; display: grid; gap: 1px; overscroll-behavior: contain; } .sel-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: calc(13.5px * var(--fs)); font-weight: 600; } .sel-opt.active { background: rgba(var(--hi), 0.07); color: var(--text); } .sel-opt.on { color: var(--text); } .sel-opt.on .sel-check { color: var(--accent-2); } .sel-check { display: grid; place-items: center; } .sel-check svg { width: 14px; height: 14px; stroke-width: 2.6; } .sel-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sel-opt .sel-hint { color: var(--muted); font-weight: 500; font-size: calc(12px * var(--fs)); white-space: nowrap; font-variant-numeric: tabular-nums; } .sel-empty { padding: 12px; color: var(--muted); font-size: calc(13px * var(--fs)); text-align: center; } :root[data-theme="light"] .sel-opt.active { background: var(--accent-soft); } @media (prefers-reduced-motion: reduce) { .sel-chev svg, .sel-btn { transition: none; } } /* Event feed: Feed | Results tabs, and the Results event page's two-column effect table. */ .ev-tabs { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; } .ev-tabs .note { margin: 0; } .cmp.cmp2 { grid-template-columns: 170px 1fr; } @media (max-width: 700px) { .cmp.cmp2 { grid-template-columns: 110px 1fr; } } /* ---------- Tests: summary PDF download ---------- */ .dl-card { margin-top: 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } .dl-doc { flex: none; width: 64px; height: 78px; border-radius: 10px; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, rgba(var(--panel-hi), 1), rgba(var(--panel), 1)); border: 1px solid var(--line-2); color: var(--accent-2); } .dl-doc svg { width: 26px; height: 26px; margin-top: -10px; } .dl-doc span { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 5px; background: var(--bad); color: #fff; font-size: calc(10px * var(--fs)); font-weight: 800; letter-spacing: 0.06em; } .dl-body { flex: 1 1 320px; min-width: 0; } .dl-body h3 { margin: 0; } .dl-points { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: calc(13px * var(--fs)); } .dl-points li { display: inline-flex; align-items: center; gap: 6px; } .dl-points svg { width: 13px; height: 13px; color: var(--good-text); } .dl-btn { flex: none; padding: 11px 18px; font-size: calc(13.5px * var(--fs)); border-radius: 12px; } .dl-btn svg { width: 15px; height: 15px; } /* Event center: export buttons, right of the Results | Feed tabs. */ .ev-export { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ev-export .ev-flabel { margin: 0 4px 0 0; } @media (max-width: 700px) { .ev-export { margin-left: 0; width: 100%; } } /* ---------- Overview: event figures only (three tiles, hero + reader card) ---------- */ .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-hero.two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } @media (max-width: 1250px) { .g-hero.two .hero { grid-column: auto; } } @media (max-width: 900px) { .g3, .g-hero.two { grid-template-columns: minmax(0, 1fr); } } /* ---------- Reset confirmation ---------- */ .modal-back { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(var(--ink), 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); } .modal { width: min(480px, 100%); padding: 24px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 30px 70px rgba(var(--shade), 0.5); } .modal h3 { margin: 12px 0 6px; font-size: calc(18px * var(--fs)); } .modal .sub { margin: 0; color: var(--text-2); } .modal-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(208, 59, 59, 0.15); color: var(--bad-text); } .modal-icon svg { width: 20px; height: 20px; } .modal-list { margin: 8px 0 12px; padding-left: 20px; color: var(--text); font-size: calc(13.5px * var(--fs)); line-height: 1.55; } .modal .note { margin: 0 0 16px; color: var(--muted); font-size: calc(12.5px * var(--fs)); } .modal-label { display: block; margin-bottom: 6px; font-size: calc(12.5px * var(--fs)); font-weight: 700; color: var(--text-2); } .modal-input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--ink), 0.65); color: var(--text); font: inherit; font-family: var(--mono); letter-spacing: 0.12em; } .modal-input:focus { outline: 0; border-color: var(--bad); box-shadow: 0 0 0 3px rgba(208, 59, 59, 0.2); } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; } .modal-actions .btn { padding: 9px 14px; } /* ---------- Loading: skeletons, the loader, the orb graph cover ---------- */ .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .sk { display: block; flex: none; max-width: 100%; background: linear-gradient(90deg, rgba(var(--hi), 0.06) 0%, rgba(var(--hi), 0.13) 40%, rgba(var(--hi), 0.06) 80%); background-size: 300% 100%; animation: sk-shimmer 1.6s ease-in-out infinite; } @keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } } .sk-lines { display: grid; gap: 10px; width: 100%; } .sk-col { display: grid; gap: 10px; } .sk-topbar { position: static; display: flex; justify-content: space-between; align-items: center; gap: 20px; } .sk-tile { display: flex; justify-content: space-between; align-items: flex-start; min-height: 126px; } .sk-card { display: grid; gap: 16px; align-content: start; min-height: 300px; } .sk-center { justify-items: center; align-content: center; } .sk-page { animation: sk-in 0.3s ease both; } @keyframes sk-in { from { opacity: 0; } to { opacity: 1; } } .loader { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; } .loader b { margin-top: 10px; font-size: calc(15px * var(--fs)); } .loader-detail { color: var(--muted); font-size: calc(12.5px * var(--fs)); max-width: 320px; } .loader-ring { width: 46px; height: 46px; border-radius: 50%; position: relative; background: conic-gradient(from 0deg, transparent 0 25%, var(--accent-2) 75%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: loader-spin 1s linear infinite; } .loader-bar { width: 160px; height: 3px; margin-top: 10px; border-radius: 99px; overflow: hidden; background: rgba(var(--hi), 0.08); } .loader-bar i { display: block; width: 40%; height: 100%; border-radius: 99px; background: var(--accent-2); animation: loader-slide 1.3s ease-in-out infinite; } @keyframes loader-spin { to { transform: rotate(360deg); } } @keyframes loader-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } } .orb-wrap { position: relative; height: min(72vh, 720px); border-radius: 14px; overflow: hidden; background: #0b1437; } .orb-wrap iframe { width: 100%; height: 100%; border: 0; display: block; transition: opacity 0.4s ease; } /* A refreshed graph loads behind the shown one, then fades in when it is ready. */ .orb-wrap iframe { position: absolute; inset: 0; } .orb-wrap iframe.orb-next { opacity: 0; pointer-events: none; } .orb-wrap.loading iframe { opacity: 0; } .orb-cover { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: radial-gradient(500px 300px at 50% 45%, rgba(0, 117, 255, 0.14), transparent 70%), #0b1437; } .orb-cover .loader-detail { color: #93a1c4; } .orb-cover .loader-bar { background: rgba(255, 255, 255, 0.08); } @media (prefers-reduced-motion: reduce) { .sk, .loader-ring, .loader-bar i, .sk-page { animation: none; } .orb-wrap iframe { transition: none; } } :root[data-motion="reduce"] .sk, :root[data-motion="reduce"] .loader-ring, :root[data-motion="reduce"] .loader-bar i { animation: none; } /* ---------- Sidebar: Title Case in English (other languages keep their own capitalisation) ---------- */ :root[lang="en"] .nav a { text-transform: capitalize; } /* Tabs and filter chips: the same, so "Failed only" reads "Failed Only". */ :root[lang="en"] .toggle button, :root[lang="en"] .ev-kind { text-transform: capitalize; } /* ---------- Export menu (one button, a menu of formats) ---------- */ .xm { position: relative; } .xm .btn { gap: 7px; } .xm-chev { display: inline-grid; margin-left: 2px; color: var(--muted); } .xm-chev svg { width: 12px; height: 12px; transition: transform 0.15s ease; } .xm.open .xm-chev svg { transform: rotate(180deg); } .xm-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 300px; padding: 6px; outline: 0; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 22px 50px rgba(var(--shade), 0.45); } .xm-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; } .xm-item.active { background: rgba(var(--hi), 0.07); } :root[data-theme="light"] .xm-item.active { background: var(--accent-soft); } .xm-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); } .xm-ico svg { width: 14px; height: 14px; } .xm-text { display: grid; gap: 2px; min-width: 0; } .xm-text b { font-size: calc(13px * var(--fs)); color: var(--text); } .xm-text small { font-size: calc(11.5px * var(--fs)); color: var(--muted); line-height: 1.4; } @media (prefers-reduced-motion: reduce) { .xm-chev svg { transition: none; } } /* Overview: customer promise impact. */ .promise .pr-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; } .promise .pr-big { font-size: calc(28px * var(--fs)); font-weight: 800; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; } .promise .pr-big small { font-size: calc(13px * var(--fs)); font-weight: 600; color: var(--text-2); } .promise .pr-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(var(--hi), .06); } .promise .pr-bar span { min-width: 4px; } .promise .pr-legend { display: grid; gap: 6px; margin-top: 12px; font-size: calc(13px * var(--fs)); } .promise .pr-legend div { display: grid; grid-template-columns: 12px 1fr auto 90px; align-items: center; gap: 8px; color: var(--text-2); } .promise .pr-legend i { width: 12px; height: 12px; border-radius: 3px; } .promise .pr-legend b { color: var(--text); font-variant-numeric: tabular-nums; } .promise .pr-legend .note { text-align: right; } .promise .pr-cover { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(var(--hi), .04); border: 1px solid var(--line); font-size: calc(13px * var(--fs)); color: var(--text-2); } .promise .pr-list { display: grid; gap: 6px; } .promise .pr-row { all: unset; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: calc(12.5px * var(--fs)); color: var(--text-2); } .promise .pr-row:hover { border-color: var(--line-2); background: rgba(var(--hi), .03); } .promise .pr-row:focus-visible { outline: 2px solid var(--accent); } .promise .pr-row b { color: var(--text); } .promise .pr-row .late { color: var(--bad-text); font-weight: 600; } .promise .pr-row .ok { color: var(--good-text); font-weight: 600; } .promise .pr-row .bad { color: var(--bad-text); font-weight: 600; } .promise .tier { padding: 2px 8px; border-radius: 99px; font-size: calc(11px * var(--fs)); font-weight: 700; background: rgba(var(--hi), .06); color: var(--text-2); } .promise .tier.t-platinum { color: #dfe6ff; background: rgba(160, 175, 255, .16); } .promise .tier.t-gold { color: #ffd27a; background: rgba(255, 196, 80, .14); } /* Event Center: the Escalated tab. */ .esc-stats { display: grid; gap: 14px; align-content: center; } .esc-big { font-size: calc(30px * var(--fs)); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; } .esc-big small { font-size: calc(14px * var(--fs)); color: var(--text-2); font-weight: 600; } .esc-key { display: grid; gap: 10px; margin: 0; font-size: calc(12.5px * var(--fs)); } .esc-key dt { font-weight: 700; color: var(--text); } .esc-key dd { margin: 2px 0 0; color: var(--text-2); } .esc-list { display: grid; gap: 14px; } .esc-card { border-left: 3px solid var(--c); } .esc-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .esc-card header > div:first-child { display: flex; align-items: baseline; gap: 10px; } .esc-tags { display: flex; align-items: center; gap: 10px; } .esc-why { padding: 3px 10px; border-radius: 99px; font-size: calc(11.5px * var(--fs)); font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--c) 22%, transparent); } .esc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } .esc-grid .section-title { margin: 6px 0 8px; } .esc-reason { margin: 0 0 6px; color: var(--text-2); } .esc-q { margin: 0; padding-left: 18px; color: var(--text); } .esc-q li { margin-bottom: 4px; } .esc-inc { display: grid; gap: 6px; margin-bottom: 8px; } .esc-card footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; } /* Tests: a failed case in the list shows its first difference. */ .ev-item .case-why { margin-top: 6px; color: var(--bad-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* Knowledge graph: one graph per view, stacked; only the chosen one shows (the others stay loaded, paused). */ .orb-stack { position: relative; height: clamp(380px, calc(100vh - 260px), 820px); } /* grows and shrinks with the window */ .orb-stack > .orb-wrap { position: absolute; inset: 0; height: auto; } .orb-wrap.orb-hidden { visibility: hidden; pointer-events: none; } /* Event Center paging: show 5, 25, 50 or all, with previous / next. */ .pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .pager .toggle button { padding: 5px 10px; } .pager-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; } .pager-nav .btn { min-width: 34px; justify-content: center; padding: 6px 10px; } /* ---------- Overview hero: what this is, how well it works, and the demo button ---------- */ .hero2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; padding: 30px 32px; } .hero2-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(var(--hi), 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--hi), 0.045) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 30%, transparent 75%); } .hero2-bg::after { content: ""; position: absolute; width: 520px; height: 520px; left: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); } .hero2-main, .hero2-metrics { position: relative; } .hero2-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: calc(11.5px * var(--fs)); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); } .hero2 h1 { margin: 12px 0 10px; font-size: calc(36px * var(--fs)); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; } .hero2 p { margin: 0; max-width: 62ch; color: var(--text-2); font-size: calc(15px * var(--fs)); line-height: 1.6; } .hero2-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; } .hero2-run { padding: 11px 18px; font-size: calc(14px * var(--fs)); box-shadow: 0 8px 24px -8px var(--accent); } .hero2-meter { margin-top: 18px; max-width: 520px; } .hero2-metrics { display: grid; gap: 12px; align-content: center; } .metric { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--ink), 0.45); } .metric-v { font-family: var(--mono); font-size: calc(32px * var(--fs)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; } .metric-k { margin-top: 4px; color: var(--text-2); font-size: calc(13px * var(--fs)); } .metric-s { margin-top: 2px; color: var(--muted); font-size: calc(12px * var(--fs)); font-family: var(--mono); } @media (max-width: 1100px) { .hero2 { grid-template-columns: 1fr; } .hero2-metrics { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } } /* Status light: still when idle; a slow pulse only while a run is live. */ .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; } .live-dot.on { background: var(--good-text); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: live-pulse 1.6s ease-out infinite; } @keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } } .live-title { display: inline-flex; align-items: center; gap: 10px; } .run-meter { height: 4px; border-radius: 4px; background: rgba(var(--hi), 0.08); overflow: hidden; } .run-meter span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s ease; } .spin-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(var(--hi), 0.15); border-top-color: var(--accent-2); display: inline-block; flex: none; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ---------- Impact map ---------- */ .g-map { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } @media (max-width: 1100px) { .g-map { grid-template-columns: 1fr; } } .map-wrap { position: relative; } .impact-map { width: 100%; height: auto; display: block; } /* Land set apart from the card: a darker well behind the map, brighter land, a clear outline. */ .map-wrap { padding: 10px 12px 4px; border-radius: 14px; background: rgba(var(--ink), 0.55); border: 1px solid var(--line); } .map-land { fill: rgba(var(--hi), 0.11); } .map-outline { fill: none; stroke: rgba(var(--hi), 0.42); stroke-width: 1.1; stroke-linejoin: round; } .map-borders { fill: none; stroke: rgba(var(--hi), 0.22); stroke-width: 0.7; } .map-route { fill: none; stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; stroke-dasharray: 1; stroke-dashoffset: 1; animation: route-draw 0.9s ease-out forwards; } .map-route.r-supply { stroke: var(--s4); } .map-route.r-dealer { stroke: var(--accent-2); } .map-route.r-transfer { stroke: var(--s5); stroke-dasharray: 0.02 0.02; } @keyframes route-draw { to { stroke-dashoffset: 0; } } .map-dealer { fill: rgba(var(--hi), 0.5); } .map-dealer.on { fill: var(--accent-2); } .map-supplier { fill: var(--s4); opacity: 0.55; } .map-supplier.on { opacity: 1; } /* Suppliers and dealers are small: a larger invisible circle takes the click or tap. */ .map-pick { cursor: pointer; outline: none; } .map-hit { fill: transparent; } .map-pick:focus-visible .map-hit { stroke: var(--accent-2); stroke-width: 1px; } .map-label-picked { fill: var(--text); pointer-events: none; } .map-plant-ring { fill: none; stroke-width: 1.5; opacity: 0.55; } .map-plant { stroke: rgba(var(--ink), 0.9); stroke-width: 1.5; } .map-pulse { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: plant-pulse 1.4s ease-out 2; } @keyframes plant-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } } .map-label { fill: var(--text-2); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: rgba(var(--ink), 0.85); stroke-width: 3px; } .map-foot { padding: 0 2px 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; } .lg-supplier { background: var(--s4) !important; transform: rotate(45deg) scale(0.8); } .lg-dealer { background: rgba(var(--hi), 0.45) !important; border-radius: 50%; transform: scale(0.7); } /* ---------- Live activity ---------- */ .live-card { display: flex; flex-direction: column; gap: 12px; } .ticker { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; } .tick { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; animation: tick-in 0.35s ease-out; } .tick:hover { background: rgba(var(--hi), 0.04); } .tick b { font-family: var(--mono); font-size: calc(12.5px * var(--fs)); } .tick-sum { color: var(--text-2); font-size: calc(12.5px * var(--fs)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tick.reading { cursor: default; } .tick.reading .note { white-space: nowrap; } .empty-tick { cursor: default; color: var(--muted); grid-template-columns: 1fr; } @keyframes tick-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } } /* ---------- Event Center: live run timeline ---------- */ .run-timeline { margin-bottom: 16px; display: grid; gap: 12px; } .rt-rows { display: grid; gap: 6px; } .rt-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; } .rt-row:hover { border-color: var(--line-2); } .rt-id { font-family: var(--mono); font-size: calc(12.5px * var(--fs)); } .rt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; } .rt-step { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--fs)); color: var(--text-2); animation: tick-in 0.3s ease-out both; } .rt-step svg { width: 14px; height: 14px; color: var(--good-text); } .rt-step.now { color: var(--text); } .rt-wait { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(var(--hi), 0.25); } /* Settings > Motion > Reduced, or the system setting: nothing animates. */ :root[data-motion="reduce"] .live-dot.on, :root[data-motion="reduce"] .spin-dot, :root[data-motion="reduce"] .map-route, :root[data-motion="reduce"] .map-pulse, :root[data-motion="reduce"] .tick, :root[data-motion="reduce"] .rt-step { animation: none; } :root[data-motion="reduce"] .map-route { stroke-dashoffset: 0; } :root[data-motion="reduce"] .map-pulse { display: none; } @media (prefers-reduced-motion: reduce) { .live-dot.on, .spin-dot, .map-route, .map-pulse, .tick, .rt-step { animation: none; } .map-route { stroke-dashoffset: 0; } .map-pulse { display: none; } } .run-done { padding: 14px 20px; } .run-done summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; } .run-done summary::-webkit-details-marker { display: none; } .run-done .rt-open { margin-left: auto; } .run-done[open] .rt-open { visibility: hidden; } .run-done[open] .rt-rows { margin-top: 12px; } /* Impact map zoom: buttons in the corner; lines keep their width at any zoom; drag cursor when zoomed. */ .map-wrap { position: relative; } .impact-map { touch-action: pan-y; user-select: none; } .impact-map.zoomed { cursor: grab; touch-action: none; } .impact-map.zoomed:active { cursor: grabbing; } .map-land, .map-borders, .map-outline, .map-plant-ring, .map-plant, .map-pulse { vector-effect: non-scaling-stroke; } .map-zoom { position: absolute; top: 18px; right: 20px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--panel), 0.85); backdrop-filter: blur(8px); } .map-zoom button { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); } .map-zoom button svg { width: 16px; height: 16px; } .map-zoom button:hover:not(:disabled) { background: rgba(var(--hi), 0.08); color: var(--text); } .map-zoom button:disabled { opacity: 0.35; cursor: default; } .map-zoom button:focus-visible { outline: 2px solid var(--accent); } /* Company records: one button per table (they wrap on a narrow screen), and the table's search box. */ .rec-tabs { display: flex; flex-wrap: wrap; gap: 6px; } .rec-tabs button { border: 1px solid var(--line); background: rgba(var(--ink), 0.65); color: var(--text-2); padding: 7px 12px; border-radius: 10px; cursor: pointer; font-size: calc(12.5px * var(--fs)); font-weight: 600; } .rec-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; } .rec-tabs button .ev-n { margin-left: 6px; } .rec-search { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink), 0.65); color: var(--muted); } .rec-search input { border: 0; background: none; outline: none; color: var(--text); font: inherit; width: 200px; max-width: 46vw; }