/* The look of teamfind, from the teamfind file in Penpot (web-services/teamfind/design-system.md is its text version; Penpot wins).
   Tokens first, then the pieces: buttons, chips, cards, fields, dialog, the public header, the cabinet. */
:root {
  --primary-50: #eef2ff; --primary-100: #e0e7ff; --primary-200: #c7d2fe; --primary-300: #a5b4fc; --primary-600: #4f46e5; --primary-700: #4338ca; --primary-800: #3730a3;
  --ink-900: #111827; --ink-700: #374151; --ink-500: #64748b; --ink-400: #94a3b8; --ink-300: #9aa3b2;
  --line-100: #eef0f5; --line-200: #e7eaf2; --line-300: #d7dfea; --surface: #fff; --surface-alt: #f5f7fa; --surface-sunken: #f8f9fc;
  --danger-50: #fef3f2; --danger-200: #fecdca; --danger-600: #d92d20; --danger-700: #b42318;
  --success-50: #ecfdf3; --success-500: #12b76a; --success-700: #15803d;
  --warning-50: #fff6e0; --warning-200: #fedf89; --warning-700: #b54708;
  --accent: #8230ca; --accent-hover: #6000b3; --accent-50: #f5eefc;
  --r-badge: 6px; --r-chip: 8px; --r-control: 8px; --r-card: 12px; --r-dialog: 16px;
  --shadow-card: 0 2px 8px #0000000d; --shadow-dialog: 0 16px 40px -8px #0000003d;
}
/* a vertical scroll bar only where the page really scrolls: no empty strip at the right edge of a page that fits the window (the place is not reserved; a dialog that locks the scroll keeps the page where it is, see useLockScroll) */
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-alt); color: var(--ink-900); font: 14px/20px Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1 { font-size: 32px; line-height: 40px; font-weight: 700; margin: 0; }
h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 24px 0 12px; }
h3 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0 0 8px; }
h4 { font-size: 14px; font-weight: 600; margin: 12px 0 8px; }
p { margin: 8px 0; }
a { color: var(--primary-600); text-decoration: none; } a:hover { color: var(--primary-700); }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 8px; } .muted { color: var(--ink-500); }
.err { color: var(--danger-700); } .ok { color: var(--success-700); } .warn { color: var(--warning-700); }
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* buttons: 8 variants of the design, the ones this prototype uses; medium 40, small 32, large 48 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-control); border: 1px solid transparent; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn.small { height: 32px; padding: 0 12px; } .btn.icon { width: 32px; padding: 0; } .btn.large { height: 48px; padding: 0 24px; font-size: 16px; }
.btn.primary { background: var(--primary-600); color: #fff; } .btn.primary:hover { background: var(--primary-700); } .btn.primary:active { background: var(--primary-800); }
.btn.outline { background: var(--surface); color: var(--ink-900); border-color: var(--line-300); } .btn.outline:hover { background: var(--surface-alt); }
.btn.text { background: none; color: var(--primary-600); padding: 0 8px; } .btn.text:hover { background: var(--primary-50); }
.btn.accent { background: var(--accent); color: #fff; } .btn.accent:hover { background: var(--accent-hover); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); } .btn.secondary:hover { background: var(--accent-50); }
.btn:focus-visible, .toggle:focus-visible, .page-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* chips, badges, the match pill */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface-alt); color: var(--ink-700); font-size: 12px; font-weight: 500; }
.chip.brand { background: var(--primary-50); color: var(--primary-600); } .chip.warn { background: var(--warning-50); color: var(--warning-700); }
.chip.ok { background: var(--success-50); color: var(--success-700); } .chip.danger { background: var(--danger-50); color: var(--danger-700); }
.chip .x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; padding: 0 0 0 2px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-badge); font-size: 12px; font-weight: 500; background: var(--surface-alt); }
.badge.ok { background: var(--success-50); color: var(--success-700); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-alt); color: var(--ink-700); }
.pill.ok { background: var(--success-50); color: var(--success-700); } .pill.warn { background: var(--warning-50); color: var(--warning-700); }
.toggle, .page-btn { height: 32px; padding: 0 14px; border-radius: var(--r-chip); border: 1px solid var(--line-300); background: var(--surface); color: var(--ink-900); font: inherit; cursor: pointer; }
.toggle.on, .page-btn.on { background: var(--primary-50); border-color: var(--primary-600); color: var(--primary-600); }
.page-btn { width: 36px; padding: 0; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--primary-100); color: var(--primary-600); font-size: 12px; font-weight: 600; }

/* cards, fields */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 24px; }
.card.empty { color: var(--ink-500); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.label { font-weight: 500; }
.hint { min-height: 16px; font-size: 12px; line-height: 16px; color: var(--danger-600); } .hint.muted { color: var(--ink-500); }
input:not([type='checkbox']), select, textarea { height: 40px; width: 100%; padding: 0 12px; border: 1px solid var(--line-300); border-radius: var(--r-control); background: var(--surface); color: var(--ink-900); font: inherit; }
textarea { height: auto; min-height: 40px; padding: 9px 12px; resize: vertical; }
select { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-200); }
input::placeholder, textarea::placeholder { color: var(--ink-400); }
input.level { width: 72px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary-600); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.skills { display: flex; flex-direction: column; gap: 8px; } .skills .row select { flex: 1; }

/* the public site: Penpot Site header and the page */
.site-header { height: 72px; display: flex; align-items: center; gap: 32px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line-200); }
.site-brand { font-size: 28px; font-weight: 700; color: var(--primary-600); }
.site-header nav { display: flex; gap: 32px; } .site-header nav a { color: var(--ink-700); font-weight: 500; } .site-header nav a.on { color: var(--primary-600); }
.lang-switch { flex-wrap: nowrap; gap: 6px; margin-left: 4px; } .lang-switch .toggle { padding: 0 10px; font-size: 13px; }
.who { display: flex; align-items: center; gap: 8px; color: var(--ink-900); }
.site-main { flex: 1; }
.page { max-width: 1120px; margin: 0 auto; padding: 40px 32px; } .page.narrow { max-width: 880px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 32px; border-top: 1px solid var(--line-200); color: var(--ink-500); }

/* the catalog */
.catalog { display: grid; grid-template-columns: 272px 1fr; gap: 24px; align-items: start; }
.filters { padding: 20px; position: sticky; top: 16px; }
.found { color: var(--ink-500); margin: 0 0 12px; }
.project { margin-bottom: 16px; } .project h3 { font-size: 20px; } .project h3.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.byline { color: var(--ink-500); font-size: 12px; margin: 8px 0; }
.slot { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface-sunken); border-radius: var(--r-control); margin-bottom: 8px; }
.slots-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin: 12px 0 8px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.slots-toggle-title { font-size: 14px; font-weight: 600; } .slots-toggle > svg { flex: none; margin-left: auto; color: var(--ink-500); }
.slots-summary { color: var(--ink-500); font-size: 14px; } p.slots-summary { margin: 12px 0 0; }
.slot-title { font-weight: 600; display: flex; align-items: center; gap: 8px; } .slot-sub { color: var(--ink-500); font-size: 12px; }
.slot-card { padding: 12px; margin-bottom: 12px; } .slot-card .slot { margin: 0; }
.why { margin: 8px 12px 4px; font-size: 12px; color: var(--ink-500); }
.quote { margin-top: 4px; font-size: 12px; color: var(--ink-700); font-style: italic; }
.candidates { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.candidate { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--r-control); }

/* the dialog: 480 wide, radius 16 */
.backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: #11182780; padding: 16px; }
.dialog { width: 480px; max-width: 100%; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: var(--r-dialog); box-shadow: var(--shadow-dialog); padding: 24px; }
.dialog h2 { font-size: 18px; line-height: 24px; margin: 0 0 16px; }

/* the cabinet: Penpot App / projects */
.cabinet { flex: 1; display: grid; grid-template-columns: 272px 1fr; /* wide enough for a label, a 99+ badge and the chevron of an open item */ min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line-200); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; color: var(--ink-900); padding: 0 8px; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-control); color: var(--ink-700); font-weight: 500; }
.sidebar nav a.on { background: var(--primary-50); color: var(--primary-600); } .sidebar nav a .icon { color: var(--ink-500); flex: none; } .sidebar nav a.on .icon { color: var(--primary-600); }
.user-menu { position: relative; }
.userblock { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 8px; border: 0; border-radius: var(--r-control); background: none; font: inherit; font-size: 12px; color: var(--ink-700); cursor: pointer; text-align: left; } .userblock:hover, .userblock.open { background: var(--surface-alt); }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 8px; background: var(--surface); border-radius: var(--r-card); box-shadow: 0 8px 24px -4px #0000002e; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 8px; border: 0; border-radius: var(--r-control); background: none; font: inherit; font-weight: 500; color: var(--ink-900); cursor: pointer; text-align: left; } .menu-item:hover { background: var(--surface-alt); color: var(--ink-900); } .menu-item .icon { color: var(--ink-500); flex: none; }
.menu-item.danger, .menu-item.danger .icon { color: var(--danger-700); } .menu-item.danger:hover { background: var(--danger-50); }
.menu-divider { height: 1px; margin: 4px 0; background: var(--line-200); }
.userblock .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-strip { display: flex; justify-content: flex-end; height: 32px; margin-bottom: 24px; }
.cabinet-main { padding: 16px 32px 40px; max-width: 1040px; width: 100%; }
.tabs { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-200); margin-bottom: 24px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; margin-bottom: -1px; font: inherit; font-weight: 500; color: var(--ink-500); cursor: pointer; }
.tabs button.on { color: var(--ink-900); border-bottom-color: var(--primary-600); } .tabs .count { margin-left: -16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; } .grid2 .project { margin: 0; }
.card.profile { max-width: 560px; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; height: 64vh; width: 100%; border: 0; border-top: 2px solid #4fc1ff; z-index: 55; background: #1e1e1e; }

/* auth pages: Penpot Sign in / new (the hero on the left, the card on the right) */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 640px 1fr; }
/* Penpot: Screens / Sign in / new, "Brand panel" (640 wide; the offsets below put every part where the board has it: brand 62, headline 176,
   message 292, cards 396, trust 640) */
.auth-hero { background: var(--primary-50); padding: 62px 64px 64px; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; gap: 12px; } .auth-brand strong { display: block; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink-900); }
.auth-brand .muted { font-size: 14px; line-height: 20px; }
.auth-hero .logo-mark { width: 40px; height: 40px; border-radius: var(--r-control); font-size: 18px; font-weight: 600; }
.auth-hero h2 { font-size: 40px; line-height: 48px; font-weight: 700; margin: 69px 0 0; color: var(--ink-900); } .auth-hero h2 span { color: var(--primary-600); }
.auth-message { font-size: 16px; line-height: 24px; color: var(--ink-700); max-width: 480px; margin: 20px 0 0; }
.hero-cards { display: grid; grid-template-columns: 248px 248px; gap: 16px; margin-top: 56px; }
.hero-card { background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--r-card); box-shadow: 0 2px 8px #11182714; padding: 19px; min-height: 168px; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; height: 28px; margin-bottom: 16px; }
.hero-chip { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-100); display: inline-flex; align-items: center; justify-content: center; }
.hero-chip::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-600); }
.hero-count { font-size: 18px; line-height: 24px; font-weight: 600; }
.hero-card strong { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.hero-card p { margin: 3px 0 11px; font-size: 14px; line-height: 20px; color: var(--ink-500); min-height: 40px; }
.hero-card .bar { height: 6px; border-radius: 3px; background: var(--line-200); overflow: hidden; } .hero-card .bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary-600); }
.hero-card .bar.soft i { background: var(--primary-300); }
.hero-trust { display: flex; align-items: flex-start; gap: 12px; margin-top: 76px; }
.hero-trust-icon { flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; background: var(--primary-100); display: inline-flex; align-items: center; justify-content: center; }
.hero-trust-icon::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-600); }
.hero-trust strong { display: block; font-size: 14px; line-height: 20px; font-weight: 600; } .hero-trust p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-500); max-width: 428px; }
.bar { height: 6px; border-radius: 3px; background: var(--primary-100); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--primary-600); } .bar.soft i { background: var(--primary-200); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px; }
.card.auth-card { width: 440px; max-width: 100%; padding: 40px; border-radius: 16px; }
.auth-logo { color: var(--primary-600); font-weight: 600; font-size: 18px; margin-bottom: 24px; }
.auth-card h1 { font-size: 24px; line-height: 32px; font-weight: 600; } .auth-card .lead { margin: 4px 0 20px; }
.auth-card form { display: flex; flex-direction: column; } .right { text-align: right; margin-bottom: 16px; } .center { text-align: center; margin-top: 20px; }
.btn.block { display: flex; width: 100%; } .notice { background: var(--warning-50); color: var(--warning-700); border-radius: var(--r-control); padding: 8px 12px; margin: 0 0 12px; }

/* toasts as shadcn draws them: bottom right (the bottom left is the account block of the sidebar), a card with a title, a description, a status icon and a cross */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { position: relative; width: 360px; max-width: calc(100vw - 32px); display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line-300); border-radius: 10px; padding: 14px 36px 14px 14px; box-shadow: 0 10px 30px -6px #0000002e, 0 2px 6px #0000000f; animation: toast-in .22s ease both; }
.toast-icon { flex: none; display: inline-flex; margin-top: 1px; color: var(--ink-500); } .toast.success .toast-icon { color: var(--success-500); } .toast.error .toast-icon { color: var(--danger-600); }
.toast-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-900); } .toast.error .toast-title { color: var(--danger-700); }
.toast-desc { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-500); }
.toast-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-400); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; } .toast:hover .toast-x, .toast-x:focus-visible { opacity: 1; } .toast-x:hover { color: var(--ink-900); background: var(--surface-alt); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* the cabinet pages: home, profile, professions */
.callout { background: var(--primary-50); border: 1px solid var(--primary-200); box-shadow: none; margin-bottom: 24px; } .callout h2 { margin: 0 0 8px; font-size: 24px; }
.section { margin-bottom: 24px; } .section h2 { margin: 0 0 16px; font-size: 24px; }
.info dl { display: grid; grid-template-columns: 136px 1fr; gap: 8px 0; margin: 0; } .info dt { color: var(--ink-500); } .info dd { margin: 0; font-weight: 500; }
.photo { align-items: center; gap: 20px; } .hint-line { font-size: 12px; margin-top: 8px; }
.avatar.img { object-fit: cover; }
.grid2.tight { gap: 0 24px; }
/* the profile form as the design spaces it: blocks 16 apart, the two-column rows 24 apart, a field block = label, input, hint line (88) */
.form-stack { display: flex; flex-direction: column; gap: 16px; } .form-stack h2 { margin: 0; }
.form-stack .field { margin: 0; } .form-stack .hint { margin-top: 4px; }
.form-stack .grid2.stack { gap: 24px; }
.form-stack .chips-field { gap: 8px; } .form-stack .chips-field .hint { margin-top: -4px; } .tabs.inner { margin-bottom: 16px; }
.actions.left { justify-content: flex-start; margin-top: 8px; }
.btn.danger-outline { background: var(--surface); color: var(--danger-700); border-color: var(--danger-200); } .btn.danger-outline:hover { background: var(--danger-50); }
.btn.danger { background: var(--danger-600); color: #fff; }
.skill-row { display: flex; align-items: center; gap: 16px; padding: 6px 0; } .skill-name { width: 120px; font-weight: 500; }
.meter { display: flex; gap: 4px; } .seg { width: 24px; height: 12px; border: 0; padding: 0; border-radius: 3px; background: var(--line-200); cursor: pointer; }
.seg.on.low { background: #ef4444; } .seg.on.mid { background: #f79009; } .seg.on.high { background: var(--success-500); } span.seg { display: inline-block; width: 24px; height: 8px; border-radius: 4px; }
.level-text { color: var(--ink-500); min-width: 36px; }
/* the hover preview of a skill level */
.seg.on.add { opacity: 0.5; } .seg.drop { background: var(--line-200); box-shadow: inset 0 0 0 1px currentColor; } .seg.drop.low { color: #ef444488; } .seg.drop.mid { color: #f7900988; } .seg.drop.high { color: #12b76a88; }
.level-preview { font-size: 12px; font-weight: 500; white-space: nowrap; } .level-preview.low { color: var(--danger-700); } .level-preview.mid { color: var(--warning-700); } .level-preview.high { color: var(--success-700); }
.tabs [role='tab'] { background: none; }

/* members */
.filter-bar { display: grid; grid-template-columns: 1fr 240px; gap: 12px; padding: 16px; margin-bottom: 16px ; } /* the members filters stand in a card on the left of the list (the review: the filter menu to the left), like the filters of the projects catalog: the rows stack, the label sits above its chips, the search and the profession fill the narrow card */ .members-filters { display: flex; flex-direction: column; gap: 12px; } .members-filters input, .members-filters select { width: 100%; } .members-filters .chip-row { flex-direction: column; align-items: stretch; gap: 4px; } .members-filters .chip-row .msel-row { max-width: none; width: 100%; } .members-filters .chip-row-label { width: auto; padding-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .member { padding: 20px; display: flex; flex-direction: column; gap: 12px; } .member h3 { margin: 0; font-size: 16px; }

/* friends, messages, the member page */
.person-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; } .person-name { font-weight: 600; color: var(--primary-600); }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface-alt); color: var(--ink-700); font-size: 12px; font-weight: 500; vertical-align: middle; }
.unread { margin-left: auto; flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--danger-50); color: var(--danger-700); font-size: 12px; font-weight: 600; }
.messages { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; height: calc(100vh - 112px); } .messages .card { padding: 16px; height: 100%; }
.threads { overflow-y: auto; } .threads h1 { margin: 8px 8px 12px; } .thread { display: flex; gap: 12px; padding: 12px 8px; border-radius: var(--r-control); color: var(--ink-900); } .thread:hover { background: var(--surface-alt); } .thread.on { background: var(--primary-50); }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .small { font-size: 12px; }
.chat { display: flex; flex-direction: column; padding: 0 !important; } .chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-200); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; } .placeholder { margin: auto; text-align: center; padding: 24px; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: var(--r-card); border: 1px solid var(--line-200); background: var(--surface); } .bubble.mine { align-self: flex-end; background: var(--primary-50); border-color: var(--primary-200); } .bubble-text { white-space: pre-wrap; word-break: break-word; }
.chat-input { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line-200); } .chat-input textarea { height: 40px; min-height: 40px; resize: none; flex: 1; }
.member-head { display: flex; align-items: center; gap: 24px; } .member-head h1 { margin: 0 0 4px; } .lead-line { font-size: 16px; margin-bottom: 4px; } .actions-row { align-self: flex-start; }
.member-cols { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; } .group-title { color: var(--ink-500); margin: 16px 0 4px; }
.level-text.low { color: var(--danger-700); } .level-text.mid { color: var(--warning-700); } .level-text.high { color: var(--success-700); } .level-text { min-width: 72px; }
.btn.disabled { opacity: 0.7; cursor: default; pointer-events: none; }
.sidebar nav a .unread { height: 20px; min-width: 20px; padding: 0 7px; } /* a badge never shrinks below its text: "99+" is wider than a round one */

