/* ========================================================================== Perf Intelligence — design tokens ========================================================================== */ :root { --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif; --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; --fs-body: 13px; --fs-caption: 11px; --fs-title: 15px; --fs-large: 22px; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --r-s: 6px; --r-m: 10px; --r-l: 14px; --ease: cubic-bezier(0.25, 0.1, 0.25, 1); --t-fast: 150ms; --t-med: 220ms; --toolbar-h: 44px; } :root, [data-theme="light"] { color-scheme: light; --bg: #ffffff; --bg-2: #f5f5f7; --bg-3: #ececf0; --surface: #ffffff; --surface-hover: rgba(0, 0, 0, 0.04); --surface-active: rgba(0, 0, 0, 0.07); --toolbar: rgba(246, 246, 248, 0.78); --text: rgba(0, 0, 0, 0.86); --text-2: rgba(0, 0, 0, 0.56); --text-3: rgba(0, 0, 0, 0.3); --hairline: rgba(0, 0, 0, 0.1); --hairline-strong: rgba(0, 0, 0, 0.16); --fill: rgba(120, 120, 128, 0.12); --fill-2: rgba(120, 120, 128, 0.2); --shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.12); --accent: #007aff; --accent-soft: rgba(0, 122, 255, 0.12); --on-accent: #ffffff; --red: #ff3b30; --orange: #ff9500; --yellow: #ffcc00; --green: #34c759; --teal: #30b0c7; --purple: #af52de; --indigo: #5856d6; --gray: #8e8e93; --yellow-text: #a37800; } [data-theme="dark"] { color-scheme: dark; --bg: #1e1e20; --bg-2: #242427; --bg-3: #2c2c30; --surface: #262629; --surface-hover: rgba(255, 255, 255, 0.05); --surface-active: rgba(255, 255, 255, 0.09); --toolbar: rgba(38, 38, 41, 0.76); --text: rgba(255, 255, 255, 0.88); --text-2: rgba(255, 255, 255, 0.56); --text-3: rgba(255, 255, 255, 0.28); --hairline: rgba(255, 255, 255, 0.09); --hairline-strong: rgba(255, 255, 255, 0.15); --fill: rgba(120, 120, 128, 0.24); --fill-2: rgba(120, 120, 128, 0.36); --shadow-pop: 0 12px 34px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.12); --accent: #0a84ff; --accent-soft: rgba(10, 132, 255, 0.2); --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --green: #30d158; --teal: #40c8e0; --purple: #bf5af2; --indigo: #5e5ce6; --gray: #98989d; --yellow-text: #ffd60a; } :root { --sev-critical: var(--red); --sev-high: var(--orange); --sev-medium: var(--yellow); --sev-low: var(--teal); } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } } /* ========================================================================== Base ========================================================================== */ * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: var(--fs-body) / 1.42 var(--font); -webkit-font-smoothing: antialiased; } body { overflow: hidden; } .app { display: flex; flex-direction: column; height: 100vh; min-width: 380px; } h1, h2, h3, p { margin: 0; } h2 { font-size: var(--fs-body); font-weight: 600; } h3 { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--sp-1); } button, input, select { font: inherit; color: inherit; } button { cursor: pointer; } button:disabled { cursor: default; opacity: 0.4; } :focus { outline: none; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-s); } .caption { font-size: var(--fs-caption); color: var(--text-2); } .muted { color: var(--text-2); } .num { font-variant-numeric: tabular-nums; } .mono { font-family: var(--mono); font-size: 12px; } .r { text-align: right; } .center { text-align: center; } .spacer { flex: 1 1 auto; } .pad { padding: var(--sp-4); } .text-bad { color: var(--red); } .text-warn { color: var(--orange); } .ellipsis { display: inline-block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; } .icon { flex: none; display: block; } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--fill-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; } /* ========================================================================== Toolbar ========================================================================== */ .toolbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); min-height: var(--toolbar-h); padding: 6px var(--sp-3); background: var(--toolbar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); } .tb-left { display: flex; align-items: center; gap: var(--sp-3); flex: 1 1 200px; min-width: 0; } .tb-right { display: flex; align-items: center; gap: 2px; flex: none; } .tb-sep { width: 1px; height: 18px; margin: 0 var(--sp-1); background: var(--hairline-strong); } .status { display: flex; align-items: center; gap: 6px; flex: none; font-weight: 500; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); transition: background var(--t-med) var(--ease); } .st-recording { background: var(--red); animation: pulse 1.6s var(--ease) infinite; } .st-connected { background: var(--green); } .st-paused { background: var(--orange); } .st-waiting, .st-navigated { background: var(--yellow); } .st-noengine, .st-disconnected, .st-invalidated { background: var(--gray); } .st-imported { background: var(--purple); } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, transparent); } 60% { box-shadow: 0 0 0 5px transparent; } } .page { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; padding-left: var(--sp-3); border-left: 1px solid var(--hairline); } .page-title { font-weight: 600; } .page-meta { color: var(--text-2); } /* Segmented control */ .segmented { display: inline-flex; align-items: center; padding: 2px; gap: 2px; background: var(--fill); border-radius: 8px; flex: none; } .segment { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); } .segment:hover { color: var(--text); } .segment[aria-selected="true"], .segment[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px var(--hairline); } [data-theme="dark"] .segment[aria-selected="true"], [data-theme="dark"] .segment[aria-checked="true"] { background: #5a5a60; } .segment-count { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 14px; text-align: center; } /* Buttons */ .icon-btn { display: inline-grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: var(--r-s); background: transparent; color: var(--text-2); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); } .icon-btn:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); } .icon-btn:active:not(:disabled) { background: var(--surface-active); } .btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: var(--fill); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background var(--t-fast) var(--ease); } .btn:hover:not(:disabled) { background: var(--fill-2); } .btn-small { height: 22px; padding: 0 8px; font-size: var(--fs-caption); } .btn-accent { background: var(--accent); color: var(--on-accent, #fff); } .btn-accent:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #000); } .btn-link { display: inline-flex; align-items: center; gap: 3px; border: 0; padding: 0; background: none; color: var(--accent); font-size: var(--fs-caption); font-weight: 500; } .btn-link:hover { text-decoration: underline; } .btn-group { display: inline-flex; align-items: center; gap: 2px; } .pill-toggle { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: transparent; color: var(--text); font-size: 12px; font-weight: 500; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); } .pill-toggle:hover:not(:disabled) { background: var(--surface-hover); } .pill-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); } .record-toggle[aria-pressed="true"] { background: transparent; border-color: var(--hairline-strong); color: var(--text); } .record-toggle.is-paused { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); } /* Inputs */ .select { height: 24px; padding: 0 22px 0 8px; border: 0; border-radius: var(--r-s); background: var(--fill) no-repeat right 6px center / 10px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-size: 4px 4px, 4px 4px; background-position: right 10px center, right 6px center; appearance: none; font-size: 12px; } .select option { background: var(--surface); color: var(--text); } .search { position: relative; display: flex; align-items: center; flex: 1 1 180px; min-width: 140px; max-width: 320px; } .search-icon { position: absolute; left: 7px; color: var(--text-2); pointer-events: none; } .search-input { width: 100%; height: 24px; padding: 0 24px 0 25px; border: 1px solid transparent; border-radius: 7px; background: var(--fill); font-size: 12px; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); } .search-input::placeholder { color: var(--text-3); } .search-input::-webkit-search-cancel-button { display: none; } .search-input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; } .search-clear { position: absolute; right: 4px; display: none; padding: 1px; border: 0; background: none; color: var(--text-2); border-radius: 50%; } .search.has-value .search-clear { display: grid; } .num-input { width: 84px; height: 24px; padding: 0 6px; border: 1px solid var(--hairline-strong); border-radius: var(--r-s); background: var(--surface); font-variant-numeric: tabular-nums; text-align: right; } .num-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } /* ========================================================================== Banners, views, cards, empty states ========================================================================== */ .banner-host:empty { display: none; } .banner { display: flex; align-items: center; gap: var(--sp-2); padding: 6px var(--sp-3); font-size: 12px; border-bottom: 1px solid var(--hairline); } .banner-info { background: var(--accent-soft); color: var(--text); } .banner-warn, .banner-error { background: color-mix(in srgb, var(--orange) 16%, transparent); } .views { flex: 1 1 auto; min-height: 0; position: relative; } .view { position: absolute; inset: 0; overflow: auto; } .view[hidden] { display: none; } .view-body { display: flex; flex-direction: column; height: 100%; } .card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-l); padding: var(--sp-4); min-width: 0; } [data-theme="dark"] .card { background: var(--bg-2); } .card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); } .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 220px; height: 100%; padding: var(--sp-6); text-align: center; color: var(--text-2); } .empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--sp-1); border-radius: var(--r-l); background: var(--fill); color: var(--text-2); } .empty-title { font-size: var(--fs-title); font-weight: 600; color: var(--text); } .empty-body { max-width: 460px; display: flex; flex-direction: column; gap: var(--sp-2); } .code { margin: var(--sp-1) 0; padding: var(--sp-3); border-radius: var(--r-m); background: var(--bg-2); border: 1px solid var(--hairline); color: var(--text); font: 12px/1.5 var(--mono); text-align: left; overflow-x: auto; } .spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: var(--fs-caption); font-weight: 500; white-space: nowrap; max-width: 100%; } .chip-tiny { height: 16px; padding: 0 6px; font-size: 10px; margin-right: 6px; } .chip-button { border: 0; cursor: pointer; } .chip-button:hover { background: var(--fill-2); color: var(--text); } .chip-gone { background: color-mix(in srgb, var(--gray) 22%, transparent); color: var(--text); } .sev-chip { color: #fff; } .sev-chip.sev-critical { background: var(--sev-critical); } .sev-chip.sev-high { background: var(--sev-high); } .sev-chip.sev-medium { background: var(--sev-medium); color: #1c1c1e; } .sev-chip.sev-low { background: var(--sev-low); } .sev-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fill-2); margin-right: 6px; vertical-align: middle; } .sev-dot.sev-critical { background: var(--sev-critical); } .sev-dot.sev-high { background: var(--sev-high); } .sev-dot.sev-medium { background: var(--sev-medium); } .sev-dot.sev-low { background: var(--sev-low); } .sev-dot.sev-none { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-strong); } .pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; flex: none; } .pill-pass { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); } .pill-warn { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); } .pill-fail { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); } .pill-no-data { background: var(--fill); color: var(--text-2); } /* ========================================================================== Overview ========================================================================== */ .overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); padding: var(--sp-3); } .card-score { grid-column: 1 / -1; display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; } .score { display: flex; align-items: center; gap: var(--sp-3); flex: none; } .score-meta { display: flex; flex-direction: column; gap: 2px; } .grade-text { font-size: var(--fs-title); } .score-ring .ring-track { stroke: var(--fill); } .score-ring .ring-value { stroke: var(--gray); transition: stroke-dasharray var(--t-med) var(--ease); } .score-ring.grade-good .ring-value { stroke: var(--green); } .score-ring.grade-needs-improvement .ring-value { stroke: var(--orange); } .score-ring.grade-poor .ring-value { stroke: var(--red); } .ring-text { fill: var(--text); font: 600 20px var(--font); font-variant-numeric: tabular-nums; } .grade-text.grade-good { color: var(--green); } .grade-text.grade-needs-improvement { color: var(--orange); } .grade-text.grade-poor { color: var(--red); } .kpis { flex: 1 1 400px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--sp-2); min-width: 0; } .kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-m); background: transparent; text-align: left; min-width: 0; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); } .kpi-link:hover { background: var(--surface-hover); border-color: var(--hairline-strong); } .kpi-value { font-size: var(--fs-large); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; } .kpi-sub { font-size: var(--fs-caption); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .kpi.tone-bad .kpi-value { color: var(--red); } .kpi.tone-warn .kpi-value { color: var(--orange); } .kpi.tone-good .kpi-value { color: var(--green); } .sev-counts { display: flex; gap: var(--sp-2); font-size: var(--fs-caption); color: var(--text-2); } .sev-count { display: inline-flex; align-items: center; gap: 3px; } .sev-count .dot { width: 6px; height: 6px; border-radius: 50%; } .sev-count.sev-critical .dot { background: var(--sev-critical); } .sev-count.sev-high .dot { background: var(--sev-high); } .sev-count.sev-medium .dot { background: var(--sev-medium); } .sev-count.sev-low .dot { background: var(--sev-low); } .card-activity { grid-column: 1 / -1; } .sparkline-wrap { display: flex; flex-direction: column; gap: 4px; } .sparkline { width: 100%; height: 48px; display: block; } .spark-line { stroke: var(--accent); stroke-width: 1.5; } .spark-area { fill: var(--accent-soft); } .budget-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); } .budget-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); } .budget-label { font-weight: 500; } .budget-bar { height: 4px; margin: 6px 0 4px; border-radius: 4px; background: var(--fill); overflow: hidden; } .budget-fill { display: block; height: 100%; border-radius: 4px; background: var(--green); transition: width var(--t-med) var(--ease); } .budget-warn .budget-fill { background: var(--orange); } .budget-fail .budget-fill { background: var(--red); } .budget-no-data .budget-fill { background: transparent; } .budget-nums { display: flex; justify-content: space-between; } .card-budgets { grid-row: span 2; } .mini-table, .data-table { width: 100%; border-collapse: collapse; table-layout: fixed; } .mini-table th { font-size: var(--fs-caption); font-weight: 500; color: var(--text-2); text-align: left; padding: 0 var(--sp-2) 6px 0; border-bottom: 1px solid var(--hairline); } .mini-table th:first-child { width: 55%; } .mini-table td { padding: 5px var(--sp-2) 5px 0; border-bottom: 1px solid var(--hairline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mini-table tr:last-child td { border-bottom: 0; } tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--surface-hover); } .method { display: inline-block; min-width: 34px; margin-right: 6px; font: 600 10px var(--mono); color: var(--text-2); } .bar-cell { position: relative; } .inline-bar { position: absolute; left: 0; top: 50%; height: 14px; transform: translateY(-50%); border-radius: 3px; background: var(--accent-soft); pointer-events: none; } .bar-cell > span:last-child { position: relative; } .data-table .bar-cell { text-align: left; padding-left: 6px; } .data-table .bar-cell .inline-bar { left: 4px; max-width: calc(100% - 8px); } .inline-bar.net-error { background: color-mix(in srgb, var(--red) 22%, transparent); } .inline-bar.net-warn { background: color-mix(in srgb, var(--orange) 22%, transparent); } .inline-bar.net-cache { background: var(--fill); } .row-error td { color: var(--red); } .row-error td .muted { color: color-mix(in srgb, var(--red) 70%, var(--text-2)); } /* ========================================================================== Filter bar + split panes (Insights, Traces) ========================================================================== */ .filterbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--bg); border-bottom: 1px solid var(--hairline); } .view-insights { display: flex; flex-direction: column; overflow: hidden; } .split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(260px, 38%) minmax(0, 1fr); } .view-traces .split { height: 100%; grid-template-columns: minmax(0, 55%) minmax(0, 1fr); } .pane { min-width: 0; min-height: 0; overflow: auto; } .pane-list { border-right: 1px solid var(--hairline); display: flex; flex-direction: column; } .pane-table { border-right: 1px solid var(--hairline); } .pane-table.full { border-right: 0; flex: 1 1 auto; } .pane-detail { background: var(--bg); } .list-status { padding: 6px var(--sp-3); border-bottom: 1px solid var(--hairline); } .insight-list { list-style: none; margin: 0; padding: var(--sp-1); } .insight-item { position: relative; display: flex; gap: var(--sp-2); padding: 7px var(--sp-2) 7px var(--sp-3); border-radius: var(--r-s); cursor: pointer; transition: background var(--t-fast) var(--ease); } .insight-item + .insight-item { margin-top: 1px; } .insight-item:hover { background: var(--surface-hover); } .insight-item[aria-selected="true"] { background: var(--accent); color: var(--on-accent, #fff); } .insight-item[aria-selected="true"] .caption, .insight-item[aria-selected="true"] .item-source, .insight-item[aria-selected="true"] .item-impact { color: rgba(255, 255, 255, 0.82); } .insight-item:focus-visible { outline-offset: -2px; } .sev-bar { position: absolute; left: 4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--fill-2); } .sev-critical > .sev-bar { background: var(--sev-critical); } .sev-high > .sev-bar { background: var(--sev-high); } .sev-medium > .sev-bar { background: var(--sev-medium); } .sev-low > .sev-bar { background: var(--sev-low); } .insight-item[aria-selected="true"] > .sev-bar { background: #fff; } .item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .item-row { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; } .item-title { flex: 1; font-weight: 500; } .item-impact { flex: none; font-size: 12px; color: var(--text-2); } .item-source { flex: 1; color: var(--text-2); font-size: 11px; } .item-meta { flex: none; } .detail { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); max-width: 900px; } .detail-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); height: 100%; min-height: 200px; color: var(--text-2); text-align: center; padding: var(--sp-4); } .detail-head { display: flex; flex-direction: column; gap: 6px; } .detail-title { font-size: var(--fs-title); font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; } .detail-source { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; } .detail-message { font-size: 13px; line-height: 1.5; } .detail-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; } .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } .block p { line-height: 1.5; } .impact strong { font-size: var(--fs-title); } .meter-wrap { display: flex; align-items: center; gap: var(--sp-2); } .meter { flex: 1; height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; max-width: 200px; } .meter-fill { display: block; height: 100%; border-radius: 6px; background: var(--green); } .meter.tone-warn .meter-fill { background: var(--orange); } .meter.tone-bad .meter-fill { background: var(--red); } .meter-label { font-weight: 600; font-size: 12px; } .evidence-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-m); overflow: hidden; } .evidence { padding: var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: 4px; } .evidence + .evidence { border-top: 1px solid var(--hairline); } .ev-row { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; } .ev-kind { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-size: 9px; font-weight: 700; background: var(--fill); color: var(--text-2); } .kind-measurement .ev-kind { background: var(--accent-soft); color: var(--accent); } .kind-budget .ev-kind { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); } .kind-correlation .ev-kind { background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple); } .ev-label { flex: 1; } .ev-value { flex: none; font-weight: 600; } .ev-compare { display: flex; align-items: center; gap: var(--sp-2); padding-left: 24px; } .ev-bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--fill); max-width: 280px; } .ev-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--green); } .ev-bar.over .ev-fill { background: var(--red); } .ev-threshold { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); opacity: 0.6; } .ev-foot { display: flex; align-items: center; gap: var(--sp-3); padding-left: 24px; } .ev-weight { display: inline-flex; align-items: center; gap: 6px; } .weight-bar { display: inline-block; width: 40px; height: 3px; border-radius: 3px; background: var(--fill); overflow: hidden; } .weight-bar > span { display: block; height: 100%; background: var(--text-2); } .kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px var(--sp-3); margin: 0; font-size: 12px; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; } .kv-tight { font-size: 11px; gap: 1px var(--sp-2); } .kv-inline { grid-template-columns: repeat(auto-fill, minmax(80px, max-content) minmax(100px, 1fr)); } .block-meta .chips { margin-top: var(--sp-2); } .link-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-m); overflow: hidden; } .link-list li + li { border-top: 1px solid var(--hairline); } .link-row { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: 6px var(--sp-3); border: 0; background: transparent; text-align: left; color: var(--text-2); } .link-row:hover { background: var(--surface-hover); } .link-title { color: var(--text); font-weight: 500; flex: none; max-width: 50%; } .link-row .muted { flex: 1; } /* ========================================================================== Data tables (Traces, Components, Network) ========================================================================== */ .data-table thead th { position: sticky; top: 0; z-index: 1; height: 26px; padding: 0 var(--sp-2); background: var(--bg-2); border-bottom: 1px solid var(--hairline); font-size: var(--fs-caption); font-weight: 500; color: var(--text-2); text-align: left; white-space: nowrap; } .view-components .data-table thead th, .view-network .data-table thead th { top: 0; } .data-table th.r { text-align: right; } .th-btn { display: inline-flex; align-items: center; gap: 3px; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; justify-content: inherit; } th.r .th-btn { justify-content: flex-end; } th.sorted { color: var(--text); } .sort-arrow { font-size: 8px; color: var(--accent); } .data-table td { height: 26px; padding: 0 var(--sp-2); border-bottom: 1px solid var(--hairline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .data-table tbody tr:hover td { background: var(--surface-hover); } .data-table tbody tr.selected td, .data-table tbody tr[aria-selected="true"] td { background: var(--accent-soft); } .data-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .data-table th:first-child { width: 30%; } .view-network .data-table th:nth-child(1) { width: 64px; } .view-network .data-table th:nth-child(2) { width: 34%; } .view-network .data-table th:nth-child(3) { width: 60px; } .view-network .data-table th:nth-child(8) { width: 84px; } .bar-col { width: 18%; } .view-traces .data-table th:nth-child(1) { width: 26%; } .view-traces .data-table th:nth-child(2) { width: 96px; } .url-cell .ellipsis { max-width: 100%; } .status { font-weight: 600; font-size: 12px; } .status-ok { color: var(--green); } .status-redirect { color: var(--teal); } .status-warn { color: var(--orange); } .status-error { color: var(--red); } .status-cache { color: var(--text-2); } /* Waterfall */ .waterfall { border: 1px solid var(--hairline); border-radius: var(--r-m); overflow: hidden; font-size: 12px; } .wf-axis, .wf-row { display: grid; grid-template-columns: minmax(120px, 36%) minmax(0, 1fr); align-items: center; } .wf-axis { height: 22px; background: var(--bg-2); border-bottom: 1px solid var(--hairline); } .wf-axis .wf-name { padding-left: var(--sp-2); } .wf-row { height: 22px; } .wf-row + .wf-row { border-top: 1px solid var(--hairline); } .wf-row:hover { background: var(--surface-hover); } .wf-name { display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: var(--sp-2); } .wf-track { position: relative; height: 100%; margin-right: var(--sp-2); } .wf-tick { position: absolute; top: 4px; transform: translateX(2px); white-space: nowrap; } /* A label this close to the right edge would be clipped (its grid line is still drawn). */ .wf-tick-clipped { visibility: hidden; } .wf-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hairline); } .wf-bar { position: absolute; top: 6px; height: 10px; border-radius: 3px; background: var(--gray); } .wf-dur { position: absolute; top: 4px; white-space: nowrap; color: var(--text-2); } .kind-dot { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--gray); } .kind-interaction.wf-bar, .kind-dot.kind-interaction { background: var(--purple); } .kind-longtask.wf-bar, .kind-dot.kind-longtask { background: var(--orange); } .kind-network.wf-bar, .kind-dot.kind-network { background: var(--accent); } .kind-render.wf-bar, .kind-dot.kind-render { background: var(--teal); } .kind-commit.wf-bar, .kind-dot.kind-commit { background: var(--green); } /* ========================================================================== Timeline ========================================================================== */ .view-timeline { overflow: hidden; } .tl-body { display: flex; flex-direction: column; height: 100%; } .trace-strip { display: flex; gap: 6px; flex: none; padding: var(--sp-2) var(--sp-3); overflow-x: auto; border-bottom: 1px solid var(--hairline); scrollbar-width: thin; } .strip-empty { padding: 3px 0; } .trace-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 240px; height: 26px; padding: 0 10px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface); font-size: 12px; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); } .trace-chip:hover { background: var(--surface-hover); } .trace-chip.selected { border-color: var(--accent); background: var(--accent-soft); } .trace-chip .sev-dot { margin: 0; } .chip-kind { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-2); } .chip-label { font-weight: 500; } .chip-stats { color: var(--text-2); font-size: 11px; white-space: nowrap; flex: none; } /* Table cell content laid out in a row: fixed-size markers, then a label that truncates. */ .cell-row { display: flex; align-items: center; min-width: 0; } .cell-row > * { flex: none; } .cell-row > .ellipsis { flex: 0 1 auto; min-width: 0; } .tl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); flex: none; padding: 6px var(--sp-3); border-bottom: 1px solid var(--hairline); } .tl-focus { min-width: 0; } .focus-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; max-width: 420px; padding: 0 4px 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-caption); font-weight: 500; } .focus-clear { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; } .focus-clear:hover { background: var(--accent-soft); } .tl-legend { display: flex; flex-wrap: wrap; gap: var(--sp-3); } .lg { display: inline-flex; align-items: center; gap: 4px; } .lg-swatch { width: 10px; height: 8px; border-radius: 2px; } .lg-interaction { background: var(--purple); } .lg-longtask { background: var(--orange); } .lg-network { background: var(--accent); } .lg-error { background: var(--red); } .lg-render { background: var(--teal); } .lg-wasted { background: repeating-linear-gradient(135deg, var(--teal) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--teal); } .tl-canvas { position: relative; flex: 1 1 auto; min-height: 160px; overflow-y: auto; overflow-x: hidden; cursor: grab; user-select: none; touch-action: none; } .tl-canvas:focus-visible { outline-offset: -2px; border-radius: 0; } .tl-canvas.panning { cursor: grabbing; } .tl-canvas.brushing { cursor: col-resize; } .tl-svg-host { width: 100%; } .tl-svg { display: block; font-family: var(--font); } .tl-svg .axis-bg { fill: var(--bg-2); } .tl-svg .axis-bg:hover { cursor: col-resize; } .tl-svg .tick { stroke: var(--text-3); } .tl-svg .grid { stroke: var(--hairline); } .tl-svg .tick-label { fill: var(--text-2); font-size: 10px; font-variant-numeric: tabular-nums; } .tl-svg .axis-hint { fill: var(--text-3); font-size: 10px; } .tl-svg .hairline { stroke: var(--hairline); } .tl-svg .lane-bg { fill: transparent; } .tl-svg .lane-bg.alt { fill: color-mix(in srgb, var(--bg-2) 55%, transparent); } .tl-svg .lane-title { fill: var(--text); font-size: 11px; font-weight: 600; } .tl-svg .lane-count { fill: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; } .tl-svg .lane-sub { fill: var(--text-2); font-size: 10px; } .tl-svg .row-label { fill: var(--text-2); font-size: 10px; font-family: var(--mono); } .tl-svg .row-label.muted { font-family: var(--font); fill: var(--text-3); } .tl-svg .row-bg { fill: var(--fill); opacity: 0.35; } .tl-svg .trace-window { fill: var(--accent-soft); opacity: 0.55; pointer-events: none; } .tl-svg .brush { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; pointer-events: none; } .tl-svg .bar { transition: opacity var(--t-fast) var(--ease); cursor: pointer; } .tl-svg .bar:hover { filter: brightness(1.12); } .tl-svg .ev-interaction { fill: var(--purple); } .tl-svg .ev-interaction.tone-warn { fill: var(--orange); } .tl-svg .ev-interaction.tone-bad { fill: var(--red); } .tl-svg .ui-marker { fill: var(--text-2); cursor: pointer; } .tl-svg .ui-marker.starts { fill: var(--accent); } .tl-svg .ev-longtask { fill: color-mix(in srgb, var(--orange) 55%, transparent); } .tl-svg .bar-blocking { fill: var(--orange); } .tl-svg .ev-network { fill: var(--accent); } .tl-svg .net-error { fill: var(--red); } .tl-svg .net-warn { fill: var(--orange); } .tl-svg .net-redirect { fill: var(--teal); } .tl-svg .net-cache { fill: var(--gray); } .tl-svg .ev-render { fill: var(--teal); } .tl-svg .ev-render.mount { fill: var(--green); } .tl-svg .ev-render.wasted { fill: url(#tl-hatch); stroke: var(--teal); stroke-width: 0.75; } .tl-svg .hatch-bg { fill: color-mix(in srgb, var(--teal) 18%, transparent); } .tl-svg .hatch-line { stroke: var(--teal); } .tl-svg .dim { opacity: 0.18; } .tl-svg .focus { opacity: 1; } .tl-svg .hl { stroke: var(--text); stroke-width: 1.5; opacity: 1; } .tl-svg .selected { stroke: var(--accent); stroke-width: 2; opacity: 1; } .tl-svg .link { fill: none; stroke: var(--accent); stroke-width: 1.25; opacity: 0.75; } .tl-svg .link-arrow { fill: var(--accent); } .tl-svg .link-origin { fill: var(--accent); } .tl-svg .ghost { fill: none; stroke: var(--text-2); stroke-dasharray: 3 2; stroke-width: 1; } .tl-svg .ghost-commit { stroke: var(--green); } .tl-tooltip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 320px; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-pop); pointer-events: none; font-size: 12px; } [data-theme="dark"] .tl-tooltip { background: #323236; } .tt-title { font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tl-inspector { flex: none; min-height: 40px; max-height: 34%; overflow: auto; padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--hairline); background: var(--bg-2); } .insp { display: flex; flex-direction: column; gap: 6px; } .insp-head { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; } .insp-title { flex: 1; font-weight: 600; } .type-pill { flex: none; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; background: var(--fill); color: var(--text-2); } .type-interaction { background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple); } .type-longtask { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); } .type-network { background: var(--accent-soft); color: var(--accent); } .type-render { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); } /* ========================================================================== Popover (budgets) ========================================================================== */ .popover { position: fixed; z-index: 50; width: 360px; max-width: calc(100vw - 16px); /* Short docked DevTools: scroll inside instead of running off the bottom. */ max-height: calc(100vh - var(--toolbar-h) - 16px); overflow: auto; padding: var(--sp-4); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-pop); animation: pop-in var(--t-med) var(--ease); } [data-theme="dark"] .popover { background: #2c2c30; } @keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } } .popover-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 4px; } .popover-head h2 { flex: 1; } .budget-form { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); } .form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--sp-3); align-items: center; } .form-row label { font-size: 12px; } .input-unit { display: inline-flex; align-items: center; gap: 4px; grid-row: span 2; } .unit { width: 16px; } .default-hint { font-size: 10px; } .form-error { color: var(--red); } .form-actions { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--hairline); } /* ========================================================================== Engine modes (v2.1): mode badge, limited banner, site access, install sheet ========================================================================== */ .mode-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 7px; border: 0; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; flex: none; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); } .mode-badge[hidden] { display: none; } .mode-badge:hover { background: var(--fill-2); color: var(--text); } .mode-badge .icon { opacity: 0.6; } .mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gray); flex: none; } .mode-app .mode-dot, .mode-dot.mode-app { background: var(--green); } .mode-injected .mode-dot, .mode-dot.mode-injected { background: var(--accent); } .mode-devtools .mode-dot, .mode-dot.mode-devtools { background: var(--orange); } .mode-badge.mode-injected { background: var(--accent-soft); color: var(--accent); } .mode-badge.mode-devtools { background: color-mix(in srgb, var(--orange) 14%, transparent); color: color-mix(in srgb, var(--orange) 70%, var(--text)); } .banner-limited { background: color-mix(in srgb, var(--orange) 9%, var(--bg)); color: var(--text); gap: var(--sp-2); padding: 5px var(--sp-2) 5px var(--sp-3); } .banner-limited > .icon { color: var(--orange); flex: none; } .banner-limited .banner-text { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .banner-limited .btn { flex: none; } .banner-actions { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); flex: none; } .banner-actions:empty { display: none; } .banner-limited.tone-error > .icon, .banner-limited.tone-error .banner-text { color: var(--red); } .banner-limited.tone-good > .icon { color: var(--green); } .banner-limited .btn:not(.btn-accent) { background: color-mix(in srgb, var(--text) 7%, transparent); } .btn:disabled { opacity: 0.5; cursor: default; } .btn-danger { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); } .btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--red) 22%, transparent); } /* Engine call-to-action empty states */ .empty-engine { gap: var(--sp-2); } .empty-icon-accent { background: var(--accent-soft); color: var(--accent); } .cta-bullets { list-style: none; margin: var(--sp-1) 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 12px; color: var(--text-2); } .cta-bullets li { display: flex; align-items: center; gap: 6px; } .cta-bullets .icon { color: var(--green); flex: none; } .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-2); } .cta-foot { max-width: 420px; } .cta-inline { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); } .access-msg { display: flex; align-items: flex-start; gap: 6px; max-width: 460px; font-size: var(--fs-caption); text-align: left; color: var(--text-2); } .access-msg .icon { flex: none; margin-top: 2px; } .access-msg.tone-error { color: var(--red); } .access-msg.tone-good { color: var(--green); } .access-msg.tone-info .icon { color: var(--accent); } /* Site settings popover */ .popover-access { width: 384px; } .access-body { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); } .access-mode { display: flex; align-items: center; gap: 8px; font-size: 13px; } .access-mode .mode-dot { width: 8px; height: 8px; } .access-origin { display: flex; align-items: center; gap: 6px; padding: 6px var(--sp-2); border-radius: var(--r-s); background: var(--fill); color: var(--text-2); font-size: 12px; min-width: 0; } .access-origin .icon { flex: none; } .access-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); } .access-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; } .access-check input { margin: 0; accent-color: var(--accent); } .access-origin .pill { flex: none; } .access-guide { align-self: flex-start; font-size: var(--fs-caption); } /* Inline informational note (e.g. production React build) */ .inline-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 6px var(--sp-3); border-bottom: 1px solid var(--hairline); background: var(--accent-soft); font-size: var(--fs-caption); color: var(--text); } .inline-note[hidden] { display: none; } .inline-note .icon { flex: none; margin-top: 2px; color: var(--accent); } /* Copy buttons */ .btn.is-copied { color: var(--green); } .score-actions { display: flex; justify-content: flex-end; margin-top: var(--sp-2); } /* Getting started guide */ .guide { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); } .guide-modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); } .guide-mode { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-m); min-width: 0; } .guide-mode.is-current { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); } .guide-mode-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .guide-mode-head h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); flex: 1; min-width: 0; } .guide-mode-head .icon { color: var(--text-2); } .guide-lines { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); } .guide-cta { margin-top: auto; padding-top: 4px; } .guide-cta .btn { max-width: 100%; } .guide-here { align-self: flex-start; } .guide-mode { position: relative; } .guide-mode .guide-here { position: absolute; top: -9px; right: 10px; background: color-mix(in srgb, var(--green) 18%, var(--surface)); } [data-theme="dark"] .guide-mode .guide-here { background: color-mix(in srgb, var(--green) 22%, #2c2c30); } .guide-privacy { display: flex; align-items: flex-start; gap: 6px; } .guide-privacy .icon { flex: none; margin-top: 2px; color: var(--green); } .guide-sub { margin: var(--sp-1) 0 0; } .guide-keys { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--sp-3); margin: 0; font-size: 12px; } .guide-keys dt { margin: 0; } .guide-keys dd { margin: 0; color: var(--text-2); } kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 4px; background: var(--fill); box-shadow: inset 0 -1px 0 var(--hairline-strong); color: var(--text); font: 600 11px var(--mono); text-align: center; } .sheet-guide { width: 680px; } /* Install sheet (macOS-style sheet dropping from the toolbar) */ .sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--toolbar-h) + 4px) var(--sp-3) var(--sp-3); background: color-mix(in srgb, #000 22%, transparent); animation: fade-in var(--t-med) var(--ease); } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } .sheet { width: 560px; max-width: 100%; max-height: 100%; overflow: auto; padding: var(--sp-4); border-radius: 0 0 var(--r-l) var(--r-l); background: var(--surface); box-shadow: var(--shadow-pop); animation: sheet-in var(--t-med) var(--ease); } [data-theme="dark"] .sheet { background: #2c2c30; } @keyframes sheet-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } } .sheet-head { display: flex; align-items: flex-start; gap: var(--sp-3); } .sheet-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--accent); flex: none; } .sheet-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sheet-titles h2 { font-size: var(--fs-title); } .steps { margin: var(--sp-4) 0 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--sp-4); } .steps > li { counter-increment: step; position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 6px; } .steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fill-2); color: var(--text); font-size: var(--fs-caption); font-weight: 600; } .steps h3 { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); } .code-wrap { position: relative; } .code-wrap .code { margin: 0; padding-right: 64px; white-space: pre-wrap; overflow-wrap: anywhere; } .copy-btn { position: absolute; top: 6px; right: 6px; background: var(--surface); box-shadow: 0 0 0 0.5px var(--hairline-strong); } [data-theme="dark"] .copy-btn { background: var(--bg-3); } .sheet-actions { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--hairline); } /* Web Vitals card */ .card-vitals { grid-column: 1 / -1; } .card-note { max-width: 60%; text-align: right; } .vitals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); } .vital { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-2) var(--sp-3) 10px; border: 1px solid var(--hairline); border-radius: var(--r-m); min-width: 0; } .vital-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 18px; } .vital-label { font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; } .vital-value { font-size: var(--fs-large); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--text-3); } .vital-good .vital-value { color: var(--green); } .vital-needs-improvement .vital-value { color: var(--orange); } .vital-poor .vital-value { color: var(--red); } .pill-vital-good { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); } .pill-vital-needs-improvement { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); } .pill-vital-poor { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); } .vital-meter { position: relative; display: flex; gap: 2px; height: 4px; margin: 2px 0; } .vital-meter .seg { height: 100%; border-radius: 2px; opacity: 0.35; } .vital-meter .seg-good { background: var(--green); } .vital-meter .seg-ni { background: var(--orange); } .vital-meter .seg-poor { background: var(--red); } .vital-none .vital-meter .seg { opacity: 0.18; } .vital-marker { position: absolute; top: -3px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 1.5px var(--surface); } [data-theme="dark"] .vital-marker { box-shadow: 0 0 0 1.5px var(--bg-2); } .vital-sub { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* "Needs engine" affordances */ .kpi.tone-na .kpi-value { color: var(--text-3); } .kpi.tone-na { cursor: help; } .budget-na { opacity: 0.7; cursor: help; } .tl-svg .needs-engine-bg { fill: none; stroke: var(--hairline-strong); stroke-dasharray: 3 3; } .tl-svg .needs-engine-text { fill: var(--text-2); font-size: 11px; } /* ========================================================================== Responsive ========================================================================== */ @media (max-width: 980px) { .vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); } .segment-label { display: none; } .seg-views .segment { padding: 0 9px; } } @media (max-width: 760px) { .vitals { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .card-note { display: none; } .toolbar { gap: 6px; } .tb-left { flex-basis: 100%; order: 0; } .tb-right { order: 1; margin-left: auto; } .seg-views { order: 2; } .page { border-left: 0; padding-left: 0; } .overview-grid { grid-template-columns: minmax(0, 1fr); padding: var(--sp-2); } .card-budgets { grid-row: auto; } .view-insights .split, .view-traces .split { display: flex; flex-direction: column; overflow: auto; height: auto; } .view-insights { overflow: auto; } .view-insights .split { overflow: visible; } .pane-list, .pane-table { border-right: 0; border-bottom: 1px solid var(--hairline); max-height: 45vh; } .pane-detail { overflow: visible; } .detail-grid { grid-template-columns: minmax(0, 1fr); } .hide-narrow { display: none; } .tl-legend { display: none; } .search { max-width: none; } .view-traces { overflow: auto; } } @media (max-width: 640px) { /* Narrow docked DevTools: the banner text gets its own line, actions wrap below it. */ .banner-limited { flex-wrap: wrap; row-gap: 6px; } .banner-limited .banner-text { flex: 1 1 0; white-space: normal; } .banner-limited .spacer { display: none; } .banner-limited .banner-actions { order: 3; flex: 1 1 100%; padding-left: 22px; } .guide-modes { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 480px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-meta { display: none; } }