/* * EngGauge AI design system. * Normative reference: docs/design/design-system.md — if the two disagree, that wins. * * Colour is never the first carrier of meaning. Scores are numeral + word + * segments; the ramp runs warm to cool, and there is no green anywhere in the * system, because green/red is the pass-fail semantic this product refuses to * teach about a person. */ :root { /* neutrals — green-grey bias, chosen to sit under the teal end of the ramp */ --ground: #EDF1F0; --surface: #FFFFFF; --surface-2: #F4F7F6; --surface-inset: #E6ECEA; --hairline: #DCE3E1; --hairline-strong: #C3CECB; --ink: #14181F; --body: #39414D; --muted: #667080; --faint: #8A94A0; --chrome: #14181F; --chrome-text: #E9EEEC; --chrome-muted: #8E9A98; --chrome-line: #2B3336; /* score ramp — warm to cool, never red/green */ --r1: #E2571F; --r1-t: #B0400F; --r1-b: #FCEDE6; --r2: #D69A16; --r2-t: #8A5F00; --r2-b: #FBF2DF; --r3: #2E9B9B; --r3-t: #0C6C6C; --r3-b: #E4F2F1; --r4: #2660C9; --r4-t: #1E4FA6; --r4-b: #E7EEFB; --accent: #2660C9; --accent-hover: #1E4FA6; --accent-tint: #E7EEFB; --on-accent: #FFFFFF; --ok: #0C6C6C; --ok-b: #E4F2F1; --warn: #8A5F00; --warn-b: #FBF2DF; --danger: #B0400F; --danger-b: #FCEDE6; --gitlab: #E24329; --anthropic: #C1622F; --font-display: ui-serif, "Iowan Old Style", "Charter", Georgia, serif; --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --sh-1: 0 1px 2px rgba(20, 24, 31, .06); --sh-2: 0 4px 16px -4px rgba(20, 24, 31, .12), 0 1px 3px rgba(20, 24, 31, .06); --sh-focus: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent); --ease: cubic-bezier(.2, .7, .3, 1); --dur-fast: 120ms; --dur: 180ms; --dur-slow: 320ms; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ground: #0E1214; --surface: #171D1F; --surface-2: #1E2528; --surface-inset: #232B2E; --hairline: #2A3336; --hairline-strong: #3A4549; --ink: #F1F5F4; --body: #C9D2D0; --muted: #94A19F; --faint: #6E7B79; --chrome: #090C0D; --chrome-line: #1E2426; --r1-t: #FF8A55; --r1-b: #3A1D10; --r2-t: #E8B44A; --r2-b: #37290A; --r3-t: #4FC3C0; --r3-b: #0F2E2E; --r4-t: #8FB4F7; --r4-b: #12233F; --accent: #8FB4F7; --accent-hover: #A8C5F9; --accent-tint: #152743; --on-accent: #0E1214; --ok: #4FC3C0; --ok-b: #0F2E2E; --warn: #E8B44A; --warn-b: #37290A; --danger: #FF8A55; --danger-b: #3A1D10; --sh-1: 0 1px 2px rgba(0, 0, 0, .5); --sh-2: 0 4px 16px -4px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .4); } } :root[data-theme="dark"] { --ground: #0E1214; --surface: #171D1F; --surface-2: #1E2528; --surface-inset: #232B2E; --hairline: #2A3336; --hairline-strong: #3A4549; --ink: #F1F5F4; --body: #C9D2D0; --muted: #94A19F; --faint: #6E7B79; --chrome: #090C0D; --chrome-line: #1E2426; --r1-t: #FF8A55; --r1-b: #3A1D10; --r2-t: #E8B44A; --r2-b: #37290A; --r3-t: #4FC3C0; --r3-b: #0F2E2E; --r4-t: #8FB4F7; --r4-b: #12233F; --accent: #8FB4F7; --accent-hover: #A8C5F9; --accent-tint: #152743; --on-accent: #0E1214; --ok: #4FC3C0; --ok-b: #0F2E2E; --warn: #E8B44A; --warn-b: #37290A; --danger: #FF8A55; --danger-b: #3A1D10; --sh-1: 0 1px 2px rgba(0, 0, 0, .5); --sh-2: 0 4px 16px -4px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .4); } /* ── base ─────────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; /* Explicit, never transparent: the host paints its own ground behind us. */ background: var(--ground); color: var(--body); font-family: var(--font-ui); font-size: 14px; line-height: 22px; -webkit-font-smoothing: antialiased; } h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; } p { margin: 0; } ul, ol { margin: 0; padding: 0; list-style: none; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; } :focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-sm); } code, pre, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } } /* ── type scale ───────────────────────────────────────────────────────── */ .t-display { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); } .t-quote { font-family: var(--font-display); font-size: 19px; line-height: 30px; font-weight: 400; color: var(--ink); } .t-h1 { font-size: 24px; line-height: 30px; font-weight: 620; letter-spacing: -.015em; color: var(--ink); } .t-h2 { font-size: 15px; line-height: 20px; font-weight: 650; color: var(--ink); } .t-eyebrow { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); } .t-body { font-size: 14px; line-height: 22px; } .t-sm { font-size: 13px; line-height: 20px; } .t-xs { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .01em; } .t-mono { font-family: var(--font-mono); font-size: 12.5px; line-height: 18px; font-weight: 500; font-variant-numeric: tabular-nums; } .t-code { font-family: var(--font-mono); font-size: 12px; line-height: 19px; font-variant-numeric: tabular-nums; } .measure { max-width: 68ch; } .muted { color: var(--muted); } .ink { color: var(--ink); } /* ── layout primitives ────────────────────────────────────────────────── */ .stack { display: flex; flex-direction: column; } .row { display: flex; align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1 1 auto; min-width: 0; } .g1 { gap: 4px; } .g2 { gap: 8px; } .g3 { gap: 12px; } .g4 { gap: 16px; } .g5 { gap: 20px; } .g6 { gap: 24px; } .g8 { gap: 32px; } /* ── chrome rail ──────────────────────────────────────────────────────── */ .rail { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 52px; padding: 0 24px; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); color: var(--chrome-text); } .rail-mark { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .02em; } .rail-mark span { color: var(--chrome-muted); } .rail-crumb { font-size: 12px; color: var(--chrome-muted); } .rail-nav { display: flex; gap: 4px; margin-left: auto; } .rail-nav button { padding: 6px 10px; font-size: 12.5px; font-weight: 500; color: var(--chrome-muted); border-radius: var(--r-sm); border-bottom: 2px solid transparent; transition: color var(--dur) var(--ease); } .rail-nav button:hover { color: var(--chrome-text); } .rail-nav button[aria-current="page"] { color: var(--chrome-text); border-bottom-color: var(--accent); } /* ── card ─────────────────────────────────────────────────────────────── */ .card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 24px; } .card-sm { padding: 20px; } .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; } /* ── chip ─────────────────────────────────────────────────────────────── */ .chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--hairline); } .chip-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; } .chip-ok { background: var(--ok-b); color: var(--ok); border-color: transparent; } .chip-warn { background: var(--warn-b); color: var(--warn); border-color: transparent; } .chip-danger { background: var(--danger-b); color: var(--danger); border-color: transparent; } .chip-s1 { background: var(--r1-b); color: var(--r1-t); border-color: transparent; } .chip-s2 { background: var(--r2-b); color: var(--r2-t); border-color: transparent; } .chip-s3 { background: var(--r3-b); color: var(--r3-t); border-color: transparent; } .chip-s4 { background: var(--r4-b); color: var(--r4-t); border-color: transparent; } /* ── button ───────────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); } .btn-compact { height: 32px; padding: 0 12px; } .btn:disabled { opacity: .45; cursor: not-allowed; } /* `--on-accent` flips with the theme: the dark palette's accent is a light blue, so white-on-accent would drop to ~2:1 there. */ .btn-primary { background: var(--accent); color: var(--on-accent); } .btn-primary:hover:not(:disabled) { background: var(--accent-hover); } .btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline-strong); } .btn-secondary:hover:not(:disabled) { background: var(--surface-2); } .btn-ghost { background: transparent; color: var(--accent); height: auto; padding: 4px 6px; } .btn-ghost:hover:not(:disabled) { background: var(--accent-tint); } .btn-danger { background: var(--surface); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); } .btn-danger:hover:not(:disabled) { background: var(--danger-b); } /* ── field ────────────────────────────────────────────────────────────── */ .field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); } .field input, .field select, .field textarea { height: 36px; padding: 0 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-sm); font-family: inherit; font-size: 13px; transition: border-color var(--dur) var(--ease); } .field textarea { height: auto; padding: 8px 10px; line-height: 20px; resize: vertical; } .field input::placeholder { color: var(--faint); } .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: var(--sh-focus); } .field-help { font-size: 12px; line-height: 16px; color: var(--muted); } .field-error { font-size: 12px; line-height: 16px; color: var(--danger); display: flex; gap: 6px; } .field[data-invalid="true"] input { border-color: var(--danger); } /* Masked credential: the word SHOW/HIDE, never a generic eye icon. */ .secret { position: relative; display: flex; } .secret input { flex: 1; font-family: var(--font-mono); padding-right: 56px; } .secret button { position: absolute; right: 4px; top: 4px; height: 28px; padding: 0 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-radius: var(--r-sm); } .secret button:hover { color: var(--ink); background: var(--surface-2); } /* ── score gauge ──────────────────────────────────────────────────────── */ .gauge { display: inline-flex; align-items: center; gap: 8px; } .gauge-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; } .gauge-seg { display: inline-flex; gap: 2px; } .gauge-seg i { width: 14px; height: 6px; border-radius: 2px; background: var(--surface-inset); } .gauge-seg i[data-on="true"] { background: var(--seg, var(--muted)); } .gauge-word { font-size: 12px; font-weight: 600; letter-spacing: .01em; } .s1 { --seg: var(--r1); color: var(--r1-t); } .s2 { --seg: var(--r2); color: var(--r2-t); } .s3 { --seg: var(--r3); color: var(--r3-t); } .s4 { --seg: var(--r4); color: var(--r4-t); } .s0 { --seg: var(--hairline-strong); color: var(--muted); } /* Overall score: proportional bands make the numeral interpretable without a legend. */ .overall { display: flex; flex-direction: column; gap: 8px; } .overall-num { font-family: var(--font-display); font-size: 56px; line-height: 56px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; } .overall-track { position: relative; display: flex; width: 320px; max-width: 100%; height: 10px; border-radius: var(--r-sm); overflow: hidden; } .overall-track div { flex: 1; } .overall-track div:nth-child(1) { background: var(--r1-b); } .overall-track div:nth-child(2) { background: var(--r2-b); } .overall-track div:nth-child(3) { background: var(--r3-b); } .overall-track div:nth-child(4) { background: var(--r4-b); } .overall-marker { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--ink); border-radius: 1px; transform: translateX(-1.5px); } .overall-bands { display: flex; width: 320px; max-width: 100%; } .overall-bands span { flex: 1; } /* ── table ────────────────────────────────────────────────────────────── */ .table-wrap { overflow-x: auto; } table.data { width: 100%; border-collapse: collapse; } table.data th { text-align: left; padding: 10px 12px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; border-bottom: 1px solid var(--hairline); white-space: nowrap; } table.data td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; } table.data tbody tr:hover { background: var(--surface-2); } table.data .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; } table.data .id { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; } /* ── recurring theme callout ──────────────────────────────────────────── */ /* The one permitted left accent bar: it marks the report's highest-priority signal. */ .theme-callout { border-left: 2px solid var(--r1); background: var(--surface-2); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; display: flex; flex-direction: column; gap: 8px; } /* ── pipeline ─────────────────────────────────────────────────────────── */ /* No spinner appears anywhere in this product. */ .step { display: flex; align-items: center; gap: 12px; padding: 9px 0; position: relative; } .step-mark { flex: none; width: 20px; display: flex; justify-content: center; } .step-mark i { display: block; width: 10px; height: 10px; border-radius: 2px; } .step[data-state="pending"] .step-mark i { border: 1px solid var(--hairline-strong); } .step[data-state="running"] .step-mark i { background: var(--r1); } .step[data-state="done"] .step-mark i { background: var(--ok); } .step[data-state="skipped"] .step-mark i { border: 1px solid var(--hairline-strong); background: linear-gradient(to bottom right, transparent 45%, var(--hairline-strong) 45%, var(--hairline-strong) 55%, transparent 55%); } .step-label { font-size: 13.5px; } .step[data-state="running"] .step-label { color: var(--ink); font-weight: 600; } .step[data-state="done"] .step-label { color: var(--body); } .step[data-state="pending"] .step-label, .step[data-state="skipped"] .step-label { color: var(--faint); } .step-detail { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); } .step[data-state="running"]::after { content: ""; position: absolute; left: 32px; right: 0; bottom: 2px; height: 2px; border-radius: 1px; background: var(--surface-inset); overflow: hidden; } .sweep { position: absolute; left: 32px; bottom: 2px; height: 2px; width: 34%; border-radius: 1px; background: var(--r1); animation: sweep 1.4s var(--ease) infinite; z-index: 1; } @keyframes sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } } /* ── lite badge ───────────────────────────────────────────────────────── */ /* A mode label, never a warning. It never appears in a colour that reads as an error. */ .lite-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--warn); background: var(--warn-b); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: var(--r-sm); } /* ── status dot ───────────────────────────────────────────────────────── */ /* Paired with a word always — shape and text carry the meaning, not hue. */ .dot { width: 7px; height: 7px; border-radius: 999px; flex: none; } .dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-danger { background: var(--danger); } .dot-off { background: var(--hairline-strong); } /* ── snippet ──────────────────────────────────────────────────────────── */ .snippet { background: var(--surface-inset); border-radius: var(--r-sm); padding: 10px 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 19px; color: var(--body); white-space: pre; } .snippet .add { color: var(--r3-t); } .snippet .del { color: var(--r1-t); } /* ── empty state ──────────────────────────────────────────────────────── */ /* Left-aligned, never centred. */ .empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 8px 0; } .empty svg { color: var(--hairline-strong); } .empty-title { font-family: var(--font-display); font-size: 19px; line-height: 30px; color: var(--ink); } .empty-body { font-size: 14px; line-height: 22px; color: var(--muted); max-width: 52ch; } /* ── goods / concerns marks ───────────────────────────────────────────── */ /* Filled square vs hollow square — not green vs amber. */ .mark { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; } .mark-good { background: var(--r3); } .mark-concern { border: 1.5px solid var(--r2); } /* ── surfaces ─────────────────────────────────────────────────────────── */ .app-shell { min-height: 100vh; } .app-body { max-width: 1440px; margin: 0 auto; padding: 28px 24px 64px; } .content { max-width: 1080px; } /* A single narrow card on an otherwise empty page reads as misplaced when it is left-weighted. The report stays left-weighted — it has a sidebar to balance against; these views do not. */ .content-center { max-width: 760px; margin-inline: auto; } .settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; } .settings-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; } .settings-nav button { text-align: left; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); } .settings-nav button:hover { background: var(--surface-2); color: var(--ink); } .settings-nav button[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; } .settings-content { max-width: 720px; display: flex; flex-direction: column; gap: 20px; } .report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; } .report-aside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; } @media (max-width: 1200px) { .report-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); } .report-aside, .settings-nav { position: static; } .settings-nav { flex-direction: row; flex-wrap: wrap; } } /* Popup: 400×600, fixed; body scrolls between a 44px header and 40px footer. */ .popup { width: 400px; height: 600px; display: flex; flex-direction: column; background: var(--ground); } .popup-head { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--chrome); color: var(--chrome-text); } .popup-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; } .popup-foot { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-top: 1px solid var(--hairline); background: var(--surface); } /* Side panel: never shrink body text below 14px to fit — collapse content instead. */ .panel { min-height: 100vh; display: flex; flex-direction: column; } .panel-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; } @media (max-width: 420px) { .panel-body { padding: 16px; } } .disclosure { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 0; } .caret { flex: none; transition: transform var(--dur) var(--ease); color: var(--faint); } .disclosure[aria-expanded="true"] .caret { transform: rotate(90deg); } .divider { height: 1px; background: var(--hairline); border: 0; margin: 0; } /* Controls used outside a — the rubric editor lays inputs out in rows, where a label above each one would triple the height of a dimension list. */ .card input[type="text"], .card input[type="number"], .card select, .card textarea { width: 100%; height: 36px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); transition: box-shadow var(--dur) var(--ease); } .card textarea { height: auto; padding: 8px 10px; line-height: 20px; resize: vertical; } .card input:focus-visible, .card select:focus-visible, .card textarea:focus-visible { box-shadow: var(--sh-focus); } .card input[type="checkbox"] { width: auto; height: auto; } /* Print. An assessment gets read in a room, on paper, as often as on a screen. The goal is the report and nothing else: no navigation, no controls that cannot be clicked, and no sidebar competing with the argument. Every link keeps its href printed after it, because a citation you cannot follow is not one. */ @media print { :root { --ground: #fff; --surface: #fff; --surface-2: #fff; } .rail, .settings-nav, .no-print, .lite-badge + button { display: none !important; } .app-shell, .app-body { display: block; background: #fff; } .report-grid { display: block; } .report-aside { position: static; margin-top: 24px; break-inside: avoid; } .card { border: 1px solid #ddd; box-shadow: none; break-inside: avoid; page-break-inside: avoid; margin-bottom: 12px; } /* Keep a dimension's heading with its evidence. */ h1, h2, h3 { break-after: avoid; page-break-after: avoid; } a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9px; color: #555; word-break: break-all; } /* Disclosures print open — a collapsed section on paper is just missing. */ .disclosure + div { display: block !important; } pre { white-space: pre-wrap; word-break: break-word; } } /* Visually hidden, still announced. Used for table-header labels on action columns, where a visible heading would be noise but an empty leaves a screen reader reading an unlabelled column. */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; } /* Footer. Sits below the scrolling body rather than fixed to the viewport: a persistent bar would steal 40px from a report that is already long. */ .app-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 20px; margin-top: 8px; border-top: 1px solid var(--hairline); } .app-foot a { color: var(--muted); } .app-foot a:hover { color: var(--accent); } /* The static help and privacy pages use the chrome rail with links, not buttons, so they need the same treatment the nav buttons get. */ .rail-nav a { display: inline-flex; align-items: center; padding: 0 10px; height: 100%; font-size: 12px; color: var(--chrome-muted); text-decoration: none; border-bottom: 2px solid transparent; } .rail-nav a:hover { color: var(--chrome-text); }