/* the landing: Penpot Landing / Desktop 1280, Tablet 768, Mobile 390 */
:root { --lav-50: #ede5fd; --lav-100: #e2d3fe; --sky-50: #e7eefd; --sky-100: #d2e1ff; --lime-50: #f4ffc2; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.lp h1 { font-size: 40px; line-height: 48px; } .lp h2 { font-size: 32px; line-height: 40px; font-weight: 700; margin: 0 0 32px; } .lp h2 em { font-style: normal; color: var(--primary-600); }
.lp h3 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0 0 8px; }
.lp-hero { position: relative; min-height: 622px; background: #fff url(/static/landing/hero.png) right bottom / auto 578px no-repeat; }
.lp-hero-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 622px; padding-top: 56px; padding-bottom: 36px; }
.lp-hero-text { max-width: 560px; } .lp-hero h1 { margin: 16px 0 24px; } .lp-hero h1 span { color: var(--primary-600); } .lp-hero p { font-size: 16px; line-height: 24px; color: var(--ink-700); margin: 0; }
.lp-badge { display: inline-flex; height: 24px; align-items: center; padding: 0 8px; border-radius: 6px; background: var(--lav-100); color: var(--ink-900); font-size: 12px; font-weight: 500; } .lp-badge.blue { background: var(--sky-100); } .lp-badge.light { background: var(--lav-50); }
.lp-hero-actions .row { gap: 16px; margin-bottom: 20px; } .lp-hero-actions .btn.outline { background: #fff; }
.lp-proof { display: flex; align-items: center; gap: 16px; font-weight: 500; } .lp-faces { display: inline-flex; } .lp-faces img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-right: -8px; object-fit: cover; }
.lp-section { padding: 96px 0; background: #fff; } .lp-section.blue { background: var(--sky-50); } .lp-section.grey { background: var(--surface-alt); } .lp-section.tight { padding: 0 0 96px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .lp-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-card { position: relative; border-radius: var(--r-card); padding: 24px; min-height: 289px; } .lp-card p { margin: 0; color: var(--ink-700); } .lp-card.violet { background: var(--lav-50); } .lp-card.blue { background: var(--sky-50); } .lp-card.lime { background: var(--lime-50); }
.lp-card > img { position: absolute; right: 16px; bottom: 16px; width: 140px; height: 140px; object-fit: contain; }
.lp-step { background: #fff; border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card); } .lp-step h3 { margin-top: 20px; color: var(--primary-600); } .lp-step p { margin: 0; color: var(--ink-700); }
.lp-step-top { display: flex; justify-content: space-between; align-items: flex-start; } .lp-tile { width: 72px; height: 72px; border-radius: var(--r-card); background: var(--lav-50); display: inline-flex; align-items: center; justify-content: center; } .lp-tile img { width: 56px; height: 56px; object-fit: contain; }
.lp-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.lp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .lp-panel { position: relative; border-radius: var(--r-dialog); padding: 40px; min-height: 552px; } .lp-panel.blue { background: var(--sky-50); } .lp-panel.violet { background: var(--lav-100); }
.lp-panel h3 { font-size: 24px; line-height: 32px; margin: 16px 0 16px; } .lp-panel ul { list-style: none; padding: 0; margin: 0 0 24px; } .lp-panel li { padding: 8px 0 8px 36px; position: relative; } .lp-panel li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ink-700); text-align: center; line-height: 24px; font-size: 12px; box-shadow: var(--shadow-card); }
.lp-panel > img { position: absolute; right: 40px; bottom: 40px; width: 200px; height: 200px; object-fit: contain; }
.lp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; } .lp-head h2 { margin: 0; } .lp-head a { font-weight: 500; }
.lp-post { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; } .lp-post > img { width: 100%; height: 180px; object-fit: cover; } .lp-post-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; } .lp-post-body p { margin: 0; color: var(--ink-700); flex: 1; } .lp-post-body a { font-weight: 500; margin-top: 8px; }
.lp-reviews { align-items: start; } .lp-col { display: flex; flex-direction: column; gap: 16px; } .lp-reviews .lp-card { min-height: 0; padding: 20px; } .lp-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .lp-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.lp-banner { background: var(--lav-100); border-radius: var(--r-dialog); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; } .lp-banner h2 { margin: 0 0 8px; } .lp-banner p { margin: 0; font-size: 16px; } .lp-banner .btn.outline { background: #fff; }
/* the About page (src/routes/About.tsx): the landing's pieces, laid out like teamfind.app/about */
.about-intro { padding-top: 40px; } .about-intro h1 { font-size: 32px; line-height: 40px; margin: 0 0 24px; max-width: 760px; } .lp h1 em { font-style: normal; color: var(--primary-600); }
.about-lead { font-size: 18px; line-height: 28px; color: var(--ink-900); max-width: 760px; margin: 0 0 12px; } .about-text { font-size: 16px; line-height: 24px; color: var(--ink-700); max-width: 760px; margin: 0 0 40px; }
.about-card { min-height: 0; } .about-join { margin-top: 24px; } .about-sub { font-size: 20px; line-height: 28px; margin: 0 0 20px; } .lp-grid4 + .about-sub { margin-top: 40px; }
.about-faq { display: flex; flex-direction: column; gap: 12px; } .about-faq-item { background: var(--primary-50); border-radius: var(--r-card); padding: 0 24px; }
.about-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; } .about-faq-item summary::-webkit-details-marker { display: none; }
.about-faq-item summary::after { content: '+'; color: var(--primary-600); font-size: 22px; font-weight: 500; } .about-faq-item[open] summary::after { content: '−'; }
.about-faq-item p { margin: 0 0 18px; color: var(--ink-700); font-size: 16px; line-height: 24px; }
.site-footer { display: block; padding: 32px 0 24px; background: var(--sky-50); border-top: 1px solid var(--line-200); color: var(--ink-900); } .foot-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; } .foot-cols h4 { font-size: 18px; margin: 0 0 8px; } .foot-cols p { margin: 0 0 8px; max-width: 460px; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 32px; } .socials { display: flex; gap: 8px; } .social { width: 32px; height: 32px; border-radius: 8px; background: var(--ink-700); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.auth-brand, .auth-logo { color: inherit; } .auth-logo { color: var(--primary-600); display: inline-block; }

/* tablet and phone */
@media (max-width: 900px) {
  .messages { grid-template-columns: 1fr; height: auto; } .member-cols { grid-template-columns: 1fr; } .member-head { flex-wrap: wrap; }
  .lp-grid3, .lp-grid4 { grid-template-columns: 1fr 1fr; } .lp-panels { grid-template-columns: 1fr; } .lp-panel { min-height: 460px; } .lp-section { padding: 64px 0; } .lp-section.tight { padding: 0 0 64px; } .foot-cols { grid-template-columns: 1fr 1fr; }
  .lp-hero { background-size: auto 420px; } .lp-hero-inner { min-height: 560px; }
  .auth-page { grid-template-columns: 1fr; } .auth-hero { display: none; } .grid3 { grid-template-columns: 1fr; } .filter-bar { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; } .filters { position: static; }
  .cabinet { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; } .sidebar nav { flex-direction: row; }
  .grid2 { grid-template-columns: 1fr; } .site-header { gap: 12px; padding: 0 16px; } .page { padding: 24px 16px; } .cabinet-main { padding: 16px 16px 24px; }
  .slot { flex-wrap: wrap; } .candidate { flex-wrap: wrap; } h1 { font-size: 24px; line-height: 32px; }
}
.dock-handle { position: fixed; left: 0; right: 0; height: 10px; cursor: ns-resize; z-index: 56; touch-action: none; } .dock-handle:hover, .dock-handle:active { background: #4fc1ff55; }
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; } .lp h1 { font-size: 32px; line-height: 40px; } .lp h2 { font-size: 24px; line-height: 32px; margin-bottom: 20px; }
  .lp-grid3, .lp-grid4 { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: 1fr; } .foot-bottom { flex-direction: column; gap: 8px; }
  .lp-hero { background: #fff url(/static/landing/hero-mobile.png) center bottom / 100% auto no-repeat; min-height: 0; } .lp-hero-inner { min-height: 0; padding-bottom: 300px; gap: 24px; }
  .lp-hero-actions .row { flex-direction: column; align-items: stretch; } .lp-hero-actions .btn { width: 100%; }
  .lp-panel { padding: 24px; } .lp-panel > img { width: 140px; height: 140px; right: 16px; bottom: 16px; } .lp-banner { padding: 24px; } .lp-banner .row { flex-direction: column; align-items: stretch; width: 100%; } .lp-banner .btn { width: 100%; }
  .site-header { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 8px 12px; } .site-header nav { order: 5; width: 100%; display: flex; gap: 16px; overflow-x: auto; } .site-header .grow { display: none; } .site-brand { flex: 1; }
}

/* development tools: the debug icon and the users panel (dark, like the debug panel) */
.dock-toggle { position: fixed; right: 16px; bottom: 64px; z-index: 60; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #1e1e1e; color: #4fc1ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px #0004; }
.dock-toggle:hover { background: #2d2d30; }
.dev-tabs { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 6px; }
.dev-tab { width: 36px; height: 48px; padding: 0; border: 0; border-radius: 10px 0 0 10px; background: #1e1e1e; color: #4fc1ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px #0004; }
.dev-tab:hover { background: #2d2d30; } .dev-tab[aria-pressed='true'], .dev-tab.on { background: #264f78; }
.dev-users { position: fixed; right: 42px; top: 50%; transform: translateY(-50%); z-index: 70; }
.dev-users { width: 300px; max-height: 70vh; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #1e1e1e; color: #d4d4d4; border-radius: 12px 0 0 12px; box-shadow: 0 8px 28px #0006; font-size: 13px; }
.dev-users header { display: flex; align-items: center; gap: 8px; color: #4fc1ff; } .dev-users header strong { color: #d4d4d4; font-weight: 600; }
.dev-icon { width: 26px; height: 26px; padding: 0; border: 1px solid #3c3c3c; border-radius: 6px; background: #2d2d30; color: #d4d4d4; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .dev-icon:hover { border-color: #4fc1ff; }
.dev-users input { height: 32px; background: #252526; color: #d4d4d4; border: 1px solid #3c3c3c; border-radius: 6px; padding: 0 10px; } .dev-users input:focus { border-color: #4fc1ff; box-shadow: none; }
.dev-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.dev-group { margin: 6px 4px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #808080; }
.dev-person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; } .dev-person:hover:not(:disabled) { background: #2d2d30; } .dev-person.on { background: #264f78; } .dev-person:disabled { opacity: 0.6; cursor: default; }
.dev-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #3c3c3c; color: #d4d4d4; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.dev-text { display: flex; flex-direction: column; min-width: 0; flex: 1; } .dev-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dev-sub { color: #808080; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-empty { padding: 8px; color: #808080; }

/* settings (Penpot App / settings): the cards are 760 wide, a switch is 44 x 24 with a 20 knob */
.settings { max-width: 760px; } .micro { font-size: 12px; line-height: 16px; } .lead-line { margin: 0; }
.account-line { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; } .account-line > div:first-child { display: flex; flex-direction: column; } .account-email { font-weight: 600; }
.email-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: start; } .email-row .email-save { margin-top: 24px; }
.inline-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.badge.warn { background: var(--warning-50); color: var(--warning-700); }
.switch { display: flex; align-items: center; gap: 16px; cursor: pointer; } .switch b { display: block; font-weight: 600; } .switch .hint { display: block; min-height: 0; }
.switch-input { appearance: none; width: 44px; height: 24px; flex: none; border-radius: 999px; background: var(--line-300); position: relative; cursor: pointer; transition: background 0.15s; }
.switch-input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform 0.15s; }
.switch-input:checked { background: var(--primary-600); } .switch-input:checked::before { transform: translateX(20px); }
@media (max-width: 900px) { .email-row, .inline-row { grid-template-columns: 1fr; } .email-row .email-save { margin-top: 0; } }

/* Settings: Blocked people */
.blocked-row { display: flex; align-items: center; gap: 12px; height: 40px; margin-top: 8px; }

/* review comments (src/dev/Feedback.tsx): frames on the page and the list beside the dev icons */
.fb-frame { position: fixed; z-index: 55; pointer-events: none; }
.fb-box { position: absolute; inset: 0; border: 1px dashed #d97706; border-radius: 2px; } .fb-box.done { border-color: #10b98199; }
.fb-num { position: absolute; left: -8px; top: -8px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #d97706; color: #fff; font-size: 10px; font-weight: 600; cursor: pointer; pointer-events: auto; } .fb-num.done { background: #059669; }
.fb-card { position: absolute; left: 16px; top: 16px; z-index: 56; width: 288px; pointer-events: auto; background: #1e1e1e; color: #d4d4d4; border-radius: 8px; padding: 12px; font-size: 12px; box-shadow: 0 8px 28px #0006; }
.fb-card p { margin: 0; white-space: pre-wrap; cursor: text; } .fb-card .fb-reply { margin-top: 8px; padding-top: 8px; border-top: 1px solid #3c3c3c; color: #9d9d9d; cursor: default; }
.fb-card textarea, .fb-draft textarea { width: 100%; height: 80px; resize: none; background: #252526; color: #d4d4d4; border: 1px solid #3c3c3c; border-radius: 6px; padding: 6px; font: inherit; font-size: 12px; } .fb-card textarea:focus, .fb-draft textarea:focus { border-color: #4fc1ff; box-shadow: none; outline: none; }
.fb-actions { display: flex; gap: 8px; margin-top: 8px; } .fb-actions.end { justify-content: flex-end; }
.fb-actions button { height: 24px; padding: 0 8px; border: 1px solid #3c3c3c; border-radius: 6px; background: #2d2d30; color: #d4d4d4; font: inherit; font-size: 12px; cursor: pointer; } .fb-actions button:hover { border-color: #4fc1ff; } .fb-actions .danger { color: #f87171; } .fb-actions .primary { background: #d97706; border-color: #d97706; color: #fff; }
.fb-pick { position: fixed; inset: 0; z-index: 65; cursor: crosshair; background: #0000000d; }
.fb-sel { position: absolute; border: 2px solid #d97706; background: #d9770619; border-radius: 2px; pointer-events: none; } .fb-sel.fixed { position: fixed; z-index: 65; }
.fb-draft { position: fixed; z-index: 66; width: 288px; background: #1e1e1e; border-radius: 8px; padding: 8px; box-shadow: 0 8px 28px #0006; }
.dev-filter { display: flex; flex-wrap: wrap; gap: 4px; } .dev-filter button { flex: 1 0 auto; white-space: nowrap; padding: 0 8px; height: 26px; border: 1px solid #3c3c3c; border-radius: 6px; background: #252526; color: #9d9d9d; font: inherit; font-size: 12px; cursor: pointer; } .dev-filter button.on { background: #264f78; color: #d4d4d4; border-color: #264f78; }
.dev-comment { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 8px; cursor: pointer; } .dev-comment:hover { background: #2d2d30; }
.dev-comment textarea { width: 100%; height: 64px; resize: none; background: #252526; color: #d4d4d4; border: 1px solid #3c3c3c; border-radius: 6px; padding: 6px; font: inherit; font-size: 12px; }
.dev-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #d97706; } .dev-dot.done { background: #059669; } .dev-dot.queued { background: #3b82f6; } .dev-dot.working { background: #a855f7; box-shadow: 0 0 0 3px #a855f733; }
.dev-progress { display: flex; flex-direction: column; gap: 3px; } .dev-bar { display: block; height: 4px; border-radius: 2px; background: #3c3c3c; overflow: hidden; } .dev-bar i { display: block; height: 100%; background: #a855f7; transition: width 0.3s; }
.fb-num.working { background: #a855f7; }
.dev-send { height: 30px; border: 0; border-radius: 6px; background: #3b82f6; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; } .dev-send:disabled { background: #252526; color: #6b6b6b; cursor: default; }
.dev-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; } .dev-sub.reply { color: #9d9d9d; white-space: normal; }
.dev-row-actions { display: flex; gap: 4px; flex: none; opacity: 0; } .dev-comment:hover .dev-row-actions, .dev-comment:focus-within .dev-row-actions { opacity: 1; } .dev-icon.sure { border-color: #f87171; color: #f87171; }

/* catalog: results that update without a jump, the sort as a group of toggle buttons, the searchable skill multi-select (like teamfind.app/projects) */
.results { transition: opacity 0.18s ease; } .results.stale { opacity: 0.5; pointer-events: none; }
.results .project { animation: result-in 0.18s ease both; } @keyframes result-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.segmented { display: flex; gap: 8px; } .segmented button { flex: 1; height: 32px; padding: 0 12px; border: 1px solid var(--line-300); border-radius: var(--r-chip); background: var(--surface); color: var(--ink-700); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer; } .segmented button:hover { background: var(--surface-alt); }
.segmented button.on { background: var(--primary-50); border-color: var(--primary-600); color: var(--primary-600); } .segmented button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.msel { position: relative; }
.msel-trigger { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line-300); border-radius: var(--r-control); background: var(--surface); cursor: pointer; } .msel-trigger:focus-visible { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-200); }
.msel-value { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; flex: 1; } .msel-placeholder { color: var(--ink-500); }
.msel-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border-radius: var(--r-badge); background: var(--primary-50); color: var(--primary-600); font-size: 12px; font-weight: 600; }
.msel-x { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--primary-600); font-size: 14px; line-height: 1; cursor: pointer; } .msel-x:hover { background: var(--primary-200); }
.msel-caret { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500); transform: translateY(-2px) rotate(45deg); } .msel-caret.up { transform: translateY(2px) rotate(-135deg); }
.msel-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--line-300); border-radius: var(--r-control); z-index: 40; box-shadow: 0 4px 12px -2px rgba(16, 24, 40, 0.12), 0 2px 4px -2px rgba(16, 24, 40, 0.08); overflow: hidden; } /* a small shadow: the dropdowns are not windows */ .msel-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.msel-searchbox { position: relative; } .msel-search { height: 36px; padding-right: 36px; } .msel-search::-webkit-search-cancel-button, .msel-search::-webkit-search-decoration { appearance: none; display: none; }
.msel-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-badge); background: none; color: var(--ink-500); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .msel-search-clear:hover { background: var(--surface-alt); color: var(--ink-900); } .msel-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.msel-group { margin: 0; padding: 0; border: 0; min-width: 0; } .msel-group .msel-group { margin-left: 12px; }
.msel-title { padding: 6px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); }
.msel-group.depth-1 > .msel-title { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-700); } .msel-group.depth-2 > .msel-title, .msel-group.depth-3 > .msel-title { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-500); }
.msel-option { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--r-badge); font-size: 14px; cursor: pointer; } .msel-option:hover { background: var(--surface-alt); } .msel-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-600); }
.msel-empty { margin: 0; padding: 8px; font-size: 13px; color: var(--ink-500); } .msel-foot { display: flex; justify-content: flex-end; } .msel-clear { padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--primary-600); cursor: pointer; }

/* the comments panel: wide, a kanban board (Drafts / Sent / In work / Done), an Archive for a finished round */
.dev-users.dev-comments { width: min(1200px, calc(100vw - 92px)); max-height: 86vh; }
.dev-board { display: grid; grid-template-columns: 1fr; gap: 10px; min-height: 0; overflow: hidden; flex: 1; } .dev-board.kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dev-col { display: flex; flex-direction: column; gap: 6px; min-height: 0; background: #252526; border-radius: 8px; padding: 8px; }
.dev-col h4 { margin: 0; font-size: 12px; font-weight: 600; color: #9d9d9d; text-transform: uppercase; letter-spacing: 0.04em; } .dev-col h4 b { color: #d4d4d4; margin-left: 4px; }
.dev-col .dev-list { max-height: calc(86vh - 200px); } .dev-col .dev-comment { background: #1e1e1e; } .dev-col .dev-comment:hover { background: #2d2d30; }
.dev-send.archive { background: #059669; }
.dev-dot.archived { background: #6b6b6b; }

/* round page buttons of the design, the gap "…", the list / mosaic switch, outlined chips, "load more" */
.page-btn { border-radius: 999px; } .page-btn.gap { display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.view-toggle { display: inline-flex; gap: 4px; padding: 2px; border: 1px solid var(--line-300); border-radius: var(--r-control); background: var(--surface); }
.view-toggle button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-500); cursor: pointer; }
.view-toggle button:hover { color: var(--ink-900); } .view-toggle button.on { background: var(--primary-50); color: var(--primary-600); } .view-toggle button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.chip .icon { flex: none; color: var(--ink-500); } .chip.brand .icon { color: inherit; }
.chip.outline { background: var(--surface); border: 1px solid var(--line-300); color: var(--ink-700); } .chip.outline.brand { border-color: var(--primary-200); background: var(--primary-50); color: var(--primary-600); }
.chip.outline.warn { border-color: var(--warning-200); } .chip.outline.ok { border-color: #abefc6; } .chip.outline.danger { border-color: var(--danger-200); }
.load-more { display: flex; justify-content: center; margin: 24px 0; }
.found-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; } .found-row .found { margin: 0 ; } .found-row .view-toggle { margin-left: auto; }
.results.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; } .results.mosaic .project { margin: 0; display: flex; flex-direction: column; min-width: 0; }
/* the square cards are one height whatever the description is: it shows three lines, the match summary stays at the bottom */
.results.mosaic .project > p:not(.byline):not(.slots-summary) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.results.mosaic .project .slots-summary { margin-top: auto; padding-top: 12px; }
@media (max-width: 1100px) { .results.mosaic { grid-template-columns: 1fr; } }
/* the filters card stays where it is while the list scrolls: it never grows past the window (it scrolls inside, without a bar) */
.filters { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; }
/* a chip button that does not fit its row (a long Russian label) takes a row of its own and wraps its text instead of leaving the card */
.filters .toggle { max-width: 100%; height: auto; min-height: 32px; padding: 6px 14px; text-align: left; white-space: normal; line-height: 18px; }
.filters .segmented { flex-wrap: wrap; } .filters .segmented button { flex: 1 1 auto; height: auto; min-height: 32px; padding: 6px 12px; white-space: normal; line-height: 18px; }
/* the skill filter: an icon at the left opens a window with every skill (the groups in columns) */
.msel-row { display: flex; align-items: flex-start; gap: 8px; } .msel-row > .msel { flex: 1; min-width: 0; }
.icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-300); border-radius: var(--r-control); background: var(--surface); color: var(--ink-500); cursor: pointer; }
.icon-btn:hover { color: var(--primary-600); border-color: var(--primary-300); } .icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.dialog.wide { width: min(1320px, 96vw); height: min(780px, 92vh); max-height: none; overflow: hidden; display: flex; flex-direction: column; } .dialog.wide h2 { margin-top: 0; flex: none; }
.skill-modal { flex: 1; min-height: 0; margin: 12px 0 0; padding-right: 6px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 20px; align-items: start; } .skill-modal .msel-group { margin-bottom: 4px; min-width: 0; } .skill-modal .msel-option span { overflow-wrap: anywhere; } .skill-modal .msel-empty { grid-column: 1 / -1; }
.dialog.wide .msel-searchbox, .dialog.wide .actions { flex: none; }
.dialog .actions .grow { align-self: center; }
/* members: the chip rows of the design inside the filter card, the sort chips beside the title, the list view (a row each) */
.filter-bar .chip-row, .filter-bar .reset { grid-column: 1 / -1; } .chip-row { display: flex; align-items: flex-start; gap: 12px; } .chip-row .chips { flex: 1; min-width: 0; }
.chip-row-label { flex: none; width: 64px; padding-top: 5px; color: var(--ink-700); } .sort-row { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.link-btn { border: 0; background: none; padding: 4px 6px; color: var(--primary-600); font: inherit; font-weight: 500; cursor: pointer; } .link-btn:hover { color: var(--primary-700); } .link-btn.reset { justify-self: start; }
.members-list { display: flex; flex-direction: column; gap: 12px; } .members-list .member { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; } .members-list .member .chips { justify-content: flex-end; max-width: 55%; }
@media (max-width: 900px) { .chip-row { flex-direction: column; gap: 4px; } .chip-row-label { width: auto; padding-top: 0; } .members-list .member { flex-direction: column; align-items: flex-start; } .members-list .member .chips { justify-content: flex-start; max-width: none; } }
/* the language switch: dim (no transition), render, then fade back in */
#root { transition: opacity 0.35s ease; } html.lang-switching #root { opacity: 0.25; transition: none; }
.auth-main { position: relative; } .auth-lang { position: absolute; top: 24px; right: 32px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #root { transition: none; } }
/* the project page: breadcrumbs instead of the back link, more air, the type of the design used with its weight */
.crumbs { display: flex; align-items: center; gap: 4px; margin: 0 0 24px; font-size: 14px; line-height: 20px; color: var(--ink-500); } .crumbs a { color: var(--ink-500); font-weight: 500; } .crumbs a:hover { color: var(--primary-600); } .crumbs [aria-current] { color: var(--ink-900); font-weight: 500; } .crumbs .icon { color: var(--ink-400); }
.project-page .page-head { margin-bottom: 20px; align-items: flex-start; } .project-page h1 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; }
.project-page .lead-line { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--ink-700); margin: 8px 0 0; }
.project-page .chips { margin: 0 0 20px; gap: 8px 8px; }
.project-page .byline { font-size: 14px; line-height: 20px; color: var(--ink-500); margin: 0 0 16px; } .project-page .byline::first-line { color: var(--ink-700); font-weight: 600; }
.project-about { font-size: 16px; line-height: 24px; color: var(--ink-900); margin: 0 0 20px; max-width: 70ch; }
.project-page h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 40px 0 16px; }
.slot-skills { margin-top: 8px; gap: 6px; } .slot-skills .chip { height: 26px; font-weight: 500; } .slot-skills .chip b { font-weight: 600; }
.project-page .slot-card { margin-bottom: 16px; padding: 16px; } .project-page .slot { padding: 16px; gap: 16px; }
.skill-level-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 190px; } .skill-level-pick input[type='range'] { flex: 1; height: 24px; padding: 0; border: 0; accent-color: var(--primary-600); } .skill-level-pick .level-text { white-space: nowrap; min-width: 84px; }
.skills > .row { flex-wrap: wrap; }
/* the thread of a comment: the agent's answers and the owner's replies; a reply sends the comment to the agent again */
.fb-thread { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #3c3c3c; cursor: default; }
.fb-thread .fb-msg { margin: 0; padding: 4px 8px; border-left: 2px solid #3c3c3c; color: #9d9d9d; white-space: pre-wrap; font-size: 12px; } .fb-thread .fb-msg b { color: #d4d4d4; font-weight: 600; margin-right: 4px; } .fb-thread .fb-msg.you { border-left-color: #4fc1ff; color: #d4d4d4; }
.fb-replybox { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; } .fb-replybox textarea { width: 100%; height: 52px; resize: none; background: #252526; color: #d4d4d4; border: 1px solid #3c3c3c; border-radius: 6px; padding: 6px; font: inherit; font-size: 12px; } .fb-replybox textarea:focus { outline: none; border-color: #4fc1ff; box-shadow: none; }
.fb-replybox button { height: 24px; padding: 0 10px; border: 0; border-radius: 6px; background: #3b82f6; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; } .fb-replybox button:disabled { background: #252526; color: #6b6b6b; cursor: default; }
/* the landing: the page still scrolls, the bar of the window is not drawn */
.chip-row .msel-row .msel { max-width: none; }
/* the agent's answer at the place of a done comment (or its question): under the frame, above it near the bottom of the window */
.fb-bubble { position: absolute; left: 0; top: calc(100% + 6px); z-index: 56; width: 280px; max-width: 70vw; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; text-align: left; border: 0; border-left: 3px solid #059669; border-radius: 6px; background: #1e1e1e; color: #d4d4d4; font: inherit; font-size: 12px; line-height: 16px; box-shadow: 0 6px 20px #0005; cursor: pointer; pointer-events: auto; }
.fb-bubble.ask { border-left-color: #d97706; } .fb-bubble.above { top: auto; bottom: calc(100% + 6px); } .fb-bubble b { font-weight: 600; color: #9d9d9d; font-size: 11px; }
.fb-bubble span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; } .fb-bubble:hover { background: #2d2d30; }
/* a click on a comment in the list: the page scrolls to the frame and the frame blinks three times */
@keyframes fb-blink { 0%, 100% { box-shadow: 0 0 0 0 #fbbf2400; background: #d9770600; } 50% { box-shadow: 0 0 0 6px #fbbf24aa, 0 0 24px 6px #fbbf2466; background: #fbbf2433; } }
.fb-box.blink { animation: fb-blink 0.8s ease-in-out 3; border-width: 2px; } .fb-num.blink { animation: fb-blink 0.8s ease-in-out 3; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .fb-box.blink, .fb-num.blink { animation: none; box-shadow: 0 0 0 4px #fbbf24aa; } }
.fb-archive { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; height: 22px; padding: 0 8px; border: 1px solid #3c3c3c; border-radius: 6px; background: #2d2d30; color: #d4d4d4; font: inherit; font-size: 11px; cursor: pointer; } .fb-archive:hover { border-color: #10b981; color: #10b981; }
/* a select box never changes its size: one line, the chips that do not fit are cut and the box ends with "…" */
.msel-trigger { height: 40px; min-height: 40px; overflow: hidden; position: relative; } .msel-value { flex-wrap: nowrap; overflow: hidden; } .msel-value > * { flex: none; }
.msel-more { position: absolute; right: 32px; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 6px 0 14px; color: var(--ink-500); font-weight: 600; background: linear-gradient(90deg, #fff0, var(--surface) 40%); pointer-events: none; }
.chip-row .msel-row { flex: 1; min-width: 0; max-width: 560px; }
/* the window with every variant: sized by what it holds (a flat list: its columns and rows; a tree: large), the cross closes it, no footer */
.dialog { position: relative; } .dialog-x { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-control); background: none; color: var(--ink-500); cursor: pointer; } .dialog-x:hover { background: var(--surface-alt); color: var(--ink-900); }
.dialog.wide h2 { padding-right: 40px; } .picker-search { display: flex; align-items: center; gap: 12px; flex: none; } .picker-search .grow { flex: 1; min-width: 0; }
.dialog.wide:has(.skill-modal.flat) { width: min(96vw, calc(var(--cols) * 244px + 64px)); height: min(92vh, calc(var(--rows) * 36px + 150px)); min-width: min(96vw, 360px); }
.skill-modal.flat { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), min-content); grid-auto-flow: column; gap: 0 20px; margin-top: 8px; } .skill-modal.flat .msel-option { height: 36px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 600px) { .skill-modal.flat { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
/* the field of a multi-select is a real <input> in a box of a fixed size: closed, whole chips and "…"; a click or focus opens the dropdown and the input searches */
.msel-trigger { display: flex; align-items: center; gap: 8px; height: 40px; min-height: 40px; padding: 0 12px; position: relative; overflow: hidden; cursor: text; }
.msel-trigger:focus-within, .msel-trigger.open { border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-200); }
.msel-value { position: relative; z-index: 1; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; overflow: hidden; pointer-events: none; } .msel-value .msel-x { pointer-events: auto; }
.msel-chip.hid { visibility: hidden; } .msel-etc { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink-500); font-weight: 600; line-height: 1; }
.msel-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 36px 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 0; cursor: pointer; font: inherit; }
.msel-input.on { position: static; flex: 1; min-width: 0; width: auto; padding: 0; opacity: 1; cursor: text; } .msel-input:focus { border: 0; box-shadow: none; outline: none; }
.msel-count { flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); font-size: 12px; font-weight: 600; }
.msel-caret { flex: none; position: relative; z-index: 0; }
.msel-panel { margin-top: 0; }
.dialog.wide .picker-search .msel-searchbox { flex: 1; min-width: 0; }
.msel-placeholder { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 50; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--primary-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px #0003; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; } .to-top.shown { opacity: 1; visibility: visible; transform: none; } .to-top:hover { background: var(--primary-700); }
.head-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.msel-chip-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .msel-value > .msel-chip { flex: 0 1 auto; min-width: 0; max-width: 100%; } .msel-value > .msel-chip.hid { display: none; }
.msel-chip .msel-x { flex: none; }
.page-head .found { margin: 0; }
.filter-actions { display: flex; gap: 8px; padding-top: 8px; } .filter-actions .btn { flex: 1; } .filter-actions .btn.primary { gap: 6px; }
.dialog.wide .cfg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; padding-right: 6px; } .cfg-section { padding: 16px 0; border-top: 1px solid var(--line-200); } .cfg-section:first-child { border-top: 0; padding-top: 4px; } .cfg-section h3 { margin: 0 0 8px; font-size: 16px; } .cfg-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 20px; }
.cfg-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-200); }
.msel-reset { flex: none; position: relative; z-index: 2; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-500); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .msel-reset:hover { background: var(--surface-alt); color: var(--ink-900); }
.cfg-section input[type=search] { width: 100%; }
.filter-switch { margin: 16px 0 12px; gap: 12px; }
.filters .filter-switch .switch-input { width: 44px; min-width: 44px; height: 24px; padding: 0; border: 0; margin: 0; }
.cfg-section .msel-group { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; } .cfg-section .msel-title { font-weight: 600; padding: 0; margin-bottom: 4px; } .cfg-section .filter-switch { max-width: 360px; }
.cfg-section .filter-switch { margin: 0; }
/* the skills of the filters window: an expandable nested list with a search and Expand / Collapse all */
.skill-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .skill-tools input[type=search] { flex: 1; min-width: 0; width: auto; }
.skill-row { display: flex; align-items: center; gap: 2px; min-height: 28px; } .skill-row .msel-option { flex: 1; min-width: 0; } .skill-node.depth-0 > .skill-row .msel-option { font-weight: 600; }
.skill-chevron { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-500); } button.skill-chevron { cursor: pointer; } button.skill-chevron:hover:not(:disabled) { background: var(--primary-50); color: var(--ink-900); } button.skill-chevron:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.skill-children { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-200); }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-header .lang-switch { margin-left: 0; gap: 8px; } .site-header .lang-switch .toggle { height: 40px; min-height: 40px; padding: 0 16px; border-radius: var(--r-control); font-size: 14px; font-weight: 500; line-height: 20px; }
.site-header .lang-switch .toggle.on { background: var(--accent-50); border-color: var(--accent); color: var(--accent); }
/* the two buttons of the hero: the look of the buttons of teamfind.app (44px high, 2px border, 8px radius, 16px / 500 text, blue #496afd, hover #2040cd, pressed #0f2791) */
.lp-hero-actions .btn { height: 44px; padding: 8px 14px; border: 2px solid #496afd; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 500; transition: 0.3s; }
.lp-hero-actions .btn.primary { background: #496afd; color: #fff; } .lp-hero-actions .btn.primary:hover { background: #2040cd; border-color: #2040cd; } .lp-hero-actions .btn.primary:active { background: #0f2791; border-color: #0f2791; }
.lp-hero-actions .btn.outline { background: transparent; color: #496afd; } .lp-hero-actions .btn.outline:hover { background: transparent; border-color: #2040cd; color: #2040cd; } .lp-hero-actions .btn.outline:active { background: rgba(0, 0, 0, 0.1); border-color: #0f2791; color: #0f2791; }

/* ===== the landing and the public frame as teamfind.app draws them (measured on the live page at 1653px) ===== */
.lp-wrap { max-width: 1270px; padding-left: 20px; padding-right: 20px; }
.site-header { padding-left: max(20px, calc((100% - 1230px) / 2)); padding-right: max(20px, calc((100% - 1230px) / 2)); }
@media (min-width: 1101px) {
  .site-header { height: 88px; gap: 0; }
  .site-brand { font-size: 24px; line-height: 36px; }
  .site-header nav { gap: 32px; margin-left: 32px; }
  .header-actions { gap: 16px; }
  .header-actions .btn { height: 32px; padding: 0 14px; border-width: 2px; border-radius: 8px; font-size: 16px; line-height: 20px; font-weight: 500; }
  .site-header .lang-switch { gap: 16px; }
  .site-header .lang-switch .toggle { height: 32px; min-height: 32px; padding: 0 14px; border-width: 2px; line-height: 20px; }

  .lp-home .lp-hero { min-height: 700px; background: #fff url(/static/landing/hero.png) right 0 top 50px / auto 650px no-repeat; padding-top: 64px; }
  .lp-home .lp-hero-inner { min-height: 636px; padding-top: 0; padding-bottom: 0; }
  .lp-home .lp-hero-text { max-width: 602px; }
  .lp-home .lp-badge { height: 40px; padding: 0 16px; border-radius: 32px; font-size: 16px; line-height: 24px; background: #e2d3fe; color: #8230ca; }
  .lp-home .lp-badge.blue { background: #d2e1ff; color: #496afd; } .lp-home .lp-badge.light { background: #e2d3fe; color: #8230ca; }
  .lp-home .lp-hero h1 { margin: 24px 0; font-size: 64px; line-height: 77px; font-weight: 700; }
  .lp-home .lp-hero h1 span, .lp-home h1 em { color: #496afd; font-style: normal; }
  .lp-home .lp-hero p { max-width: 504px; font-size: 24px; line-height: 36px; font-weight: 500; color: var(--ink-900); }
  .lp-home .lp-hero-actions { margin-top: 170px; padding-bottom: 0; }
  .lp-home .lp-hero-actions .row { margin-bottom: 16px; }
  .lp-home .lp-proof { gap: 12px; font-size: 12px; line-height: 18px; font-weight: 400; max-width: 220px; } .lp-home .lp-faces img { width: 40px; height: 40px; }

  .lp-home .lp-section { padding: 0; margin: 80px 0; background: transparent; }
  .lp-home .lp-section.tight { margin: 80px 0 0; padding: 0 0 80px; }
  .lp-home .lp-section h2 { margin: 0 0 40px; font-size: 48px; line-height: 58px; font-weight: 700; }
  .lp-home .lp-section h2 em { color: #496afd; font-style: normal; }
  .lp-home .lp-grid3, .lp-home .lp-grid4 { gap: 16px; }

  .lp-home .lp-card { min-height: 400px; padding: 32px; border-radius: 32px; }
  .lp-home .lp-card.violet { background: #ede5fd; } .lp-home .lp-card.blue { background: #e7eefd; } .lp-home .lp-card.lime { background: #f4ffc2; }
  .lp-home .lp-card h3 { margin: 0 0 16px; font-size: 32px; line-height: 40px; font-weight: 700; }
  .lp-home .lp-card p { font-size: 24px; line-height: 36px; font-weight: 500; color: var(--ink-900); }
  .lp-home .lp-card > img { right: 0; bottom: 0; width: 260px; height: 220px; opacity: .9; }

  .lp-home .lp-step { background: none; box-shadow: none; border-radius: 0; padding: 0; }
  .lp-home .lp-step-top { position: relative; width: 192px; height: 192px; }
  .lp-home .lp-tile { width: 192px; height: 192px; border-radius: 24px; background: #e7eefd; } .lp-home .lp-tile img { width: 156px; height: 156px; }
  .lp-home .lp-num { position: absolute; top: -26px; right: -16px; width: 52px; height: 52px; background: #496afd; font-size: 32px; line-height: 40px; font-weight: 700; }
  .lp-home .lp-step h3 { margin: 16px 0 0; font-size: 24px; line-height: 36px; font-weight: 700; color: #496afd; }
  .lp-home .lp-step p { margin: 16px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink-900); }

  .lp-home .lp-panels { gap: 16px; }
  .lp-home .lp-panel { min-height: 398px; padding: 32px 40px; border-radius: 32px; overflow: hidden; }
  .lp-home .lp-panel.blue { background: #e7eefd; } .lp-home .lp-panel.violet { background: #ede5fd; }
  .lp-home .lp-panel h3 { margin: 16px 0 0; font-size: 28px; line-height: 34px; font-weight: 700; max-width: 320px; }
  .lp-home .lp-panel ul { margin: 16px 0 16px; } .lp-home .lp-panel li { padding: 0 0 0 24px; margin: 0 0 7px; font-weight: 500; line-height: 24px; } .lp-home .lp-panel li::before { top: 4px; width: 16px; height: 16px; line-height: 16px; font-size: 10px; background: #496afd; color: #fff; box-shadow: none; }
  .lp-home .lp-panel.violet li::before { background: #8230ca; }
  .lp-home .lp-panel .btn.primary { height: 44px; padding: 10px 16px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 500; background: #496afd; }
  .lp-home .lp-panel.violet .btn.primary { background: #8230ca; }
  .lp-home .lp-panel > img { right: 0; bottom: 10px; width: 330px; height: 330px; }

  .lp-home .lp-head { margin-bottom: 40px; } .lp-home .lp-head h2 { margin: 0; } .lp-home .lp-head a { padding: 10px 16px; font-size: 16px; line-height: 24px; font-weight: 500; color: #496afd; }
  .lp-home .lp-post { background: none; box-shadow: none; border-radius: 0; } .lp-home .lp-post > img { height: 264px; border-radius: 24px; }
  .lp-home .lp-post-body { padding: 0; gap: 0; } .lp-home .lp-post-body h3 { margin: 16px 0 0; font-size: 32px; line-height: 40px; font-weight: 700; }
  .lp-home .lp-post-body p { margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink-900); flex: none; }
  .lp-home .lp-post-body .muted { order: 5; margin-top: 8px; } .lp-home .lp-post-body a { margin-top: 4px; color: #496afd; }

  .lp-home .lp-reviews .lp-card { display: flex; flex-direction: column; min-height: 0; padding: 20px 32px; border-radius: 24px; }
  .lp-home .lp-reviews .lp-card p { margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink-900); }
  .lp-home .lp-reviews .lp-card.violet { background: #ede5fd; } .lp-home .lp-reviews .lp-card.blue { background: #e7eefd; }
  .lp-home .lp-author { order: -1; margin: 0; gap: 12px; } .lp-home .lp-author img { width: 46px; height: 46px; border: 2px solid #fff; background: #fff; }
  .lp-home .lp-author strong { font-size: 20px; line-height: 24px; font-weight: 700; } .lp-home .lp-author .muted { font-size: 14px; line-height: 24px; color: var(--ink-900); }
}
.site-footer { margin-top: 96px; padding: 40px 0 56px; }
.site-footer h4 { margin: 0 0 20px; font-size: 24px; line-height: 36px; font-weight: 700; color: #496afd; }
.site-footer .muted, .site-footer p.muted { color: #7a7a7a; font-weight: 500; }
.site-footer .foot-bottom .muted { font-size: 12px; line-height: 18px; font-weight: 400; }
.site-footer .social { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #496afd; font-weight: 600; box-shadow: none; }
.lp-home { background: #fff; }
@media (min-width: 1101px) {
  .lp-home .lp-proof { max-width: 360px; } .lp-home .lp-proof > span:last-child { max-width: 200px; }
  .lp-home .lp-card > img { right: 16px; bottom: 16px; width: 200px; height: 150px; opacity: 1; }
}
@media (min-width: 1101px) { .site-header .lang-switch .toggle { font-size: 16px; } }
@media (min-width: 1101px) {
  .lp-home .lp-proof { gap: 0; max-width: none; margin-top: 16px; }
  .lp-home .lp-faces img { width: 56px; height: 56px; border: 3px solid #fff; margin-right: -22px; }
  .lp-home .lp-proof h5 { margin: 0 0 0 38px; max-width: 200px; font-size: 14px; line-height: 17px; font-weight: 500; color: #7a7a7a; } .lp-home .lp-proof h5 strong { font-weight: 700; }
  .lp-home .lp-hero-actions .row { margin-bottom: 0; }
}
/* the menu as teamfind.app draws it: 16/24 medium links with 10px 16px padding, 10px radius, ink colour, blue on hover, dark blue pressed; the logo 24/36 bold #496afd */
.site-brand { font-weight: 700; color: #496afd; transition: 0.3s; }
.site-header nav a, .site-header nav a.on { color: #09090c; font-weight: 500; transition: 0.3s; }
.site-header nav a:hover { color: #496afd; } .site-header nav a:active { color: #0f2791; }
.header-actions .btn.secondary { color: #8230ca; border-color: #8230ca; } .header-actions .btn.secondary:hover { color: #6000b3; border-color: #6000b3; background: transparent; } .header-actions .btn.secondary:active { color: #400077; border-color: #400077; background: rgba(0, 0, 0, 0.1); }
.header-actions .btn.accent { background: #8230ca; border-color: #8230ca; } .header-actions .btn.accent:hover { background: #6000b3; border-color: #6000b3; } .header-actions .btn.accent:active { background: #400077; border-color: #400077; }
@media (min-width: 1101px) {
  .site-header nav { gap: 16px; margin-left: 16px; }
  .site-header nav a { padding: 10px 16px; font-size: 16px; line-height: 24px; border-radius: 10px; }
}
/* the two panels as on teamfind.app: the button stands at the bottom of the block, the picture is large and sits on the right edge, cut by the panel */
@media (min-width: 1101px) {
  .lp-home .lp-panel { display: flex; flex-direction: column; align-items: flex-start; height: 398px; min-height: 398px; }
  .lp-home .lp-panel ul { margin-bottom: 0; }
  .lp-home .lp-panel .btn.primary { margin-top: auto; }
  .lp-home .lp-panel > img { right: 0; bottom: 10px; object-fit: cover; }
  .lp-home .lp-panel.blue > img { top: 44px; bottom: 10px; width: 320px; height: 344px; object-position: left center; }
  .lp-home .lp-panel.violet > img { top: 0; bottom: 10px; width: 414px; height: 388px; object-position: center bottom; }
}
@media (min-width: 1101px) { .lp-home .lp-panel.blue > img { top: 28px; bottom: auto; right: -36px; width: 400px; height: 400px; object-fit: contain; } }
/* the buttons of the closing banner have the look of the hero buttons */
.lp-banner .btn { height: 44px; padding: 8px 14px; border: 2px solid #496afd; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 500; transition: 0.3s; }
.lp-banner .btn.primary { background: #496afd; color: #fff; } .lp-banner .btn.primary:hover { background: #2040cd; border-color: #2040cd; } .lp-banner .btn.primary:active { background: #0f2791; border-color: #0f2791; }
.lp-banner .btn.outline { background: transparent; color: #496afd; } .lp-banner .btn.outline:hover { background: transparent; border-color: #2040cd; color: #2040cd; } .lp-banner .btn.outline:active { background: rgba(0, 0, 0, 0.1); border-color: #0f2791; color: #0f2791; }
.lp-banner .row { gap: 16px; }
/* on the lavender banner the outline button is indigo on white: the blue outline on the lavender did not read well */
.lp-banner .btn.outline { background: #fff; color: #3730a3; border-color: #3730a3; }
.lp-banner .btn.outline:hover { background: #eef2ff; color: #312e81; border-color: #312e81; }
.lp-banner .btn.outline:active { background: #e0e7ff; color: #1e1b4b; border-color: #1e1b4b; }
/* the logo (24px) sits 2px lower on the baseline than the 16px menu and buttons when everything is centered: lift it so the three share one text line */
@media (min-width: 1101px) { .site-brand { position: relative; top: -2px; } }
/* the public pages (projects, members, blog, a member) use the container of the landing and of teamfind.app: content 1230px wide */
.site-main > .page:not(.narrow) { max-width: 1270px; padding-left: 20px; padding-right: 20px; }
/* the public pages have no tinted background, like teamfind.app/projects: a white page, cards lifted by a soft shadow (0 8px 24px at 7%) */
.site-main { background: #fff; }
.site-main .card { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07); }

/* ===== the left panel of the sign in / sign up pages as on teamfind.app/app/login (soft colour blobs, a white card with the brand, two tinted cards, a trust card), the content centred in the panel ===== */
@media (min-width: 1101px) {
  .auth-page { grid-template-columns: 560px minmax(0, 1fr); }
  .auth-hero { position: relative; overflow: hidden; justify-content: center; align-items: center; gap: 32px; padding: 48px; background:
    radial-gradient(circle at 6% 4%, rgba(196, 170, 247, 0.9) 0, rgba(196, 170, 247, 0) 220px),
    radial-gradient(circle at 70% 4%, rgba(160, 214, 250, 0.85) 0, rgba(160, 214, 250, 0) 200px),
    radial-gradient(circle at 2% 78%, rgba(187, 245, 205, 0.9) 0, rgba(187, 245, 205, 0) 230px),
    radial-gradient(circle at 92% 86%, rgba(255, 230, 190, 0.8) 0, rgba(255, 230, 190, 0) 200px), #fff; }
  .auth-panel, .hero-trust { position: relative; width: 464px; max-width: 100%; }
  .auth-panel { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: #fff; border: 1px solid #e7eaf2; border-radius: 28px; box-shadow: 0 12px 16px rgba(0, 0, 0, 0.04); }
  .auth-brand { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .auth-hero .logo-mark { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; font-weight: 800; background: #5f33e1; color: #fff; box-shadow: 0 10px 10px rgba(95, 51, 225, 0.2); margin-bottom: 8px; }
  .auth-brand strong { font-size: 28px; line-height: 24px; font-weight: 700; margin-top: 0; }
  .auth-brand .muted { margin-top: 8px; font-size: 12px; line-height: 24px; font-weight: 700; text-transform: uppercase; color: #7c5cff; }
  .auth-hero h2 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 700; } .auth-hero h2 span { color: inherit; }
  .auth-message { margin: -8px 0 0; max-width: none; font-size: 16px; line-height: 24px; color: #6e6a7c; }
  .hero-cards { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; }
  .hero-card { display: flex; flex-direction: column; gap: 12px; min-height: 170px; padding: 16px; border: 0; border-radius: 20px; box-shadow: none; }
  .hero-card.blue { background: #e7f3ff; } .hero-card.orange { background: #ffe9e1; }
  .hero-card-top { height: 24px; margin: 0; justify-content: flex-start; gap: 8px; }
  .hero-chip { width: 24px; height: 24px; border-radius: 8px; } .hero-chip.pink { background: #ffe4f2; } .hero-chip.violet { background: #ede4ff; }
  .hero-chip.pink::after { background: #ff4fa0; width: 8px; height: 8px; } .hero-chip.violet::after { background: #5f33e1; width: 8px; height: 8px; }
  .hero-count { height: 18px; padding: 0 6px; border-radius: 9px; background: #eee9ff; color: #5f33e1; font-size: 10px; line-height: 18px; font-weight: 700; }
  .hero-card strong { font-size: 14px; line-height: 24px; font-weight: 600; }
  .hero-card p { margin: 0; min-height: 48px; font-size: 11px; line-height: 24px; color: #6e6a7c; }
  .hero-card .bar { margin-top: auto; background: #fff; } .hero-card .bar i { background: #0087ff; } .hero-card.orange .bar i { background: #ff7d53; }
  .hero-trust { align-items: flex-start; gap: 12px; margin: 0; padding: 20px; background: #fff; border: 1px solid #e7eaf2; border-radius: 24px; box-shadow: 0 8px 12px rgba(0, 0, 0, 0.03); }
  .hero-trust-icon { width: 40px; height: 40px; margin: 0; border-radius: 12px; background: #ede8ff; } .hero-trust-icon::after { width: 12px; height: 12px; background: #5f33e1; }
  .hero-trust strong { font-size: 14px; line-height: 24px; font-weight: 700; margin-bottom: 4px; } .hero-trust p { margin: 0; font-size: 12px; line-height: 24px; color: #6e6a7c; max-width: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.auth-card h1.sr-only + .lead { margin-top: 0; }
/* the cabinet uses the whole width next to the sidebar (no 1040px column with an empty strip on the right); the language switch is at the right edge, like on the login page */
.cabinet-main { max-width: none; }
/* the room of the scrollbar is always reserved, so a page with and a page without a scrollbar have the same width and nothing shifts when you move between them */
html { scrollbar-gutter: stable; }
/* the Found line stands on the left border of the member cards (the same column as the list below), the title above the filters */
@media (min-width: 901px) { .members-head { display: grid; grid-template-columns: 272px 1fr auto; column-gap: 24px; } }
.head-create { width: 34px; height: 34px; padding: 0; border-radius: var(--r-control); } .head-create .icon { flex: none; }
.head-tools { flex-wrap: nowrap; }
.site-footer { margin-top: 0; } .site-main { padding-bottom: 0; } .site-main > .lp { padding-bottom: 96px; } /* only the landing and About have air above the footer: a short page (a project) does not scroll because of it */
/* the sign in pages never scroll sideways: below the width where the panel and the card no longer fit together (1100px) the panel is hidden, and the single column may shrink */
@media (max-width: 1100px) { .auth-page { grid-template-columns: minmax(0, 1fr); } .auth-hero { display: none; } }
.auth-main { min-width: 0; } .card.auth-card { min-width: 0; }

/* ===== Professions as the live teamfind.app/app/professions draws it: the add card, the tabs with a cross, the level pills and the skill table with coloured scales ===== */
.pf-add .chips { gap: 12px; } .pf-add .toggle, .pf-level .toggle { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.pf-add p, .pf-mine h2 + .pf-tabs { margin-bottom: 16px; }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line-200); margin: 16px 0 24px; }
.pf-tab { display: flex; align-items: center; gap: 4px; padding: 0 12px 0 0; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; color: var(--ink-500); }
.pf-tab > button[role='tab'] { background: none; border: 0; padding: 12px 4px 12px 16px; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.pf-tab.on { background: #fff; border-color: var(--line-200); color: var(--primary-600); }
.pf-x { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0 4px; font-size: 18px; line-height: 1; color: var(--primary-600); cursor: pointer; } .pf-x:disabled { visibility: hidden; } .pf-x:hover { color: var(--primary-800); }
.pf-level { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; } .pf-level-label { font-weight: 600; margin-right: 4px; }
.pf-level .toggle.on { background: #ede9fe; border-color: var(--primary-600); color: var(--primary-600); }
.pf-hint { margin: 0 0 24px; }
.pf-table { border: 1px solid var(--line-200); border-radius: 16px; overflow: hidden; background: #fff; }
.pf-thead, .pf-row { display: grid; grid-template-columns: minmax(160px, 1fr) 170px 150px 40px; align-items: center; column-gap: 16px; padding: 0 24px; }
.pf-thead { height: 44px; background: #fafafa; border-bottom: 1px solid var(--line-200); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-500); } .pf-thead span:nth-child(2) { grid-column: 2; }
.pf-group { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 24px 8px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink-900); }
.pf-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--ink-500); }
.pf-row { min-height: 44px; padding-top: 4px; padding-bottom: 4px; } .pf-skill { font-size: 16px; line-height: 24px; padding-left: 16px; }
.pf-row .meter { gap: 4px; } .pf-row .seg { width: 13px; height: 22px; border-radius: 4px; background: #f1f3f6; border: 1px solid #e6e9ef; }
.pf-row .seg.on.low { background: #f94b4b; border-color: #f94b4b; } .pf-row .seg.on.mid { background: #fdc83f; border-color: #fdc83f; } .pf-row .seg.on.high { background: #3fc364; border-color: #3fc364; }
.pf-rating { display: flex; align-items: center; gap: 8px; }
.pf-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; background: #f1f3f6; color: var(--ink-500); }
.pf-pill.low { background: #fde8e8; color: #b42318; } .pf-pill.mid { background: #fef0d9; color: #b54708; } .pf-pill.high { background: #e3f6ea; color: #067647; }
@media (max-width: 900px) { .pf-thead { display: none; } .pf-row { grid-template-columns: 1fr auto; row-gap: 6px; } .pf-row .meter, .pf-row .pf-rating { grid-column: 1; } }
/* many professions: only the row of tabs scrolls sideways, never the page (the column and the card may shrink below the width of their content) */
.cabinet-main { min-width: 0; } .pf-mine { min-width: 0; }
.pf-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain; }
.pf-tab { flex: none; white-space: nowrap; }
/* the profession tabs wrap onto more rows when there are many: no sideways scroll at all */
.pf-tabs { flex-wrap: wrap; overflow: visible; gap: 8px 8px; } .pf-tab { white-space: normal; }
/* the settings use the whole width of the cabinet like the other pages (the forms stay as wide as their block) */
.settings { max-width: none; }
.list-title { margin: 24px 0 12px; font-size: 20px; line-height: 28px; font-weight: 700; } .list-title:first-child { margin-top: 0; }
/* Messages: the title stands above the two panels like on Professions, Friends and Settings, so the panels are a little lower */
.messages { height: calc(100vh - 176px); min-height: 420px; }
@media (max-width: 900px) { .messages { height: auto; min-height: 0; } }
/* Messages: the page itself never scrolls; the list of contacts and the messages scroll inside their own panels */
@media (min-width: 901px) {
  .app:has(.messages) { height: 100vh; min-height: 0; overflow: hidden; }
  .app:has(.messages) .cabinet { min-height: 0; height: 100%; }
  .cabinet-main:has(.messages) { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .cabinet-main:has(.messages) > section { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .cabinet-main:has(.messages) .messages { flex: 1; height: auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .messages .threads, .messages .chat { min-height: 0; overflow: hidden; } .messages .threads { overflow-y: auto; } .messages .chat .chat-body { min-height: 0; }
}
.project-list { display: flex; flex-direction: column; gap: 16px; }
.project-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0; } .project-row-main { min-width: 0; flex: 1; } .project-row-main p { margin: 4px 0 0; } .project-row-main .byline { margin-top: 8px; } .project-row-main .chips { margin-top: 8px; }
.project-row-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 700px) { .project-row { flex-direction: column; } }
/* the search of the Messages page: the field, the number of the hit (1 / 100), previous and next, and the marked text */
.messages-head { gap: 16px; } .msg-search { display: flex; align-items: center; gap: 8px; }
.msg-search-box { display: inline-flex; align-items: center; gap: 8px; height: 40px; width: 320px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-300); border-radius: var(--r-control); color: var(--ink-500); }
.msg-search-box:focus-within { border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-200); }
.msg-search-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; box-shadow: none; background: none; font: inherit; color: var(--ink-900); } .msg-search-box input:focus { outline: none; box-shadow: none; }
.msg-search-clear { display: inline-flex; border: 0; background: none; padding: 4px; color: var(--ink-500); cursor: pointer; border-radius: 50%; } .msg-search-clear:hover { background: var(--surface-alt); color: var(--ink-900); }
.msg-search-count { min-width: 64px; text-align: center; font-size: 14px; color: var(--ink-700); white-space: nowrap; }
.msg-search .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
mark.hit { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; } mark.hit.focus { background: #f59e0b; color: #fff; }
.bubble.focused { box-shadow: 0 0 0 2px #f59e0b; }
@media (max-width: 900px) { .messages-head { flex-wrap: wrap; } .msg-search-box { width: 100%; } .msg-search { width: 100%; flex-wrap: wrap; } }
.notif-list { display: flex; flex-direction: column; gap: 12px; } .notif { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 20px; }
.notif-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-50); color: var(--primary-600); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; } .home-head h2 { margin: 0; }
.home-list { display: flex; flex-direction: column; } .home-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line-200); } .home-row:first-child { border-top: 0; } .home-name { font-weight: 600; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* pressing a button gives it no background fill (the outline buttons stay outlines) */
.lp-hero-actions .btn.outline:active { background: transparent; }
.lp-banner .btn.outline:active { background: #fff; }
/* the role cards of a project page are white all through: no tinted block inside the card */
.project-page .slot { background: transparent; padding: 0; }
.msg-search-where { max-width: 220px; }
/* autoloading list: the row at the end that says more is coming */
.autoload { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 0 8px; color: var(--ink-500); font-size: 14px; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--line-300); border-top-color: var(--primary-600); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
/* an empty result: a banner that says so and offers the way out */
.empty-banner { display: flex; align-items: center; gap: 20px; padding: 24px 28px; margin-bottom: 16px; background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: var(--r-card); color: var(--primary-600); } .empty-banner h3 { margin: 0 0 4px; font-size: 18px; line-height: 24px; color: var(--ink-900); } .empty-banner p { margin: 0; }
@media (max-width: 700px) { .empty-banner { flex-direction: column; align-items: flex-start; } }
/* the empty result of Members and Projects: a big block in the middle of the list area */
.empty-banner { display: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 360px; padding: 48px 24px; margin-bottom: 16px; background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: var(--r-dialog); }
.empty-state-icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--primary-600); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15); margin-bottom: 8px; }
.empty-state h2 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; } .empty-state p { margin: 0; max-width: 440px; font-size: 16px; line-height: 24px; color: var(--ink-700); } .empty-state .btn { margin-top: 12px; }
.autoload { min-height: 72px; } .autoload:not(.on) { visibility: hidden; }
/* the end of the Projects list: free space under the Load more button, so the button is well above the footer and the filter card (which stops at the end of the list) has room */
[data-spec='catalog.list'] { padding-bottom: 120px; } .load-more { margin: 24px 0 0; }
/* the lists with filters (Projects, Members): the browser must not "keep" an old card in place when the list is replaced; the scroll is set by the page (scrollToList) */
html:has(.catalog), .catalog, .catalog * { overflow-anchor: none; }
/* Projects and Members: free space under the filter card, and the area never gets shorter than the window, so that an empty or short result does not make the page jump and does not bring the whole footer into view */
.catalog { min-height: calc(100vh - 32px); } .filters { margin-bottom: 16px; } /* the margin is room the sticky panel has to keep under it at the end of the list: it moves up by this much when the end is reached (it was 48) */
@media (max-width: 900px) { .catalog { min-height: 0; } .filters { margin-bottom: 0; } }
/* the buttons at the top right as the TeamFind design has them (Figma, header: 44px high, 16px between, 8px radius, 16/24 medium text, padding 10px 16px) */
@media (min-width: 1101px) {
  .header-actions { gap: 16px; }
  .header-actions .btn { height: 44px; padding: 10px 16px; border-width: 2px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 500; }
  .site-header .lang-switch { gap: 16px; }
  .site-header .lang-switch .toggle { height: 44px; min-height: 44px; padding: 10px 16px; border-width: 2px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 500; }
}
/* the text of EN / RU stands exactly in the middle of the button (a flex box, no padding that leaves less room than the line) */
@media (min-width: 1101px) { .site-header .lang-switch .toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; } }
/* Messages: the filter of the chats (All, Friends, Projects, Favorites with the icons of the menu) and the star of a favorite */
.thread-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; padding: 0 4px; }
.thread-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-300); border-radius: var(--r-chip); background: var(--surface); color: var(--ink-700); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; } .thread-filter:hover { background: var(--surface-alt); }
.thread-filter.on { background: var(--primary-50); border-color: var(--primary-600); color: var(--primary-600); } .thread-filter .count-pill { margin-left: 0; }
.thread-wrap { position: relative; } .thread-wrap .thread { padding-right: 40px; }
.fav-star { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; padding: 4px; border: 0; background: none; border-radius: 50%; color: var(--ink-500); cursor: pointer; opacity: 0.55; } .fav-star:hover { opacity: 1; background: var(--surface-alt); }
.fav-star.on { color: #f59e0b; opacity: 1; } .fav-star.on svg { fill: currentColor; } .fav-star.static { position: static; transform: none; }
/* a page with one long list (My projects, Notifications): the page itself never scrolls, only the list inside it (like Messages) */
@media (min-width: 901px) {
  .app:has(.scroll-page) { height: 100vh; min-height: 0; overflow: hidden; }
  .app:has(.scroll-page) .cabinet { min-height: 0; height: 100%; }
  .cabinet-main:has(.scroll-page) { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .cabinet-main:has(.scroll-page) > .scroll-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .scroll-page > .scroll-area { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; overscroll-behavior: contain; }
  .scroll-page > .page-head, .scroll-page > .tabs { flex: none; }
}
/* the submenu of Projects in the cabinet menu: My projects and Invitations, a step to the right under the item */
.sidebar .nav-sub { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 4px; } .sidebar .nav-sub a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 var(--nav-sub-indent, 44px); /* the nested items of every menu item (Friends, Projects, Notifications) start under the label of their parent */ border-radius: var(--r-control); color: var(--ink-700); font-size: 14px; font-weight: 500; } .sidebar .nav-sub a:hover { background: var(--surface-alt); } .sidebar .nav-sub a.on { background: var(--primary-50); color: var(--primary-600); }
.sidebar .nav-sub .unread { margin-left: auto; }
/* the counters: the ones of the nested items are on one vertical line at the right edge, one line of text each; the counter of an item that is a group (Messages, Notifications) is a small badge on the top right corner of its icon */
.sidebar nav > a { position: relative; }
.sidebar nav > a > .unread.nav-dot { position: absolute; top: 1px; left: calc(var(--nav-sub-indent, 44px) - 24px); margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; line-height: 1; box-shadow: 0 0 0 2px var(--surface); z-index: 1; }
.sidebar nav a.on:has(+ .nav-sub) { background: transparent; color: var(--primary-600); }
.sidebar nav a .nav-chevron { margin-left: auto; display: inline-flex; color: var(--ink-500); transition: transform 0.2s; transform: rotate(-90deg); } .sidebar nav a .nav-chevron.open { transform: none; }
/* the counts of the Friends submenu */
.sidebar .nav-sub .nav-count { margin-left: auto; font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
/* the category filters stand in the header, next to the search field */
.msg-search .thread-filters { margin: 0; padding: 0; flex-wrap: nowrap; }
@media (max-width: 900px) { .msg-search .thread-filters { flex-wrap: wrap; width: 100%; } }
/* order of the header: the title and, where the chat starts, the categories, then the search field and its hits; the categories start at the left edge of the chat */
.messages-head { justify-content: flex-start; gap: 24px; } .messages-head h1 { flex: 0 0 320px; margin: 0; } .messages-head .msg-search { flex: 1; min-width: 0; }
@media (max-width: 900px) { .messages-head h1 { flex: 0 0 auto; } }
/* more air between the profession of a vacancy and its skill chips */
.slot-skills { margin-top: 14px; }
/* the language switch of the sign in / sign up pages is the one of the cabinet (top strip): same chips, same corner */
.auth-lang { top: 16px; right: 32px; } .auth-lang .lang-switch { gap: 8px; margin-left: 0; } .auth-lang .lang-switch .toggle { height: 32px; padding: 0 14px; font-size: inherit; }
/* the skill chips of a vacancy on the project page: the rule .project-page .chips above zeroes the top margin, so this one is as specific */
.project-page .slot-skills { margin: 14px 0 20px; }
/* "To the top": a white round button with an indigo arrow (the primary colour of the design system) */
.to-top { background: var(--surface); color: var(--primary-600); border: 1px solid var(--primary-200); } .to-top:hover { background: var(--primary-50); color: var(--primary-700); }

/* ===== The Projects section of the cabinet (Penpot: App / projects*, App / project (owner|visitor), App / project / slot form, invite) ===== */
/* the tab strip (Penpot: Tabs + Tabs line): every tab is 40 px high with its own 2 px underline (grey, brand when it is the open one), 24 px between the tabs, then 24 px of air and the 1 px line of the strip, then 24 px to the content; the count pill of Applications and invitations stands between two tabs */
.cab-tabs { display: flex; align-items: center; gap: 24px; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-200); }
.cab-tabs a { display: block; padding: 9px 16px; border-bottom: 2px solid var(--line-300); color: var(--ink-500); font-weight: 500; white-space: nowrap; }
.cab-tabs a:hover { color: var(--ink-900); } .cab-tabs a.on { color: var(--ink-900); border-bottom-color: var(--primary-600); }
.cab-tabs a:has(.cab-tab-count) { display: flex; align-items: center; gap: 8px; padding-top: 7px; padding-bottom: 7px; } /* the 24 px pill keeps this tab 40 px high like the others */
.cab-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); font-size: 12px; font-weight: 600; }
/* two columns of project cards; the whole card is the link of its name */
.cab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { position: relative; margin: 0; padding: 24px; } .project-card:hover { box-shadow: 0 4px 16px #0000001a; }
.project-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 28px; } .project-card h3.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .project-card .project-card-link { font-weight: 600; } .project-card .project-card-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-card); }
.project-card-about { margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .byline { margin: 4px 0; } .project-card .chips { margin-top: 12px; }
@media (max-width: 900px) { .cab-grid { grid-template-columns: minmax(0, 1fr); } .cab-tabs { overflow-x: auto; gap: 12px; } }
/* Recommended: the filters in one row, the button at the bottom edge of the fields */
/* the filters of Recommended stand on the grid of the cards below: the search is as wide as the left column, the profession starts where the right column starts */
.cab-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 24px; margin: 0 0 24px; } .cab-filters .field { margin: 0; } .cab-filters select { min-width: 160px; }
.cab-filters-right { display: flex; align-items: flex-end; gap: 16px; min-width: 0; } .cab-filters-right > .grow { flex: 1; min-width: 0; } .cab-filters-right > .field:not(.grow) { flex: none; width: 160px; } .cab-filters-right .msel-row { min-width: 0; }
@media (max-width: 900px) { .cab-filters { grid-template-columns: minmax(0, 1fr); } .cab-filters-right { flex-wrap: wrap; } .cab-filters-right > .field:not(.grow) { flex: 1; min-width: 140px; } }
.cab-filters .btn { margin-bottom: 0; }
/* the search with the filters icon after it; the icon wears the number of filters set in its window; the salary range of that window is three fields in a row */
/* the filter row of Recommended: the search and the group of selects share a line while the selects can keep their whole placeholder (about 190 px each), otherwise the group goes to its own line */
.cab-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; } .cab-filters > .field { flex: 1 1 240px; min-width: 0; }
.cab-filters .cab-filters-right { flex: 2 1 640px; flex-wrap: nowrap; } .cab-filters-right > .field.grow { flex: 1 1 200px; min-width: 190px; } .cab-filters-right > .btn { flex: none; white-space: nowrap; } .sort-btn { gap: 8px; }
@media (max-width: 900px) { .cab-filters .cab-filters-right { flex-wrap: wrap; } }
.search-row { display: flex; align-items: center; gap: 8px; } .search-row > input { flex: 1; min-width: 0; } .filter-config { position: relative; } .filter-config.on { color: var(--primary-600); border-color: var(--primary-300); }
.filter-config-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary-600); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; }
.salary-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .salary-range .field { margin: 0; }
/* Applications and invitations: a title, a card of rows */
.list-title { margin: 32px 0 12px; font-size: 24px; line-height: 32px; } .list-title:first-child { margin-top: 0; }
.list-card { padding: 8px 24px; } .list-card .list-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; } .list-card .list-row + .list-row { border-top: 1px solid var(--line-100); } .list-card .person-wrap + .person-wrap .list-row { border-top: 1px solid var(--line-100); } /* the rows of invitations are inside the fold wrappers */
.list-card .slot-title { display: block; font-weight: 600; } .list-card .slot-title span { font-weight: 600; }
.card.empty p { margin: 0 0 12px; } .card.empty p:last-child { margin: 0; }
/* the project page of the cabinet */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--primary-600); font-weight: 500; }
.cab-project .page-head { align-items: center; margin-bottom: 20px; } .cab-project .title-row { display: flex; align-items: center; gap: 16px; } .cab-project h1 { font-size: 32px; line-height: 40px; }
.cab-project h2, .section-head h2 { margin: 32px 0 12px; font-size: 24px; line-height: 32px; font-weight: 600; } .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .section-head .btn { margin-top: 20px; }
.cab-project .lead-line { font-size: 18px; line-height: 28px; font-weight: 500; margin: -8px 0 16px; }
.facts-card .project-about { margin: 0 0 16px; max-width: none; } .facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 0 0 16px; } .facts dt { font-size: 12px; color: var(--ink-500); } .facts dd { margin: 0; font-weight: 500; } .facts > div { min-width: 0; }
.team-card { padding: 8px 24px; } .team-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; } .team-name { font-weight: 600; color: var(--ink-900); } .team-name:hover { color: var(--primary-600); }
.cab-project .slot-card { margin-bottom: 16px; padding: 24px; } .slot-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .slot-head .slot-title { font-size: 16px; } .slot-pay { font-weight: 600; white-space: nowrap; }
.slot-text { margin: 8px 0 0; } .cab-project .slot-skills { margin: 12px 0 0; }
.slot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.side-panel { margin: 16px 0 0; padding: 16px; background: var(--surface-sunken); border-radius: var(--r-control); } .side-panel .candidate { margin: 0 0 8px; } .side-panel .candidate:last-child { margin: 0; }
.invite-list { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; } .invite-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--r-control); background: none; color: var(--ink-900); font: inherit; font-weight: 600; text-align: left; cursor: pointer; } .invite-row:hover, .invite-row.on { background: var(--primary-50); } .invite-row .icon { color: var(--ink-500); }
/* the slot form page */
.new-project.slot-page .card.section:not(.positions) { display: block; } .slot-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } .slot-form-grid .span { grid-column: 1 / -1; }
.slot-pay-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.slot-form-grid textarea { min-height: 112px; padding: 10px 12px; resize: vertical; }
.skill-scale { max-height: 336px; overflow-y: auto; padding: 8px 12px; background: var(--surface-sunken); border-radius: var(--r-control); } .skill-scale-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.skill-scale .seg { width: 24px; height: 8px; border-radius: 4px; background: var(--line-200); } .skill-scale .seg.on { background: var(--primary-600); } .skill-scale .skill-name { width: auto; }
.slot-page .actions.left, .new-project .actions.left, .edit-actions { margin-top: 24px; }
.edit-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
@media (max-width: 700px) { .slot-form-grid, .slot-pay-row { grid-template-columns: minmax(0, 1fr); } .cab-project .page-head { flex-direction: column; align-items: flex-start; } }
/* the chat of a project team: a rocket tile instead of a photo, the name of the author above a message of another member */
.project-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-50); color: var(--primary-600); }
.bubble-head { display: flex; flex-wrap: wrap; align-items: baseline; margin-bottom: 2px; font-size: 12px; } .bubble-head .bubble-author { display: inline; margin-bottom: 0; } .bubble-role { white-space: pre-wrap; font-weight: 500; color: var(--ink-500); }
.bubble-author { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--primary-600); } .bubble-author:hover { text-decoration: underline; }
/* the logo of the cabinet is the brand of the sign-in page: the same tile (40 px, the control radius) and the same wordmark (18/24, semibold) */
.sidebar .logo { gap: 12px; } .sidebar .logo .logo-mark { width: 40px; height: 40px; border-radius: var(--r-control); font-size: 18px; font-weight: 600; } .sidebar .logo strong { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink-900); }
/* the account at the bottom of the sidebar: a 44 px avatar and the e-mail in 14 px, in a 60 px row */
.userblock { height: 60px; gap: 12px; font-size: 14px; } .userblock .avatar { width: 44px; height: 44px; font-size: 16px; }
/* the EN | RU switch of the cabinet strip is drawn like the secondary buttons of the page (Team chat, Edit the project): 40 px, the control radius, medium weight; the chosen language keeps the tint */
.top-strip { height: 40px; } .top-strip .chips { gap: 8px; } .top-strip .toggle { height: 40px; padding: 0 16px; border-radius: var(--r-control); font-weight: 500; }
/* the tile of the sidebar logo has the shadow of the one on the sign-in page */
.sidebar .logo .logo-mark { box-shadow: 0 10px 10px rgba(95, 51, 225, 0.2); }
/* My professions: a searchable select of the professions the member has and the button that removes the chosen one; the skills of the chosen profession follow below */
.pf-pick { display: flex; align-items: center; gap: 12px; margin: 16px 0 24px; } .pf-pick .msel-row { flex: 1; max-width: 420px; min-width: 0; }
@media (max-width: 600px) { .pf-pick { flex-wrap: wrap; } .pf-pick .msel-row { max-width: none; flex-basis: 100%; } }
/* a counter that asks for attention: the pill of the left menu counters (.unread: its colours) on the top right corner of its button, fading up and down (opacity) while the number is not zero */
.btn:has(.blink-badge) { position: relative; overflow: visible; }
.unread.blink-badge { position: absolute; top: -9px; right: -9px; margin: 0; min-width: 20px; height: 20px; padding: 0 6px; line-height: 1; box-shadow: 0 0 0 2px var(--surface); animation: badge-blink 2s ease-in-out infinite; }
@keyframes badge-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .unread.blink-badge { animation: none; } }
/* the cabinet (/app) is on a plain white page in the light theme (no tint, no glow); the dark theme keeps its own */
:root:not([data-theme='dark']) body:has(.cabinet) { background: #fff; }
/* a request on the friends page: the row dims while the server works, the button spins, then the row folds away (opacity and height) */
.person-row, .list-row { transition: opacity .2s ease; } .person-row.is-busy, .list-row.is-busy { opacity: .6; }
/* a row that is gone folds to nothing with its real height (the grid row goes from 1fr to 0fr) and fades, so the card under it follows smoothly */
.person-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s ease, opacity .26s ease; } .person-clip { min-height: 0; overflow: hidden; }
.person-wrap.is-leaving { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.card.section > [data-testid^='empty-'] { animation: fade-in .25s ease both; } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .person-wrap { transition-duration: .01s; } }
/* the cards of the cabinet on the white page (light theme): a neutral grey hairline, a tight contact shadow and a soft long one; it was a wide violet glow that read as a smear on white */
:root:not([data-theme='dark']) .cabinet :is(.card, .project-card) { box-shadow: 0 0 0 1px rgb(16 24 40 / 0.05), 0 1px 2px rgb(16 24 40 / 0.06), 0 10px 24px -12px rgb(16 24 40 / 0.14); }

/* processing (the design system, "Loading"): a block spinner for a page or a pane, an inline one in a line of text, and the spinner in front of the label of a busy button */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 56px 0; color: var(--ink-500); } .loading.inline { display: inline-flex; padding: 0; vertical-align: middle; }
.spinner.large { width: 28px; height: 28px; border-width: 3px; }
/* the spinner of a busy button does not make the button jump: after a short delay (a quick answer shows none) it grows from nothing while the button widens with it, and the dimming is eased */
.btn { transition: opacity 0.25s ease; }
.btn[aria-busy='true'] { gap: 0; }
.btn[aria-busy='true']::before { content: ''; flex: none; box-sizing: border-box; width: 14px; height: 14px; margin-right: 6px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: btn-spin-in 0.3s ease-out 0.15s backwards, spin 0.8s linear infinite; }
@keyframes btn-spin-in { from { width: 0; margin-right: 0; border-width: 0; opacity: 0; } to { width: 14px; margin-right: 6px; border-width: 2px; opacity: 1; } }
.btn[aria-busy='true']:disabled { opacity: 0.8; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy='true']::before { animation: spin 2.4s linear infinite; } .btn { transition: none; } }
/* the warning button of the design system (a step that takes something back but is not destructive: Cancel the request): amber fill, white label */
.btn.warning { --warning-600: #dc6803; --warning-700-d: #b54708; background: var(--warning-600); color: #fff; } .btn.warning:hover:not(:disabled) { background: var(--warning-700-d); } .btn.warning:active:not(:disabled) { background: #93370d; }
/* the sidebar keeps its height (the window): when the window is too low for all the items, the menu is cut and scrolls by itself (no scrollbar), and the account block stays at the bottom inside the sidebar */
@media (min-width: 901px) {
  .sidebar { overflow: hidden; }
  .sidebar > nav { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; } .sidebar > nav::-webkit-scrollbar { display: none; }
  .sidebar > .logo, .sidebar > .user-menu { flex: none; }
}
/* the cabinet home as a dashboard: two cards in the top row (notifications, messages) and one wide card at the bottom (the latest projects) */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; } .dash-wide { grid-column: 1 / -1; }
.dash-card { margin: 0; } .dash-card .home-head h2 { display: flex; align-items: center; gap: 8px; }
.dash-list { display: flex; flex-direction: column; }
.dash-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0; border-top: 1px solid var(--line-200); min-width: 0; } .dash-list > .dash-row:first-child, .dash-projects > .dash-row:first-child { border-top: 0; } .dash-list > .person-wrap:first-child .dash-row { border-top: 0; } /* the rows of the notifications are inside the fold wrappers */
.dash-link { color: inherit; } .dash-link:hover .dash-title { color: var(--primary-600); }
.dash-title { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink-900); }
.dash-side { flex: none; display: flex; align-items: center; gap: 8px; } .dash-time { color: var(--ink-500); font-size: 12px; white-space: nowrap; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-600); display: block; }
.dash-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .dash-projects > .dash-row:nth-child(2) { border-top: 0; }
.dash-row.is-busy { opacity: 0.6; }
@media (max-width: 900px) { .dash { grid-template-columns: minmax(0, 1fr); } .dash-projects { grid-template-columns: minmax(0, 1fr); } .dash-projects > .dash-row:nth-child(2) { border-top: 1px solid var(--line-200); } }
/* skills are nested (a skill can have skills under it and is rated itself): the rows of a skill with skills under it are heavier, the nested ones are indented by the page */
.pf-row.has-kids .pf-skill { font-weight: 700; } .pf-row[data-depth='0']:not(:first-child) { border-top: 1px solid var(--line-200); }
.msel-title .msel-parent { padding: 0; text-transform: inherit; letter-spacing: inherit; font: inherit; color: inherit; cursor: pointer; }

/* the answered rows of the other lists (lib/rows.tsx): a notification card keeps its shadow while it is not folding, a candidate dims while its answer runs */
.notif-list .person-clip { overflow: visible; } .notif-list .person-wrap.is-leaving .person-clip { overflow: hidden; }
.candidate { transition: opacity .2s ease; } .candidate.is-busy { opacity: .6; }

/* the value of a select of one value (SingleSelect) is plain text, not a chip */
.msel-value > .msel-single-text { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-900); font-size: 14px; font-weight: 400; }

/* fold and unfold the skills that have skills under them (My professions) */
.pf-skill { display: flex; align-items: center; gap: 6px; } .pf-fold { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-500); } button.pf-fold { cursor: pointer; } button.pf-fold:hover { background: var(--primary-50); color: var(--primary-600); }
.pf-tools { display: flex; justify-content: flex-end; gap: 4px; padding: 0 24px 4px; }

.pf-preset { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }

.pf-pick .pf-delete { margin-left: auto; } /* the remove button is at the right edge of the row */

/* the window of a preset: the warning, the list of the skills with their levels */
.preset-warning { margin: 12px 0; padding: 12px 16px; background: #fef0d9; border-color: #f5c77e; color: #7a4a00; } .preset-warning p { margin: 4px 0 0; }
.preset-list { max-height: 320px; overflow-y: auto; margin: 0 0 16px; border: 1px solid var(--line-200); border-radius: var(--r-control); }
.preset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; } .preset-row + .preset-row { border-top: 1px solid var(--line-100); } .preset-row .pf-pill { height: 24px; padding: 0 12px; }
.pf-pick .pf-apply { margin-left: auto; } .pf-pick .pf-apply + .pf-delete { margin-left: 0; } /* Apply preset sits just left of Remove, both at the right edge */

/* the skill table of My professions, compact: a smaller font, lower rows, the level scale lower and wider */
.pf-thead, .pf-row { grid-template-columns: minmax(140px, 1fr) 250px 76px 28px; column-gap: 12px; padding: 0 16px; }
.pf-thead { height: 32px; font-size: 11px; }
.pf-row { min-height: 32px; padding-top: 2px; padding-bottom: 2px; }
.pf-skill { font-size: 13px; line-height: 20px; padding-left: 8px; }
.pf-row .meter { gap: 3px; } .pf-row .seg { width: 22px; height: 14px; border-radius: 3px; }
.pf-pill { height: 22px; padding: 0 10px; font-size: 12px; }
.pf-row .level-preview { font-size: 11px; }
.pf-fold { width: 20px; height: 20px; } .pf-tools { padding: 0 16px 2px; } .pf-tools .btn { font-size: 12px; height: 26px; }
.pf-hint { margin: 0 0 12px; font-size: 13px; }

/* the window with every variant: a long name ("Customer support specialist") goes onto a second line, the check box stays level with the first line, and that row is taller than a one-line row */
.skill-modal.flat .msel-option { min-width: 0; height: auto; min-height: 36px; align-items: flex-start; padding-top: 7px; padding-bottom: 7px; } .skill-modal.flat .msel-option input { flex: none; margin-top: 2px; } .skill-modal.flat .msel-option span { min-width: 0; white-space: normal; line-height: 20px; overflow-wrap: anywhere; }

/* changing the profession: the panel under the selector (grade, skills) fades and slides in instead of switching at once */
.pf-panel { animation: pf-panel-in .32s ease both; }
@keyframes pf-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pf-panel { animation: none; } }

/* the select of the cabinet (lib/Select.tsx): the custom one on a desktop screen; the native one stays in the page for the tests and the forms, hidden, and is the one shown on a touch screen */
.fselect { position: relative; display: block; min-width: 0; }
.fselect .msel-row { width: 100%; max-width: none; }
.fselect .fselect-native { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .fselect .msel-row { display: none; } .fselect .fselect-native { position: static; width: 100%; height: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-300); opacity: 1; pointer-events: auto; } }

/* the hovered segment: its skill (the left element of the row) is highlighted and a label shows the skill and the level in the upper middle of the screen, like the one of the admin */
.pf-row { transition: background-color .15s ease; } .pf-row.is-hover { background: var(--primary-50); } .pf-row.is-hover .pf-skill { color: var(--primary-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary-600); }
.pf-tip { position: fixed; left: 50%; top: 16%; transform: translate(-50%, 10px); z-index: 60; pointer-events: none; box-sizing: border-box; width: min(90vw, 560px); height: 80px; padding: 0 28px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; gap: 16px; border-radius: 14px; border-left: 8px solid var(--tipc, #94a3b8); background: color-mix(in srgb, var(--ink-900) 84%, transparent); color: #fff; font-size: 26px; font-weight: 700; line-height: 1.2; box-shadow: 0 12px 36px #0005; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.pf-tip.shown { opacity: 1; transform: translate(-50%, 0); }
.pf-tip-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; } .pf-tip-level { flex: none; min-width: 1.2em; text-align: right; font-size: 38px; font-variant-numeric: tabular-nums; color: var(--tipc, #fff); }
.pf-tip.low { --tipc: #ff6b6b; } .pf-tip.mid { --tipc: #fdc83f; } .pf-tip.high { --tipc: #3fc364; } .pf-tip.none { --tipc: #94a3b8; }
@media (prefers-reduced-motion: reduce) { .pf-tip, .pf-row { transition: none; } }

/* the first load of the catalog: the spinner is in the middle of the page (the results area), not in the line of the count at the top */
.catalog-loading { display: grid; place-items: center; min-height: 50vh; } .catalog-loading .loading { padding: 0; }

/* a smaller footer: the filters of the catalog are sticky and move up when the end of the list and then the footer come into view, so the less the footer takes, the less they move */
.site-footer { padding: 24px 0 20px; }
.site-footer h4 { margin: 0 0 8px; font-size: 18px; line-height: 26px; }
.foot-cols { gap: 24px; } .foot-cols p { margin: 0 0 6px; }
.foot-bottom { margin-top: 16px; }
.site-footer .social { width: 36px; height: 36px; }

/* the match of a slot with the skills of the viewer (the project page) */
.slot-match { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px; background: var(--surface-sunken); border-radius: var(--r-control); } .slot-match-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } p.slot-match { margin: 12px 0 0; }

/* the fit diagram (lib/FitChart.tsx): a thin bar for the level of the person, a tick on the level the slot asks */
.fit { display: grid; gap: 3px; margin-top: 6px; max-width: 420px; }
.fit-row { display: grid; grid-template-columns: minmax(70px, 130px) 1fr 34px; align-items: center; column-gap: 8px; font-size: 12px; line-height: 16px; }
.fit-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-700); }
.fit-track { position: relative; height: 8px; border-radius: 999px; background: #eceff4; overflow: hidden; }
.fit-part { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--to, 0%)) 0 var(--from, 0%)); } /* every part is the whole gradient, cut to its range: red 1-3, yellow 4-6, green 7-10 */
.fit-part.have { background: linear-gradient(90deg, #f5303f 0 30%, #ffbe0b 30% 60%, #17c964 60% 100%); opacity: .7; } /* match: what the person has up to the asked level */
.fit-part.lack { background: linear-gradient(90deg, #f5303f 0 30%, #ffbe0b 30% 60%, #17c964 60% 100%); opacity: .2; } /* not enough: what is missing to the asked level */
.fit-part.extra { background: linear-gradient(90deg, #f5303f 0 30%, #ffbe0b 30% 60%, #17c964 60% 100%); opacity: 1; } /* overflow: above the asked level; the three parts have the same colours, only the opacity differs: 70, 20, 100 */
.fit-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-700); } /* one colour: nothing of the diagram changes its colour by the state, only the opacity of the parts of the bar does */
.fit-key { margin: 4px 0 0; font-size: 11px; line-height: 16px; } .candidates > .fit-key { margin: 0 0 8px; }
/* the skills of a member page: the bar of the slots (fit-*) as a nested tree, a little larger than under a slot; a skill without a level (only something under it has one) is a plain label with no bar */
.fit.member-fit { max-width: none; gap: 8px; margin: 4px 0 12px; } .member-skill { grid-template-columns: minmax(120px, 240px) 1fr; font-size: 14px; line-height: 20px; } .member-skill .fit-track { height: 10px; }
.member-skill .fit-name { padding-left: calc(var(--depth, 0) * 18px); } .member-skill.unrated .fit-name { grid-column: 1 / -1; color: var(--ink-500); font-weight: 600; }
.candidate-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.candidate-app { margin: 8px 0 0; padding: 8px 12px; background: var(--surface-alt); border-radius: var(--r-control); font-size: 13px; line-height: 20px; } .candidate-app p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.candidates .candidate { flex-wrap: wrap; } .candidates .candidate-app { flex: 0 0 100%; margin: 4px 0 0; } /* the application is always shown at the bottom of the card of its candidate */

/* the invite panel: everybody who could be invited, with the match to the slot */
.invite-filters { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px; gap: 12px; align-items: end; } .invite-filters .field { margin: 0; }
.invite-same { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14px; } .invite-same input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-600); }
.invite-people { display: grid; gap: 8px; margin: 8px 0; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.invite-person { display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--r-control); }
@media (max-width: 700px) { .invite-filters { grid-template-columns: 1fr; } .invite-person { flex-wrap: wrap; } }

/* the Recommended tab: the open slots of a project that fit the person, with the fit diagram */
.card-slots { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-100); } .card-slots-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.card-slot { display: block; padding: 8px 10px; border: 1px solid var(--line-200); border-radius: var(--r-control); } .card-slot-side { display: inline-flex; align-items: center; gap: 8px; }
.card-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }

.notif-match { display: grid; gap: 4px; margin-top: 8px; max-width: 420px; } .notif-match .fit { margin-top: 0; }

/* the plain select (SingleSelect without search): the chosen text, a caret, a list; the placeholder only while nothing is chosen */
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-300); border-radius: var(--r-control); background: var(--surface); color: var(--ink-900); font: inherit; text-align: left; cursor: pointer; }
.sel-btn:hover { border-color: var(--primary-300); } .sel-btn:focus-visible, .sel-btn.open { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-200); }
.sel-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .sel-text.placeholder { color: var(--ink-500); }
.sel-option { justify-content: space-between; } .sel-option.active { background: var(--primary-50); } .sel-option.chosen { font-weight: 600; color: var(--primary-700); }

.card-slot-match { display: inline-flex; align-items: center; gap: 6px; } .card-slot-match .btn.small.icon { width: 26px; height: 26px; }

/* Projects and Members: the filter card is sticky inside the list area and used to be pushed up when the end of the list and then the footer came into view. The page now ends under the footer
   (the footer is pulled up by about its own height and sits above the area), so the card stays where it is while the footer slides over its bottom; the list gets the room under its last card. */
@media (min-width: 901px) {
  .site-main:has(.catalog) { margin-bottom: -190px; }
  .site-main:has(.catalog) .page { padding-bottom: 0; }
  .site-main:has(.catalog) + .site-footer { position: relative; z-index: 2; }
  .site-main:has(.catalog) [data-spec='catalog.list'], .site-main:has(.catalog) [data-spec='members.list'] { padding-bottom: 300px; }
}

/* the fold / unfold all icons sit in the header of the skill table, next to the column name (they were a row of text buttons above it) */
.pf-thead-skill { display: flex; align-items: center; gap: 8px; padding-left: 8px; } .pf-thead-tools { display: inline-flex; gap: 2px; text-transform: none; } .pf-thead-tools .pf-fold { width: 24px; height: 24px; }

/* the skill set tab of My professions: the expandable tree with checkboxes (the rows are those of the filters window) */
.skill-set { border: 1px solid var(--line-200); border-radius: var(--r-control); padding: 8px 16px 12px; } .skill-set-head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 32px; font-size: 13px; }
.skill-set .skill-row .msel-option { font-size: 13px; } .skill-set > .skill-node > .skill-row .msel-option { font-weight: 600; }

.pf-empty { padding: 24px 16px; text-align: center; } .pf-empty p { margin: 0; }
.skill-set-search { width: 100%; margin: 4px 0 8px; }

/* the unified skill tree of My professions: the level panel sits at the right of a ticked skill (the look of the levels of the admin); the two modes are at the right of the head row */
.skill-set .skill-row { gap: 4px; } .skill-set .skill-row .msel-option { flex: 1 1 auto; min-width: 0; }
.skill-level { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex: none; }
.skill-level .meter { gap: 3px; } .skill-level .seg { width: 20px; height: 14px; border-radius: 3px; background: #f1f3f6; border: 1px solid #e6e9ef; }
.skill-level .seg.on.low { background: #f94b4b; border-color: #f94b4b; } .skill-level .seg.on.mid { background: #fdc83f; border-color: #fdc83f; } .skill-level .seg.on.high { background: #3fc364; border-color: #3fc364; }
.skill-level .pf-pill { height: 22px; min-width: 32px; justify-content: center; padding: 0 8px; font-size: 12px; }
.skill-set-modes { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; } .skill-set-modes .row { display: inline-flex; gap: 6px; } .skill-set-levels-switch { margin: 0; gap: 8px; }
.skill-set .skill-row.is-hover { background: var(--primary-50); border-radius: 6px; }
@media (max-width: 900px) { .skill-row { flex-wrap: wrap; } .skill-level { margin-left: 28px; } .skill-set-modes { margin-left: 0; flex-wrap: wrap; } }

.pf-level { gap: 24px; align-items: flex-start; } .pf-level-label { line-height: var(--thumb, 22px); margin-top: 0; }

/* a tooltip with the full description of what a button does: [data-tip] shows it above the element on hover and keyboard focus ([data-tip-pos] start | end keeps it inside the card at the edges) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--ink-900); color: #fff; font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; box-shadow: 0 6px 20px rgba(16, 24, 40, 0.25); pointer-events: none; animation: tip-in 0.12s ease 0.3s both; }
[data-tip][data-tip-pos='start']:hover::after, [data-tip][data-tip-pos='start']:focus-visible::after { left: 0; transform: none; }
[data-tip][data-tip-pos='end']:hover::after, [data-tip][data-tip-pos='end']:focus-visible::after { left: auto; right: 0; transform: none; }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [data-tip]:hover::after, [data-tip]:focus-visible::after { animation: none; } }

/* the buttons of a window wrap onto the next line when they do not fit (long texts, other languages) and keep the right edge */
.dialog .actions { flex-wrap: wrap; justify-content: flex-end; } .dialog .actions .btn { max-width: 100%; }

/* the level counter of a skill is a reset button: on hover (or focus) the number turns into the reset icon */
.skill-level .skill-reset { position: relative; border: 0; cursor: pointer; font-family: inherit; }
.skill-level .skill-reset:disabled { cursor: default; }
.skill-level .skill-reset .skill-reset-icon { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.skill-level .skill-reset:not(:disabled):hover .skill-reset-num, .skill-level .skill-reset:not(:disabled):focus-visible .skill-reset-num { visibility: hidden; }
.skill-level .skill-reset:not(:disabled):hover .skill-reset-icon, .skill-level .skill-reset:not(:disabled):focus-visible .skill-reset-icon { display: inline-flex; }
.skill-level .skill-reset:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.skill-level .skill-reset:disabled[data-tip]:hover::after { display: none; }

/* Apply preset and Remove this profession sit on the line of the level range, at the right */
.pf-level-actions { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-self: flex-start; } .pf-level-actions .pf-apply, .pf-level-actions .pf-delete { margin-left: 0; }

/* the window of the presets (Apply preset): the stack, the level and the add-ons at the left, the skills of the set as bars at the right, the warning and the buttons under them */
.dialog.wide .pl { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(420px, 40%) minmax(0, 1fr); gap: 32px; margin-top: 8px; }
.pl-left, .pl-right { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.pl-lead { margin: 0 0 18px; font-size: 15px; } .pl-block { margin-bottom: 24px; } .pl-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pl-stacks, .pl-grades { display: flex; flex-wrap: wrap; gap: 8px; } .pl-stack { height: 38px; padding: 0 18px; border: 1px solid var(--line-300); border-radius: 10px; background: var(--surface); font: inherit; font-weight: 500; color: var(--ink-700); cursor: pointer; } .pl-stack:hover { border-color: var(--primary-600); } .pl-stack.on { background: #ede9fe; border-color: var(--primary-600); color: var(--primary-600); } .pl-stack:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); }
.pl-addons { display: grid; gap: 6px; }
.pl-right { border-left: 1px solid var(--line-200); padding-left: 24px; } .pl-part { margin-bottom: 18px; } .pl-part-title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.pl-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto 44px; align-items: center; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line-100); } .pl-name { font-size: 14px; overflow-wrap: anywhere; }
.pl-meter { gap: 3px; } .pl-meter .seg { width: 22px; height: 12px; border-radius: 3px; background: #f1f3f6; border: 1px solid #e6e9ef; cursor: default; } .pl-meter .seg.on.low { background: #f94b4b; border-color: #f94b4b; } .pl-meter .seg.on.mid { background: #fdc83f; border-color: #fdc83f; } .pl-meter .seg.on.high { background: #3fc364; border-color: #3fc364; }
.pl-row .pf-pill { height: 22px; min-width: 32px; justify-content: center; padding: 0 8px; font-size: 12px; }
.pl-foot { flex: none; margin-top: 12px; } .pl-foot .preset-warning { margin: 0 0 12px; } .pl-foot .actions { margin-top: 0; }
@media (max-width: 900px) { .dialog.wide .pl { grid-template-columns: 1fr; overflow-y: auto; } .pl-left, .pl-right { overflow: visible; } .pl-right { border-left: 0; padding-left: 0; } .pl-row { grid-template-columns: 1fr auto 40px; } .pl-meter .seg { width: 14px; } }

/* the grade slider (GradeRange): a line with a step per grade, a gradient fill and a thumb; every colour and size is a variable set from the look (the test panel changes them) */
.pf-range { --thumb: 22px; --trk-h: 4px; --g1: #b8abf5; --g2: #5b3ee0; --trk: #e4e7ec; --trk-op: 1; --fill-op: 1; --th-bg: #5b3ee0; --th-bd: #fff; --mk: #c8ccd4; --glow: 0px; --dur: 600ms; --ease: cubic-bezier(0.22, 1, 0.36, 1); position: relative; width: 380px; max-width: 100%; padding-bottom: 38px; flex: 0 1 380px; }
.pf-range .pf-range-input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--thumb); min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; pointer-events: none; position: relative; z-index: 2; }
.pf-range-input::-webkit-slider-runnable-track { height: 4px; background: transparent; } .pf-range-input::-moz-range-track { height: 4px; background: transparent; } .pf-range-input::-moz-range-progress { background: transparent; }
.pf-range-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb); height: var(--thumb); border: 0; background: transparent; box-shadow: none; } .pf-range-input::-moz-range-thumb { width: var(--thumb); height: var(--thumb); border: 0; background: transparent; box-shadow: none; }
.pf-range-input:focus-visible { outline: none; } .pf-range-input:focus-visible ~ .pf-range-rail .pf-range-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--th-bg) 25%, transparent); }
.pf-range-rail { position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); top: calc(var(--thumb) / 2 - var(--trk-h) / 2); height: var(--trk-h); border-radius: 999px; z-index: 1; pointer-events: none; }
.pf-range-rail::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--trk); opacity: var(--trk-op); }
.pf-range[data-dashed] .pf-range-rail::before { background: repeating-linear-gradient(to right, var(--trk) 0 8px, transparent 8px 13px); }
/* the gradient runs along the whole line (pale at the start, full at the end); the fill only shows the part up to the thumb */
.pf-range-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to right, var(--g1), var(--g2)); opacity: var(--fill-op); transition: clip-path var(--dur) var(--ease); }
.pf-range[data-dashed] .pf-range-fill { -webkit-mask: repeating-linear-gradient(to right, #000 0 8px, transparent 8px 13px); mask: repeating-linear-gradient(to right, #000 0 8px, transparent 8px 13px); }
.pf-range-thumb { position: absolute; top: calc(var(--trk-h) / 2); width: var(--thumb); height: var(--thumb); transform: translate(-50%, -50%); border-radius: 50%; background: var(--th-bg); border: 3px solid var(--th-bd); box-sizing: border-box; box-shadow: 0 0 0 1px var(--th-bg), 0 0 var(--glow) var(--th-bg); z-index: 4; transition: left var(--dur) var(--ease), box-shadow 0.15s; }
.pf-range[data-thumb='square'] .pf-range-thumb { border-radius: 6px; } .pf-range[data-thumb='diamond'] .pf-range-thumb { border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); }
.pf-range.dragging .pf-range-thumb, .pf-range.dragging .pf-range-fill { transition: none; }
.pf-range-hit { position: absolute; left: 0; right: 0; top: 0; height: var(--thumb); z-index: 5; cursor: pointer; touch-action: none; }
/* the marks and the names sit on the same four positions as the thumb centre: inset by half a thumb on both sides */
.pf-range-marks, .pf-range-names { position: absolute; left: calc(var(--thumb) / 2); right: calc(var(--thumb) / 2); }
.pf-range-marks { top: calc(var(--thumb) / 2); z-index: 3; pointer-events: none; }
.pf-range-mark { position: absolute; top: 0; width: 14px; height: 14px; transform: translate(-50%, -50%); box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--mk); transition: border-color 0.2s, background-color 0.2s; } .pf-range-mark.passed { border-color: var(--mkc); } .pf-range-mark.current { visibility: hidden; }
.pf-range[data-mark='dot'] .pf-range-mark { width: 9px; height: 9px; border: 0; background: var(--mk); } .pf-range[data-mark='dot'] .pf-range-mark.passed { background: var(--mkc); }
.pf-range[data-mark='tick'] .pf-range-mark { width: 3px; height: 16px; border: 0; border-radius: 2px; background: var(--mk); } .pf-range[data-mark='tick'] .pf-range-mark.passed { background: var(--mkc); }
.pf-range[data-mark='none'] .pf-range-mark { display: none; }
.pf-range-names { top: calc(var(--thumb) + 12px); height: 22px; z-index: 6; }
/* the names keep their weight (the chosen one is not bold); their colour is the gradient */
.pf-range-name { position: absolute; top: 0; transform: translateX(-50%); padding: 0 6px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-500); cursor: pointer; white-space: nowrap; transition: opacity 0.3s; } .pf-range-name:hover { filter: brightness(0.85); } .pf-range-name:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-200); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .pf-range-fill, .pf-range-thumb { transition: none; } }

.pl-suggest { font-size: 13px; margin: -8px 0 14px; }
/* the grade slider inside the presets window: it takes the width of the column, with room at both ends for the first and the last name */
.pl-left { overflow-x: hidden; } .pl-left .pf-range { width: auto; max-width: none; margin: 0 26px 4px; }
.pl-foot .preset-warning { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 14px; margin-bottom: 10px; } .pl-foot .preset-warning p { margin: 0; }
.pl-group { padding: 7px 0 3px; font-size: 13px; font-weight: 600; color: var(--ink-700); border-bottom: 1px solid var(--line-100); }
.pl-right { overflow-x: hidden; } .pl-row { gap: 12px; grid-template-columns: minmax(100px, 1fr) auto 40px; } .pl-meter .seg { width: 18px; }

/* the level of a skill in the presets window is a progress bar of the filled part only (the person cannot edit it here), as long as the full scale */
.pl-bar { width: 200px; height: 10px; } .pl-bar > span { display: block; height: 100%; border-radius: 5px; transition: width 0.3s ease; } .pl-bar > .low { background: #f94b4b; } .pl-bar > .mid { background: #fdc83f; } .pl-bar > .high { background: #3fc364; }
.pl-row { grid-template-columns: minmax(100px, 1fr) 200px 40px; }
@media (max-width: 900px) { .pl-bar { width: 120px; } .pl-row { grid-template-columns: minmax(80px, 1fr) 120px 40px; } }
@media (prefers-reduced-motion: reduce) { .pl-bar > span { transition: none; } }
.pl-stack-block { margin-bottom: 8px; padding-top: 12px; border-top: 1px solid var(--line-200); } .pl-suggest { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--ink-900); }

/* the left column of the presets window: the lead, the stacks and the level stay in place, only the suggestions scroll */
.pl-left { display: flex; flex-direction: column; overflow: hidden; padding-right: 0; } .pl-left-fixed { flex: none; padding-right: 6px; }
.pl-suggestions { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; border-top: 1px solid var(--line-200); padding-top: 12px; }
.pl-suggestions .pl-stack-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .pl-left { overflow: visible; display: block; } .pl-suggestions { overflow: visible; } }
.pl-left-fixed .pl-lead { font-size: 13px; margin-bottom: 12px; } .pl-left-fixed .pl-block { margin-bottom: 14px; }

/* the progress bar of the presets window, the style of the bars of the slots: a rounded light track, the fill in the colours of the scale (red up to 3, amber up to 6, green above), no number */
.pl-bar { width: 260px; height: 10px; border-radius: 5px; background: #e9ecf1; overflow: hidden; }
.pl-bar > span { display: block; height: 100%; border-radius: 5px; background-image: linear-gradient(to right, #f0606b 0 30%, #fdb022 30% 60%, #2cc063 60% 100%); background-repeat: no-repeat; transition: width 0.3s ease; }
.pl-row { grid-template-columns: minmax(100px, 1fr) 260px; }
@media (max-width: 900px) { .pl-bar { width: 140px; } .pl-row { grid-template-columns: minmax(80px, 1fr) 140px; } }

/* the stack chips of the presets window: a ticked stack is filled, the one on the left has a stronger ring, and a ticked one has a small close badge to take it out */
.pl-chip { display: inline-flex; align-items: stretch; height: 38px; border: 1px solid var(--line-300); border-radius: 10px; background: var(--surface); overflow: hidden; } .pl-chip:hover { border-color: var(--primary-600); }
.pl-chip.on { background: #ede9fe; border-color: #b8abf5; } .pl-chip.active { border-color: var(--primary-600); box-shadow: 0 0 0 2px var(--primary-200); }
.pl-chip-name { padding: 0 16px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink-700); cursor: pointer; } .pl-chip.on .pl-chip-name { color: var(--primary-600); padding-right: 6px; } .pl-chip-name:focus-visible, .pl-chip-x:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--primary-200); }
.pl-chip-x { width: 24px; padding: 0 8px 0 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 1; color: var(--primary-600); opacity: 0.6; cursor: pointer; } .pl-chip-x:hover { opacity: 1; }
.pl-tree { padding-bottom: 8px; } .pl-tree-item { display: flex; align-items: center; min-height: 28px; } .pl-suggestions .pl-group { padding-top: 8px; }
/* the bars of the presets window take the look of the fit diagram of a slot (the same track and the same red, yellow, green), thinner and at full brightness */
.pl-bar { height: 6px; border-radius: 999px; background: #eceff4; } .pl-bar > span { border-radius: 999px; background-image: linear-gradient(90deg, #f5303f 0 30%, #ffbe0b 30% 60%, #17c964 60% 100%); }
.pl-merge { margin: -2px 0 12px; font-size: 13px; }
.skill-set .msel-option.no-check { cursor: default; }
.slot-pay-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* the Configure window of the catalog filters (design/ui.js) and the empty state of a list */
.filter-actions [hidden] { display: none; }
.results .empty-state { grid-column: 1 / -1; }
/* the select of the catalog filters: the field and, at its right, the icon that opens the window with every variant */
.picker .msel-row > .msel-trigger { flex: 1; min-width: 0; text-align: left; font: inherit; color: inherit; }
.picker .msel-row > .icon-btn { flex: none; }
.msel-panel[hidden] { display: none; }
.skill-modal[hidden] { display: none; }
.dialog.wide.tree-dialog { width: min(720px, 96vw); height: min(780px, 92vh); }
.dialog.wide .skill-modal.tree { display: block; flex: 1; min-height: 0; margin: 8px 0 0; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; }
.dialog.wide .picker-search .btn { flex: none; }
.picker .msel-trigger { width: 100%; cursor: pointer; }
.picker .msel-trigger.open .msel-value { display: none; }
.msel-count[hidden], .msel-caret[hidden], .msel-reset[hidden], .msel-chip[hidden] { display: none; }
.skill-node input[type=checkbox]:indeterminate { opacity: 0.5; }
/* the search of a select is the field itself: whatever the browser or the global input rules would draw around it (a ring, a border, a fill, the UA appearance) is switched off in every state;
   the ring is the one of the whole field (.msel-trigger:focus-within) */
.msel-input, .msel-input:hover, .msel-input:focus, .msel-input:focus-visible, .msel-input:active { outline: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; -webkit-appearance: none; appearance: none; }
.msel-input.on { height: auto; align-self: stretch; }
.msel-input:-webkit-autofill, .msel-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset; }
.msel-panel input[type=checkbox]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
