UpworkAutomation / app /assets /design_system.css
ananyajoshi's picture
Deploy app: Docker Space, session-only API keys, cloud file-upload dossier
6303ae6 verified
Raw
History Blame Contribute Delete
40.4 kB
/* ============================================================
Upwork Proposal Strategist — "Spectrum" design system
INJECTABLE INTO STREAMLIT via:
st.markdown(f"<style>{Path('design_system.css').read_text()}</style>",
unsafe_allow_html=True)
REQUIRED FONTS — add this <link> (or @import) to the app head:
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap" rel="stylesheet">
Theme: tokens live under [data-theme="dark"] / [data-theme="light"].
Set data-theme on <html>. Per-step accent: override --accent-h / --accent-c /
--accent2-h on :root each render (see README + STEP_COLORS).
Streamlit widget overrides are at the BOTTOM of this file.
============================================================ */
/* ============================================================
Upwork Proposal Strategist — "Aurora" redesign v2
Premium, layered, atmospheric. Depth from ambient light,
grain, inner highlights and glow — not flat fills.
============================================================ */
:root {
--accent-h: 156;
--accent-c: 0.15;
--accent2-h: 196; /* secondary hue for gradients */
--r: 1;
--pad: 1;
--radius-xs: calc(7px * var(--r));
--radius-sm: calc(10px * var(--r));
--radius: calc(15px * var(--r));
--radius-lg: calc(22px * var(--r));
--radius-xl: calc(28px * var(--r));
--radius-pill: 999px;
--gap: calc(14px * var(--pad));
--section-gap: calc(28px * var(--pad));
--ff-display: "Space Grotesk", system-ui, sans-serif;
--ff-body: "Hanken Grotesk", system-ui, sans-serif;
--ff-mono: "JetBrains Mono", ui-monospace, monospace;
/* grain texture (very subtle) */
--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* ---------- DARK (default — shows depth best) ---------- */
[data-theme="dark"] {
--bg: oklch(0.158 0.016 270);
--bg-2: oklch(0.182 0.018 268);
--surface: oklch(0.214 0.018 268);
--surface-hi: oklch(0.246 0.020 267); /* gradient top */
--surface-2: oklch(0.236 0.019 268);
--surface-3: oklch(0.282 0.020 267);
--glass: oklch(0.214 0.018 268 / 0.66);
--border: oklch(1 0 0 / 0.09);
--border-2: oklch(1 0 0 / 0.16);
--hairline: oklch(1 0 0 / 0.07); /* inner top highlight */
--text: oklch(0.97 0.006 260);
--text-muted: oklch(0.74 0.014 262);
--text-faint: oklch(0.58 0.014 262);
--accent: oklch(0.78 0.155 var(--accent-h));
--accent-2: oklch(0.80 0.13 var(--accent2-h));
--accent-press:oklch(0.72 0.155 var(--accent-h));
--accent-fg: oklch(0.16 0.04 var(--accent-h));
--accent-soft: oklch(0.32 0.075 var(--accent-h) / 0.55);
--accent-line: oklch(0.6 0.12 var(--accent-h) / 0.5);
--accent-glow: oklch(0.78 0.155 var(--accent-h) / 0.45);
--on-soft: oklch(0.9 0.1 var(--accent-h));
--go: oklch(0.82 0.16 152); --go-soft: oklch(0.4 0.09 152 / 0.4); --go-ink: oklch(0.9 0.13 152); --go-glow: oklch(0.8 0.16 152 / 0.4);
--warn: oklch(0.85 0.15 84); --warn-soft: oklch(0.42 0.08 78 / 0.4); --warn-ink: oklch(0.9 0.12 86); --warn-glow: oklch(0.84 0.15 84 / 0.35);
--stop: oklch(0.72 0.18 26); --stop-soft: oklch(0.4 0.1 26 / 0.42); --stop-ink: oklch(0.86 0.14 28); --stop-glow: oklch(0.72 0.18 26 / 0.4);
--shadow-sm: 0 1px 2px oklch(0 0 0 / .4), 0 2px 6px oklch(0 0 0 / .3);
--shadow: 0 4px 12px oklch(0 0 0 / .4), 0 18px 44px oklch(0 0 0 / .42);
--shadow-lg: 0 8px 24px oklch(0 0 0 / .45), 0 40px 90px oklch(0 0 0 / .55);
--ring: oklch(0.78 0.155 var(--accent-h) / .45);
--grain-opacity: 0.05;
--aura-1: oklch(0.6 0.18 var(--accent-h) / 0.18);
--aura-2: oklch(0.6 0.16 var(--accent2-h) / 0.13);
--card-grad: linear-gradient(180deg, var(--surface-hi), var(--surface));
--inset-hi: inset 0 1px 0 var(--hairline);
}
/* ---------- LIGHT ---------- */
[data-theme="light"] {
--bg: oklch(0.975 0.006 260);
--bg-2: oklch(0.955 0.008 262);
--surface: oklch(1 0 0);
--surface-hi: oklch(1 0 0);
--surface-2: oklch(0.978 0.004 258);
--surface-3: oklch(0.955 0.006 258);
--glass: oklch(1 0 0 / 0.72);
--border: oklch(0.27 0.02 262 / 0.1);
--border-2: oklch(0.27 0.02 262 / 0.18);
--hairline: oklch(1 0 0 / 0.9);
--text: oklch(0.255 0.016 262);
--text-muted: oklch(0.5 0.014 262);
--text-faint: oklch(0.63 0.012 262);
--accent: oklch(0.58 0.15 var(--accent-h));
--accent-2: oklch(0.62 0.13 var(--accent2-h));
--accent-press:oklch(0.52 0.15 var(--accent-h));
--accent-fg: oklch(0.99 0.01 var(--accent-h));
--accent-soft: oklch(0.95 0.04 var(--accent-h));
--accent-line: oklch(0.82 0.08 var(--accent-h));
--accent-glow: oklch(0.58 0.15 var(--accent-h) / 0.28);
--on-soft: oklch(0.42 0.12 var(--accent-h));
--go: oklch(0.62 0.16 152); --go-soft: oklch(0.95 0.05 152); --go-ink: oklch(0.38 0.1 152); --go-glow: oklch(0.62 0.16 152 / 0.22);
--warn: oklch(0.72 0.14 78); --warn-soft: oklch(0.96 0.06 84); --warn-ink: oklch(0.48 0.11 64); --warn-glow: oklch(0.72 0.14 78 / 0.2);
--stop: oklch(0.6 0.19 26); --stop-soft: oklch(0.96 0.04 26); --stop-ink: oklch(0.47 0.16 26); --stop-glow: oklch(0.6 0.19 26 / 0.2);
--shadow-sm: 0 1px 2px oklch(0.4 0.02 262 / .06), 0 1px 3px oklch(0.4 0.02 262 / .05);
--shadow: 0 2px 6px oklch(0.4 0.02 262 / .06), 0 12px 32px oklch(0.4 0.02 262 / .09);
--shadow-lg: 0 6px 16px oklch(0.4 0.02 262 / .08), 0 30px 70px oklch(0.4 0.02 262 / .14);
--ring: oklch(0.58 0.15 var(--accent-h) / .3);
--grain-opacity: 0.035;
--aura-1: oklch(0.7 0.16 var(--accent-h) / 0.16);
--aura-2: oklch(0.7 0.14 var(--accent2-h) / 0.1);
--card-grad: var(--surface);
--inset-hi: inset 0 1px 0 oklch(1 0 0 / 0.6);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: var(--ff-body);
background: var(--bg);
color: var(--text);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-size: 15px;
line-height: 1.5;
}
/* grain overlay across everything */
body::after {
content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
background-image: var(--grain); background-size: 160px; opacity: var(--grain-opacity);
mix-blend-mode: overlay;
}
::selection { background: var(--accent-soft); color: var(--on-soft); }
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--ff-mono); }
/* ============================================================ shell */
.app { display: grid; grid-template-columns: 280px 1fr; height: 100vh; overflow: hidden; }
/* ---------- Sidebar ---------- */
.sidebar {
position: relative;
background:
linear-gradient(180deg, var(--bg-2), var(--bg));
border-right: 1px solid var(--border);
display: flex; flex-direction: column; padding: 24px 18px; gap: 22px; overflow-y: auto;
}
.sidebar::before {
content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
background: radial-gradient(80% 30% at 30% 0%, var(--aura-1), transparent 70%);
}
.sidebar > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 0; }
.brand-mark {
width: 38px; height: 38px; border-radius: 11px; flex: none;
background: linear-gradient(150deg, oklch(0.7 0.21 286), oklch(0.66 0.22 352));
display: grid; place-items: center; color: #fff;
box-shadow: 0 4px 16px oklch(0.66 0.2 320 / .5), var(--inset-hi), inset 0 -2px 6px oklch(0 0 0 / .15);
position: relative;
}
.brand-mark::after {
content: ""; position: absolute; inset: -7px; border-radius: 16px; z-index: -1;
background: conic-gradient(from 0deg, oklch(0.7 0.21 286 / .6), oklch(0.7 0.18 248 / .6), oklch(0.8 0.17 52 / .6), oklch(0.7 0.22 352 / .6), oklch(0.74 0.16 168 / .6), oklch(0.7 0.21 286 / .6));
filter: blur(9px); opacity: .7;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--ff-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--ff-mono); font-weight: 500; font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }
.rail-label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); padding: 0 8px; margin-bottom: -4px; }
.steprail { display: flex; flex-direction: column; position: relative; }
.step {
display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 13px;
padding: 11px 11px; border-radius: var(--radius-sm); cursor: pointer; position: relative;
border: 1px solid transparent; text-align: left; background: none; color: inherit; width: 100%;
--sc: oklch(0.74 var(--sc-c, 0.15) var(--sc-h, 280));
--sc-deep: oklch(0.66 var(--sc-c, 0.15) var(--sc-h2, 320));
--sc-ink: oklch(0.2 0.05 var(--sc-h, 280));
}
.step + .step { margin-top: 4px; }
.step:hover:not(.is-locked) { background: var(--surface-2); }
.step:active:not(.is-locked) { transform: translateY(.5px); }
.step.is-locked { cursor: not-allowed; opacity: .5; }
.step.is-current {
background: var(--card-grad); border-color: oklch(0.7 var(--sc-c) var(--sc-h) / .45);
box-shadow: var(--shadow-sm), var(--inset-hi), inset 3px 0 0 var(--sc), inset 0 0 30px oklch(0.7 var(--sc-c) var(--sc-h) / .1);
}
.app[data-railfill="off"] .step.is-current { background: var(--surface-2); box-shadow: none; }
.step-node {
width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600;
border: 1.5px solid var(--border-2); color: var(--text-muted);
background: var(--surface); position: relative; z-index: 1;
}
.step.is-current .step-node {
border-color: transparent; color: var(--sc-ink);
background: linear-gradient(150deg, var(--sc), var(--sc-deep));
box-shadow: 0 3px 12px oklch(0.7 var(--sc-c) var(--sc-h) / .5), 0 0 0 4px oklch(0.7 var(--sc-c) var(--sc-h) / .25), var(--inset-hi);
}
.step.is-done .step-node {
border-color: oklch(0.7 var(--sc-c) var(--sc-h) / .4); color: var(--sc);
background: oklch(0.7 var(--sc-c) var(--sc-h) / .16);
}
.step.is-locked .step-node { background: var(--surface-2); }
.step-node svg { width: 15px; height: 15px; }
.step:not(:last-child)::before {
content: ""; position: absolute; left: 25.5px; top: 41px; width: 2px; height: calc(100% - 28px);
background: var(--border-2); z-index: 0; border-radius: 2px;
}
.step.is-done:not(:last-child)::before { background: linear-gradient(oklch(0.7 var(--sc-c) var(--sc-h) / .8), var(--border-2)); }
.step-text { min-width: 0; display: flex; flex-direction: column; }
.step-name { font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.step-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.provider-chip {
display: flex; align-items: center; gap: 11px; padding: 12px 13px;
border: 1px solid var(--border); border-radius: var(--radius-sm);
background: var(--card-grad); box-shadow: var(--inset-hi); font-size: 12.5px;
}
.provider-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px var(--go-soft), 0 0 8px var(--go-glow); flex: none; }
.provider-chip b { font-weight: 600; }
.provider-chip .pc-sub { color: var(--text-faint); font-size: 11px; }
.provider-chip .pc-meta { margin-left: auto; font-family: var(--ff-mono); font-size: 10px; color: var(--text-faint); }
.theme-toggle { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.theme-toggle button {
flex: 1; border: none; background: none; cursor: pointer; padding: 7px; border-radius: var(--radius-pill);
color: var(--text-faint); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.theme-toggle button svg { width: 14px; height: 14px; }
.theme-toggle button.on { background: var(--card-grad); color: var(--text); box-shadow: var(--shadow-sm), var(--inset-hi); }
/* ============================================================ main */
.main { overflow-y: auto; position: relative; }
.main::before {
content: ""; position: fixed; inset: 0 0 0 280px; pointer-events: none; z-index: 0;
background:
radial-gradient(60% 50% at 85% -5%, var(--aura-1), transparent 60%),
radial-gradient(55% 45% at 8% 8%, var(--aura-2), transparent 55%);
}
.topbar {
position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px;
padding: 16px 44px; backdrop-filter: blur(14px) saturate(1.3);
background: var(--glass); border-bottom: 1px solid var(--border);
}
.crumb { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; flex: none; }
.crumb b { color: var(--text-muted); font-weight: 600; }
.progress-wrap { display: flex; align-items: center; gap: 11px; margin-left: 18px; }
.progress-track {
width: 168px; height: 7px; border-radius: 99px; overflow: hidden; flex: none;
background: var(--bg-2); border: 1px solid var(--border); box-shadow: inset 0 1px 2px oklch(0 0 0 / .2);
}
.progress-fill {
height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.4,1.2,.4,1);
background: linear-gradient(90deg, oklch(0.7 0.21 286), oklch(0.7 0.18 248), oklch(0.8 0.17 52), oklch(0.7 0.22 352), oklch(0.74 0.16 168));
box-shadow: 0 0 12px oklch(0.7 0.18 320 / .5);
}
.progress-label { font-size: 10.5px; letter-spacing: .08em; color: var(--text-faint); white-space: nowrap; }
.progress-label i { font-style: normal; opacity: .6; }
.topbar-spacer { flex: 1; }
.badge {
display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
padding: 7px 13px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
border: 1px solid var(--border); background: var(--card-grad); box-shadow: var(--inset-hi);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.badge.ok { color: var(--go-ink); border-color: var(--accent-line); }
.badge.ok .dot { background: var(--go); box-shadow: 0 0 8px var(--go-glow); }
.screen { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 42px 44px 100px; }
@media (prefers-reduced-motion: no-preference) { .screen { animation: rise .45s cubic-bezier(.2,.7,.3,1); } }
@keyframes rise { from { transform: translateY(12px); } }
.screen-head { margin-bottom: var(--section-gap); }
.eyebrow {
font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
padding: 5px 11px 5px 9px; border-radius: var(--radius-pill);
background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.screen-title { font-size: 33px; line-height: 1.08; letter-spacing: -.025em; }
.screen-sub { color: var(--text-muted); font-size: 15.5px; margin-top: 11px; max-width: 60ch; }
.screen-sub b { color: var(--text); font-weight: 600; }
/* ---------- Card ---------- */
.card { background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm), var(--inset-hi); transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s; }
.card + .card { margin-top: 16px; }
.card-pad { padding: calc(24px * var(--pad)); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.card-head .hint { margin-left: auto; color: var(--text-faint); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.label { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
/* ---------- Buttons ---------- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; height: 44px;
border-radius: var(--radius-sm); font-family: var(--ff-body); font-size: 14px; font-weight: 600;
cursor: pointer; border: 1px solid transparent; transition: transform .12s, filter .15s, background .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
color: var(--accent-fg); border: none;
background: linear-gradient(150deg, var(--accent), var(--accent-2));
box-shadow: 0 4px 16px var(--accent-glow), var(--inset-hi), inset 0 -2px 6px oklch(0 0 0 / .12);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--card-grad); color: var(--text); border-color: var(--border-2); box-shadow: var(--inset-hi); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn-lg { height: 52px; font-size: 15px; padding: 0 26px; border-radius: var(--radius); }
/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; }
.field-label .opt { color: var(--text-faint); font-weight: 500; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input {
width: 100%; height: 48px; padding: 0 15px; background: var(--bg-2); border: 1px solid var(--border-2);
border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: var(--ff-body);
transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: inset 0 1px 3px oklch(0 0 0 / .12);
}
.input.mono { font-family: var(--ff-mono); letter-spacing: .02em; }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--ring); }
.input::placeholder { color: var(--text-faint); }
.input-wrap .reveal { position: absolute; right: 9px; background: none; border: none; cursor: pointer; color: var(--text-faint); padding: 6px; border-radius: 7px; display: grid; place-items: center; }
.input-wrap .reveal:hover { color: var(--text); background: var(--surface-3); }
.input-wrap .reveal svg { width: 16px; height: 16px; }
.field-hint { font-size: 12px; color: var(--text-faint); }
.field-hint a { color: var(--accent); text-decoration: none; font-weight: 600; }
/* ---------- Provider grid ---------- */
.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.provider-card {
position: relative; text-align: left; cursor: pointer; overflow: hidden;
background: var(--card-grad); border: 1.5px solid var(--border); border-radius: var(--radius);
padding: 17px; display: flex; gap: 14px; align-items: flex-start;
transition: border-color .15s, transform .12s; box-shadow: var(--inset-hi);
}
.provider-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.provider-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring), 0 8px 24px var(--accent-glow), var(--inset-hi); }
.provider-card.selected::after {
content: ""; position: absolute; inset: 0; pointer-events: none;
background: radial-gradient(80% 60% at 100% 0%, var(--accent-soft), transparent 60%); opacity: .7;
}
.provider-logo {
width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
font-family: var(--ff-display); font-weight: 700; font-size: 17px;
background: var(--surface-3); color: var(--text); box-shadow: var(--inset-hi); position: relative; z-index: 1;
}
.provider-info { min-width: 0; position: relative; z-index: 1; }
.provider-info b { font-size: 14.5px; font-weight: 600; display: block; }
.provider-info span { font-size: 12px; color: var(--text-muted); }
.provider-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-xs); background: var(--surface-3); color: var(--text-muted); font-weight: 500; }
.tag.vision { background: var(--accent-soft); color: var(--on-soft); border: 1px solid var(--accent-line); }
.tag.novision { background: var(--warn-soft); color: var(--warn-ink); }
.provider-check { position: absolute; top: 13px; right: 13px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--accent-fg); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .18s; z-index: 2; box-shadow: 0 2px 8px var(--accent-glow); }
.provider-card.selected .provider-check { opacity: 1; transform: scale(1); }
.provider-check svg { width: 12px; height: 12px; }
/* ---------- Dropzone ---------- */
.dropzone {
position: relative; overflow: hidden; border: 1.5px dashed var(--border-2); border-radius: var(--radius);
background: var(--bg-2); padding: 32px; display: flex; align-items: center; gap: 19px; transition: all .18s; cursor: pointer;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone:hover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 12% 50%, var(--accent-soft), transparent 60%); opacity: .6; }
.dz-icon { width: 56px; height: 56px; border-radius: 15px; flex: none; background: var(--card-grad); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow-sm), var(--inset-hi); position: relative; z-index: 1; }
.dz-icon svg { width: 25px; height: 25px; }
.dz-text { position: relative; z-index: 1; }
.dz-text b { font-size: 15px; font-weight: 600; display: block; }
.dz-text span { font-size: 12.5px; color: var(--text-faint); }
.dz-spacer { flex: 1; }
.divider-or { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 12px; margin: 20px 0; }
.divider-or::before, .divider-or::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.thumb { width: 96px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); position: relative; box-shadow: var(--shadow-sm); }
.thumb .ph { height: 66px; background-image: repeating-linear-gradient(135deg, var(--surface-3) 0 8px, var(--surface-2) 8px 16px); }
.thumb .tn { font-family: var(--ff-mono); font-size: 9px; color: var(--text-faint); padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .x { position: absolute; top: 6px; right: 6px; width: 19px; height: 19px; border-radius: 50%; background: oklch(0 0 0 / .55); color: #fff; border: none; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }
.thumb .x svg { width: 10px; height: 10px; }
/* ---------- File list ---------- */
.filelist { display: flex; flex-direction: column; }
.filerow { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 13px 4px; }
.filerow + .filerow { border-top: 1px solid var(--border); }
.fileicon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--ff-mono); font-size: 9.5px; font-weight: 600; box-shadow: var(--inset-hi); }
.fileicon.pdf { background: var(--stop-soft); color: var(--stop-ink); }
.fileicon.doc { background: var(--accent-soft); color: var(--on-soft); }
.fileicon.txt { background: var(--surface-3); color: var(--text-muted); }
.fr-name { font-size: 13.5px; font-weight: 500; }
.fr-meta { font-size: 11.5px; color: var(--text-faint); }
.fr-size { font-family: var(--ff-mono); font-size: 11px; color: var(--text-faint); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--inset-hi); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: -20px; right: -20px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: .6; }
.stat .n { font-family: var(--ff-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; position: relative; }
.stat .l { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
/* ============================================================ verdict hero */
.verdict {
position: relative; border-radius: var(--radius-xl); padding: 32px 34px; overflow: hidden;
display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border: 1px solid var(--border);
background: var(--card-grad); box-shadow: var(--shadow-lg), var(--inset-hi);
}
.verdict::before {
content: ""; position: absolute; inset: 0; pointer-events: none;
background: radial-gradient(70% 120% at 0% 0%, var(--g-aura), transparent 55%), radial-gradient(60% 100% at 100% 100%, var(--g-aura), transparent 60%);
opacity: .9;
}
.verdict.go { --g-aura: var(--go-glow); }
.verdict.warn { --g-aura: var(--warn-glow); }
.verdict.stop { --g-aura: var(--stop-glow); }
.verdict > * { position: relative; z-index: 1; }
.verdict-badge {
display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: var(--radius-pill);
font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(8px); width: fit-content; box-shadow: var(--inset-hi);
}
.verdict.go .verdict-badge { color: var(--go-ink); }
.verdict.warn .verdict-badge { color: var(--warn-ink); }
.verdict.stop .verdict-badge { color: var(--stop-ink); }
.verdict-badge .dot { width: 9px; height: 9px; border-radius: 50%; }
.verdict.go .dot { background: var(--go); box-shadow: 0 0 10px var(--go-glow); }
.verdict.warn .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn-glow); }
.verdict.stop .dot { background: var(--stop); box-shadow: 0 0 10px var(--stop-glow); }
.verdict h2 { font-size: 29px; margin: 16px 0 9px; letter-spacing: -.025em; line-height: 1.1; }
.verdict p { color: var(--text-muted); font-size: 14.5px; max-width: 46ch; margin: 0; }
/* score ring */
.score { display: grid; place-items: center; gap: 10px; position: relative; }
.ring { width: 132px; height: 132px; position: relative; display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, var(--g-aura), transparent 72%); filter: blur(10px); }
.ring svg { transform: rotate(-90deg); width: 132px; height: 132px; position: relative; filter: drop-shadow(0 0 8px var(--g-aura)); }
.ring .track { fill: none; stroke: var(--border-2); stroke-width: 9; }
.ring .bar { fill: none; stroke-width: 9; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
.ring .bar { animation: ringDraw 1.1s cubic-bezier(.3,.8,.3,1); }
}
@keyframes ringDraw { from { stroke-dashoffset: var(--c-full); } }
.ring .val { position: absolute; text-align: center; }
@media (prefers-reduced-motion: no-preference) { .ring .val { animation: pop .6s .2s backwards cubic-bezier(.3,1.4,.4,1); } }
@keyframes pop { from { transform: scale(.55); } }
.ring .val b { font-family: var(--ff-display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1; }
.ring .val span { font-family: var(--ff-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.panel-title .pico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; box-shadow: var(--inset-hi); }
.panel-title .pico svg { width: 14px; height: 14px; }
.pico.pos { background: var(--go-soft); color: var(--go-ink); }
.pico.neg { background: var(--warn-soft); color: var(--warn-ink); }
.checkitem { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 12px 0; align-items: start; }
.checkitem + .checkitem { border-top: 1px solid var(--border); }
.checkitem .ci-ico { margin-top: 2px; }
.checkitem .ci-ico svg { width: 16px; height: 16px; }
.checkitem.pos .ci-ico { color: var(--go); }
.checkitem.neg .ci-ico { color: var(--warn); }
.checkitem b { font-size: 13.5px; font-weight: 600; }
.checkitem p { font-size: 12.5px; color: var(--text-muted); margin: 3px 0 0; line-height: 1.5; }
.checkitem .src { font-family: var(--ff-mono); font-size: 10px; color: var(--text-faint); margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--radius-xs); background: var(--bg-2); border: 1px solid var(--border); }
.checkitem .src svg { width: 11px; height: 11px; }
.jobmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.metacell { background: var(--card-grad); padding: 15px 17px; }
.metacell .mk { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.metacell .mv { font-size: 14px; font-weight: 600; margin-top: 6px; }
.metacell .mv.muted { color: var(--text-faint); font-weight: 500; font-style: italic; }
/* ============================================================ proposal */
.doc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 2px; box-shadow: var(--inset-hi); }
.seg button { border: none; background: none; cursor: pointer; padding: 8px 14px; border-radius: calc(var(--radius-sm) - 3px); font-size: 12.5px; font-weight: 600; color: var(--text-muted); transition: all .14s; }
.seg button.on { background: var(--card-grad); color: var(--text); box-shadow: var(--shadow-sm), var(--inset-hi); }
.toolbar-spacer { flex: 1; }
.wordcount { font-family: var(--ff-mono); font-size: 11px; color: var(--text-faint); }
.proposal-doc { position: relative; background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow), var(--inset-hi); padding: 40px 44px; overflow: hidden; }
.proposal-doc::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 16px var(--accent-glow); }
.proposal-doc::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 100% 0%, var(--accent-soft), transparent 55%); opacity: .4; }
.proposal-doc p { position: relative; margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--text); }
.proposal-doc p:last-child { margin-bottom: 0; }
.proposal-doc .lead { font-size: 15.5px; }
.proposal-doc mark { background: var(--accent-soft); color: var(--on-soft); padding: 1px 5px; border-radius: 5px; font-weight: 600; border: 1px solid var(--accent-line); }
.evidence-note { position: relative; display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 12px; color: var(--text-faint); padding: 8px 13px; border-radius: var(--radius-pill); background: var(--bg-2); border: 1px solid var(--border); }
.evidence-note svg { width: 14px; height: 14px; color: var(--accent); }
/* helpers */
.row { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 20px; } .mt-l { margin-top: 28px; }
.callout { display: flex; gap: 12px; padding: 15px 17px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13px; color: var(--on-soft); box-shadow: var(--inset-hi); }
.callout svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
@media (max-width: 1100px) {
.app { grid-template-columns: 248px 1fr; }
.main::before { inset: 0 0 0 248px; }
.screen { padding: 34px 30px 84px; }
.topbar { padding: 14px 30px; }
}
/* ============================================================ gamification */
/* points pill */
.points-pill {
display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 11px;
border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; color: var(--text);
background: linear-gradient(135deg, oklch(0.8 0.17 52 / .18), oklch(0.7 0.2 320 / .16));
border: 1px solid var(--accent-line); box-shadow: var(--inset-hi);
}
.points-pill svg { width: 14px; height: 14px; color: oklch(0.82 0.17 70); fill: oklch(0.82 0.17 70 / .25); }
.points-pill b { font-size: 13px; }
/* XP card */
.xp-card { background: var(--card-grad); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm), var(--inset-hi); position: relative; overflow: hidden; }
.xp-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 0% 0%, var(--accent-soft), transparent 60%); opacity: .8; }
.xp-top { display: flex; align-items: center; gap: 11px; position: relative; }
.xp-badge {
width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--accent-fg);
font-weight: 700; box-shadow: 0 3px 12px var(--accent-glow), var(--inset-hi);
}
.xp-badge .mono { font-size: 13px; letter-spacing: -.02em; }
.xp-meta { min-width: 0; flex: 1; }
.xp-name { font-family: var(--ff-display); font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.xp-rank { font-size: 10px; color: var(--text-faint); margin-top: 2px; letter-spacing: .02em; }
.streak { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: oklch(0.8 0.17 52); flex: none; }
.streak svg { width: 15px; height: 15px; fill: oklch(0.8 0.17 52 / .25); }
.xp-bar { height: 8px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--border); margin-top: 12px; overflow: hidden; box-shadow: inset 0 1px 2px oklch(0 0 0 / .2); position: relative; }
.xp-bar-fill {
height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.4,1.3,.4,1);
background: linear-gradient(90deg, var(--accent), var(--accent-2));
box-shadow: 0 0 10px var(--accent-glow);
}
.xp-foot { font-size: 9.5px; color: var(--text-faint); margin-top: 7px; letter-spacing: .03em; text-align: right; }
/* confetti */
.confetti-layer { position: absolute; inset: -10px 0 0; overflow: hidden; pointer-events: none; z-index: 30; }
.confetti-pc { position: absolute; top: -14px; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
.confetti-pc { animation: confettiFall var(--d) cubic-bezier(.3,.5,.6,1) var(--delay) forwards; }
}
@keyframes confettiFall {
0% { transform: translate3d(0, -5vh, 0) rotate(0); opacity: 1; }
100% { transform: translate3d(var(--drift), 105vh, 0) rotate(var(--r)); opacity: 0; }
}
/* achievement toast */
.achv-toast {
position: fixed; top: 78px; right: 36px; z-index: 60; display: flex; align-items: center; gap: 13px;
padding: 13px 17px 13px 13px; border-radius: var(--radius); max-width: 320px;
background: var(--card-grad); border: 1px solid var(--accent-line);
box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-glow), var(--inset-hi);
transform: translateX(130%); opacity: 0; transition: transform .55s cubic-bezier(.3,1.3,.4,1), opacity .4s;
}
.achv-toast.in { transform: translateX(0); opacity: 1; }
.achv-ico {
width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
background: linear-gradient(150deg, oklch(0.82 0.17 70), oklch(0.74 0.2 38)); color: oklch(0.25 0.08 50);
box-shadow: 0 3px 12px oklch(0.78 0.17 60 / .5), var(--inset-hi);
}
.achv-ico svg { width: 22px; height: 22px; }
.achv-kicker { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.achv-title { font-family: var(--ff-display); font-weight: 600; font-size: 15px; margin-top: 2px; letter-spacing: -.01em; }
.achv-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
/* ============================================================
=== STREAMLIT WIDGET OVERRIDES ===
Make Streamlit's own widgets inherit the design system.
These target Streamlit's internal DOM (selectors are stable
as of Streamlit 1.3x but verify against your version).
============================================================ */
/* App background + remove default top padding */
[data-testid="stAppViewContainer"] { background: var(--bg); }
[data-testid="stHeader"] { background: transparent; }
.block-container { padding-top: 2.2rem; max-width: 960px; }
/* Sidebar surface */
section[data-testid="stSidebar"] {
background: linear-gradient(180deg, var(--bg-2), var(--bg));
border-right: 1px solid var(--border);
}
section[data-testid="stSidebar"] .block-container { padding-top: 1.4rem; }
/* Primary buttons → gradient accent with glow (matches .btn-primary) */
.stButton > button {
font-family: var(--ff-body); font-weight: 600; font-size: 14px;
border-radius: var(--radius-sm); height: 44px; border: none; color: var(--accent-fg);
background: linear-gradient(150deg, var(--accent), var(--accent-2));
box-shadow: 0 4px 16px var(--accent-glow), var(--inset-hi);
transition: filter .15s, transform .12s;
}
.stButton > button:hover { filter: brightness(1.06); }
.stButton > button:active { transform: translateY(1px); }
/* Secondary button variant: add `type="secondary"` in st.button(...) */
.stButton > button[kind="secondary"] {
background: var(--card-grad); color: var(--text);
border: 1px solid var(--border-2); box-shadow: var(--inset-hi);
}
/* Text / password inputs (matches .input) */
.stTextInput input, .stTextArea textarea {
background: var(--bg-2); border: 1px solid var(--border-2);
border-radius: var(--radius-sm); color: var(--text); font-family: var(--ff-body);
}
.stTextInput input:focus, .stTextArea textarea:focus {
border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
/* File uploader → dropzone look (matches .dropzone) */
[data-testid="stFileUploaderDropzone"] {
background: var(--bg-2); border: 1.5px dashed var(--border-2);
border-radius: var(--radius); color: var(--text-muted);
}
[data-testid="stFileUploaderDropzone"]:hover { border-color: var(--accent); }
/* Headings use the display font */
h1, h2, h3 { font-family: var(--ff-display) !important; letter-spacing: -.02em; }
/* Tabs / radios picked accent color */
.stTabs [aria-selected="true"] { color: var(--accent) !important; }
[data-baseweb="radio"] [aria-checked="true"] div:first-child { border-color: var(--accent) !important; background: var(--accent) !important; }
/* Progress bar (st.progress) → accent gradient */
.stProgress > div > div > div > div {
background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important;
}
/* Hide Streamlit chrome you don't want (optional) */
#MainMenu { visibility: hidden; }
footer { visibility: hidden; }