/* GCF CRM v1. Brand: navy #001924 with gold accent, Urbanist type. */

:root {
	--gcf-navy: #001924;
	--gcf-gold: #F6B831;
	--navy-2: #0A2834;
	--navy-3: #123643;
	--gold-soft: #FEF4DC;
	--gold-ink: #8A6100;
	--ink: #0E1E26;
	--ink-2: #33444D;
	--muted: #66767F;
	--line: #E2E7EB;
	--line-2: #EEF1F3;
	--bg: #F4F6F8;
	--card: #FFFFFF;
	--ok: #1F8A5B;
	--ok-soft: #E3F4EC;
	--warn: #B7791F;
	--warn-soft: #FDF3E1;
	--bad: #C2413A;
	--bad-soft: #FBE9E7;
	--info: #2F6FAE;
	--info-soft: #E6F0FA;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(0, 25, 36, .06), 0 4px 16px rgba(0, 25, 36, .05);
	--shadow-lg: 0 12px 40px rgba(0, 25, 36, .18);
	--side: 252px;
	--font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
[hidden] { display: none !important; }
#view:focus { outline: none; }
/* Grid children default to min-width:auto, which lets one long unbroken line widen the whole page. */
.grid > *, .stack > *, .record > *, .settings > *, .dup > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Buttons and form controls                                           */
/* ------------------------------------------------------------------ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, .select:focus-visible, .nav a:focus-visible { outline: 3px solid rgba(246, 184, 49, .55); outline-offset: 2px; }
.btn--gold { background: var(--gcf-gold); color: var(--gcf-navy); }
.btn--gold:hover { background: #F9C553; }
.btn--navy { background: var(--gcf-navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #C9D2D8; background: #FAFBFC; }
.btn--danger { background: #fff; border-color: #EBC3BF; color: var(--bad); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: #FAFBFC; }
.icon-btn svg { width: 18px; height: 18px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field__aside, .field__hint { font-weight: 500; color: var(--muted); font-size: 12.5px; text-decoration: none; }
a.field__aside:hover { color: var(--gcf-navy); text-decoration: underline; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #D3DBE0; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gcf-navy); box-shadow: 0 0 0 3px rgba(0, 25, 36, .08); outline: none; }
.input[disabled] { background: var(--line-2); color: var(--muted); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366767F' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input--sm, .select--sm { height: 36px; font-size: 14px; border-radius: 9px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gcf-navy); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.colour-field { display: flex; gap: 8px; align-items: center; }
.colour-field input[type=color] { width: 44px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid #D3DBE0; background: #fff; cursor: pointer; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert--error { background: var(--bad-soft); color: #8C2A24; }
.alert--ok { background: var(--ok-soft); color: #145C3D; }
.alert--info { background: var(--info-soft); color: #1F4E7D; }

/* ------------------------------------------------------------------ */
/* Sign-in screens                                                     */
/* ------------------------------------------------------------------ */

.gcf-auth { background: #fff; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth__brand { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 10% 0%, #0E3442 0%, var(--gcf-navy) 55%); color: #fff; display: flex; align-items: center; padding: 64px; }
.auth__brand-inner { position: relative; z-index: 1; max-width: 460px; }
.auth__logo { width: 96px; height: 96px; display: block; margin-bottom: 40px; }
.auth__eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gcf-gold); }
.auth__headline { font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.auth__headline span { color: var(--gcf-gold); }
.auth__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; color: #C9D6DC; font-size: 16px; }
.auth__points li { display: flex; gap: 12px; align-items: center; }
.auth__points li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gcf-gold); flex: none; }
/* Three rising columns echo the GCF logo mark. */
.auth__bars { position: absolute; right: 48px; bottom: 0; display: flex; gap: 14px; align-items: flex-end; }
.auth__bars span { width: 64px; background: rgba(157, 182, 196, .12); border-radius: 6px 6px 0 0; }
.auth__bars span:nth-child(1) { height: 140px; }
.auth__bars span:nth-child(2) { height: 210px; }
.auth__bars span:nth-child(3) { height: 290px; background: rgba(246, 184, 49, .28); }
.auth__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.auth__card { width: 100%; max-width: 400px; }
.auth__logo-sm { display: none; width: 64px; height: 64px; margin-bottom: 24px; }
.auth__title { font-size: 30px; font-weight: 800; color: var(--gcf-navy); }
.auth__sub { margin: 8px 0 28px; color: var(--muted); }
.auth__alt { margin-top: 20px; font-size: 14px; text-align: center; }
.auth__alt a { color: var(--gcf-navy); font-weight: 700; }
.auth__foot { margin-top: 48px; font-size: 12.5px; color: #98A5AD; }

@media (max-width: 900px) {
	.auth { grid-template-columns: 1fr; }
	.auth__brand { display: none; }
	.auth__logo-sm { display: block; }
}

/* ------------------------------------------------------------------ */
/* App frame                                                           */
/* ------------------------------------------------------------------ */

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--gcf-navy); }
.boot__bar { width: 160px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.boot__bar span { display: block; width: 40%; height: 100%; background: var(--gcf-gold); animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.app { min-height: 100vh; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

.side { position: sticky; top: 0; height: 100vh; background: var(--gcf-navy); color: #C8D5DB; display: flex; flex-direction: column; padding: 20px 14px; z-index: 30; }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; text-decoration: none; color: #fff; }
.side__brand img { width: 40px; height: 40px; }
.side__brand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.side__brand small { display: block; font-size: 11.5px; color: #8FA6B2; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.nav { display: grid; gap: 2px; }
.nav__group { margin: 18px 10px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6F8A97; font-weight: 700; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: #C8D5DB; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.is-active { background: rgba(246, 184, 49, .12); color: #fff; }
.nav a.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gcf-gold); }
.nav a.is-active svg { color: var(--gcf-gold); opacity: 1; }
.nav__soon { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #9FB3BD; }
.side__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.me__name { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
.me__role { font-size: 12px; color: #8FA6B2; }
.me__out { margin-left: auto; color: #8FA6B2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.me__out:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.me__out svg { width: 18px; height: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 28px; background: rgba(244, 246, 248, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__menu { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; }
.search input:focus { outline: none; border-color: var(--gcf-navy); box-shadow: 0 0 0 3px rgba(0, 25, 36, .08); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--bg); }
.search__results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 420px; overflow: auto; }
.search__results.is-open { display: block; }
.search__item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.search__item:hover, .search__item.is-focus { background: var(--bg); }
.search__item small { display: block; color: var(--muted); font-size: 12.5px; }
.search__empty { padding: 14px; color: var(--muted); font-size: 14px; }
.top__right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.content { padding: 28px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; color: var(--gcf-navy); }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gcf-navy); text-decoration: underline; }

.demo-banner { display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: var(--gold-soft); color: #6B4B00; font-size: 13.5px; border-bottom: 1px solid #F3DEA6; }
.demo-banner b { font-weight: 800; }
.demo-banner a { color: #6B4B00; font-weight: 700; margin-left: auto; }

/* ------------------------------------------------------------------ */
/* Cards, tiles, badges                                                */
/* ------------------------------------------------------------------ */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; gap: 4px 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card__head h2, .card__head h3 { font-size: 16px; font-weight: 800; color: var(--gcf-navy); }
.card__head .muted { font-size: 13px; }
.card__head .link { margin-left: auto; }
.card__body { padding: 16px 20px 20px; }
.card--pad { padding: 20px; }
.muted { color: var(--muted); }
.link { font-size: 13.5px; font-weight: 700; color: var(--gcf-navy); text-decoration: none; }
.link:hover { text-decoration: underline; }

.grid { display: grid; gap: 20px; }
.grid--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--dash { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 20px; align-content: start; }

.kpi { padding: 18px 20px; }
.kpi__label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.kpi__value { margin-top: 8px; font-size: 30px; font-weight: 800; color: var(--gcf-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi__meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.kpi--hero { background: var(--gcf-navy); border-color: var(--gcf-navy); color: #fff; }
.kpi--hero .kpi__label, .kpi--hero .kpi__meta { color: #A9BCC6; }
.kpi--hero .kpi__value { color: #fff; }
.meter { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 12px; }
.kpi--hero .meter { background: rgba(255, 255, 255, .12); }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--gcf-gold); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge--gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge--navy { background: var(--gcf-navy); color: #fff; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--outline { background: #fff; border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; color: var(--gcf-navy); background: var(--gold-soft); letter-spacing: .02em; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.avatar--sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar--navy { background: var(--navy-3); color: #fff; }
.org-mark { width: 36px; height: 36px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; color: #fff; background: var(--navy-3); }
.org-mark--lg { width: 64px; height: 64px; border-radius: 14px; font-size: 22px; }

/* Revenue by vertical: target track with won and open segments. */
.vbars { display: grid; gap: 14px; }
.vbar__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.vbar__top b { font-weight: 700; }
.vbar__top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.vbar__track { position: relative; height: 12px; background: var(--line-2); border-radius: 99px; overflow: hidden; display: flex; }
.vbar__won { height: 100%; }
.vbar__open { height: 100%; opacity: .28; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Monthly won columns. */
.cols { display: flex; gap: 8px; align-items: flex-end; height: 160px; padding-top: 8px; }
.cols__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.cols__bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--gcf-navy); min-height: 2px; position: relative; }
.cols__bar.is-now { background: var(--gcf-gold); }
.cols__bar:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--gcf-navy); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.cols__lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* Funnel: each stage as wide as its share of the largest stage. */
.funnel { display: grid; gap: 8px; }
.funnel__row { display: grid; grid-template-columns: 96px 1fr 48px; gap: 10px; align-items: center; font-size: 13.5px; }
.funnel__bar { height: 26px; border-radius: 6px; background: var(--gcf-navy); opacity: .9; min-width: 4px; }
.funnel__row:nth-child(2) .funnel__bar { opacity: .78; }
.funnel__row:nth-child(3) .funnel__bar { opacity: .66; }
.funnel__row:nth-child(4) .funnel__bar { background: var(--gcf-gold); opacity: .8; }
.funnel__row:nth-child(5) .funnel__bar { background: var(--gcf-gold); opacity: 1; }
.funnel__row:nth-child(6) .funnel__bar { background: #D99A12; opacity: 1; }
.funnel__n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Lists and feeds. */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.list li:first-child { border-top: 0; }
.list__main { min-width: 0; flex: 1; }
.list__title { font-weight: 700; font-size: 14.5px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.list__title:hover { text-decoration: underline; }
.list__sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__end { font-size: 13px; color: var(--muted); white-space: nowrap; }

.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 0 0 18px; }
.feed li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line-2); }
.feed li:last-child::before { display: none; }
.feed__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); }
.feed__icon svg { width: 15px; height: 15px; }
.feed__icon--email { background: var(--info-soft); color: var(--info); }
.feed__icon--meeting { background: var(--gold-soft); color: var(--gold-ink); }
.feed__icon--amicus { background: #EEEAF8; color: #5B4B99; }
.feed__icon--ticket { background: var(--ok-soft); color: var(--ok); }
.feed__icon--deal { background: var(--gcf-navy); color: var(--gcf-gold); }
.feed__text { font-size: 14px; padding-top: 5px; }
.feed__text a { font-weight: 700; text-decoration: none; }
.feed__text a:hover { text-decoration: underline; }
.feed__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Event mini cards on the dashboard. */
.ev-mini { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); text-decoration: none; }
.ev-mini:first-child { border-top: 0; }
.ev-date { width: 52px; height: 56px; border-radius: 10px; background: var(--gcf-navy); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ev-date b { font-size: 20px; font-weight: 800; }
.ev-date small { font-size: 11px; font-weight: 700; color: var(--gcf-gold); text-transform: uppercase; letter-spacing: .06em; }
.ev-mini:hover .list__title { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { max-width: 320px; }
.toolbar__count { margin-left: auto; font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: #C9D2D8; }
.chip.is-on { background: var(--gcf-navy); border-color: var(--gcf-navy); color: #fff; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFCFD; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background .1s; }
.table tbody tr:hover { background: #FAFBFC; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.person { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.person b { display: block; font-weight: 700; }
.person small { display: block; color: var(--muted); font-size: 12.5px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 14px 16px; font-size: 13px; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--gcf-navy); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ------------------------------------------------------------------ */
/* Record pages                                                        */
/* ------------------------------------------------------------------ */

.record { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.record__side { position: sticky; top: 88px; }
.profile { padding: 24px; }
.profile__head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile__head h1 { overflow-wrap: anywhere; font-size: 22px; font-weight: 800; color: var(--gcf-navy); }
.profile__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.facts a { color: var(--gcf-navy); }
.profile__actions { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.amicus-box { border-radius: 10px; background: #F4F1FB; padding: 14px; }
.amicus-box h4 { font-size: 13px; color: #4A3C88; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.score { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.score__track { flex: 1; height: 6px; background: #E3DDF3; border-radius: 99px; overflow: hidden; }
.score__track span { display: block; height: 100%; background: #6B5CA5; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tabs button { height: 48px; padding: 0 14px; border: 0; background: none; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.is-on { color: var(--gcf-navy); border-color: var(--gcf-gold); }
.tabs .count { margin-left: 6px; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--line-2); color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Pipeline board                                                      */
/* ------------------------------------------------------------------ */

.vtabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
.vtab { display: flex; flex-direction: column; gap: 2px; min-width: 168px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.vtab:hover { border-color: #C9D2D8; }
.vtab.is-on { border-color: var(--gcf-navy); box-shadow: inset 0 0 0 1px var(--gcf-navy); }
.vtab b { font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.vtab span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; min-height: 60vh; }
.lane { flex: 0 0 280px; background: #EBEFF2; border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 260px); }
.lane__head { padding: 12px 14px 10px; display: flex; gap: 8px; align-items: baseline; }
.lane__head b { font-size: 14px; }
.lane__head .n { font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 99px; padding: 1px 8px; }
.lane__sum { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lane__body { padding: 0 10px 10px; display: grid; gap: 8px; overflow-y: auto; min-height: 60px; align-content: start; }
.lane.is-over { background: #E0E7EC; box-shadow: inset 0 0 0 2px var(--gcf-gold); }
.lane--won .lane__head b::after { content: " \2713"; color: var(--ok); }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: grab; box-shadow: 0 1px 2px rgba(0, 25, 36, .04); }
.tcard:hover { border-color: #C9D2D8; }
.tcard.is-dragging { opacity: .5; }
.tcard__title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.tcard__sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tcard__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.tcard__val { font-weight: 800; color: var(--gcf-navy); font-variant-numeric: tabular-nums; }
.tcard__foot .avatar { margin-left: auto; }
.tcard--task .tcard__title { font-weight: 600; }
.tcard--done .tcard__title { text-decoration: line-through; color: var(--muted); }
.prio { width: 4px; align-self: stretch; border-radius: 4px; }
.lane__add { margin: 0 10px 10px; height: 36px; border: 1px dashed #C3CDD3; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.lane__add:hover { background: #fff; color: var(--gcf-navy); }

/* ------------------------------------------------------------------ */
/* Events                                                              */
/* ------------------------------------------------------------------ */

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ev-card { overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ev-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ev-card__hero { position: relative; padding: 20px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.ev-card__hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid var(--ev-accent); opacity: .18; }
.ev-card__hero img { width: 40px; height: 40px; }
.ev-card__name { font-size: 20px; font-weight: 800; line-height: 1.15; margin-top: 18px; position: relative; z-index: 1; }
.ev-card__tag { font-size: 13px; opacity: .78; margin-top: 4px; position: relative; z-index: 1; }
.ev-card__status { position: absolute; top: 18px; right: 18px; z-index: 1; }
.ev-card__body { padding: 16px 20px 20px; display: grid; gap: 12px; }
.ev-card__meta { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.ev-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-card__meta svg { width: 15px; height: 15px; color: var(--muted); }
.mini-meter { display: grid; gap: 4px; font-size: 12.5px; }
.mini-meter__top { display: flex; justify-content: space-between; color: var(--muted); }
.mini-meter__top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-meter .meter { margin-top: 0; height: 6px; }

.ev-hero { border-radius: var(--radius); padding: 28px; color: #fff; position: relative; overflow: hidden; margin-bottom: 20px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ev-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid var(--ev-accent); opacity: .16; }
.ev-hero img { width: 72px; height: 72px; position: relative; z-index: 1; }
.ev-hero h1 { font-size: 30px; font-weight: 800; }
.ev-hero p { margin: 6px 0 0; opacity: .82; }
.ev-hero__actions { margin-left: auto; display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.ev-hero .btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.ev-hero .btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.pkg { display: grid; gap: 8px; }
.pkg__row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.pkg__row:first-child { border-top: 0; }

/* Duplicate and rebrand preview. */
.dup { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.dup__preview { border-radius: 12px; padding: 20px; color: #fff; min-height: 220px; position: relative; overflow: hidden; align-self: start; }
.dup__preview::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid var(--ev-accent); opacity: .22; }
.dup__preview img { width: 44px; height: 44px; }
.dup__preview h3 { font-size: 20px; font-weight: 800; margin-top: 22px; }
.dup__preview p { margin: 6px 0 0; font-size: 13px; opacity: .8; }
.dup__preview .btn { margin-top: 18px; position: relative; z-index: 1; height: 34px; font-size: 13px; }
.copy-opts { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #FBFCFD; }

/* ------------------------------------------------------------------ */
/* Projects                                                            */
/* ------------------------------------------------------------------ */

.proj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.proj { padding: 16px 18px; text-decoration: none; display: grid; gap: 10px; border-left: 4px solid var(--proj, var(--gcf-navy)); }
.proj:hover { box-shadow: var(--shadow-lg); }
.proj.is-on { box-shadow: inset 0 0 0 2px var(--gcf-navy), var(--shadow); }
.proj b { font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Settings and roadmap                                                */
/* ------------------------------------------------------------------ */

.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.subnav { display: grid; gap: 2px; position: sticky; top: 88px; }
.subnav a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.subnav a:hover { background: #fff; }
.subnav a.is-on { background: #fff; color: var(--gcf-navy); box-shadow: var(--shadow); }
.integ { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.integ__card { padding: 18px; display: grid; gap: 10px; }
.integ__top { display: flex; gap: 12px; align-items: center; }
.integ__logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; flex: none; }
.integ__card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.roadmap { display: grid; gap: 14px; }
.stage { display: grid; grid-template-columns: 64px minmax(0, 1fr) 220px; gap: 18px; align-items: center; padding: 18px 20px; }
.stage__v { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 16px; color: var(--gcf-navy); }
.stage.is-now { border-color: var(--gcf-gold); box-shadow: inset 0 0 0 1px var(--gcf-gold), var(--shadow); }
.stage.is-now .stage__v { background: var(--gcf-gold); border-color: var(--gcf-gold); }
.stage h3 { font-size: 17px; font-weight: 800; color: var(--gcf-navy); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stage ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 2px; }
.stage__gate { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }
.stage__gate b { display: block; color: var(--ink); font-size: 13.5px; margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Overlays                                                            */
/* ------------------------------------------------------------------ */

.overlay { position: fixed; inset: 0; background: rgba(0, 25, 36, .45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal--wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 19px; font-weight: 800; color: var(--gcf-navy); }
.modal__head .icon-btn { margin-left: auto; border: 0; }
.modal__body { padding: 22px 24px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: #FBFCFD; border-radius: 0 0 16px 16px; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { font-size: 13px; }

.toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 10px; z-index: 80; }
.toast { background: var(--gcf-navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: 380px; animation: pop .2s ease-out; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gcf-gold); flex: none; }
.toast--error::before { background: #FF8A80; }

.skeleton { background: linear-gradient(90deg, #EEF1F3 25%, #F6F8F9 37%, #EEF1F3 63%); background-size: 400% 100%; animation: shimmer 1.2s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.welcome { display: flex; gap: 18px; align-items: center; padding: 18px 22px; background: var(--gcf-navy); color: #fff; border-radius: var(--radius); margin-bottom: 20px; }
.welcome b { font-size: 17px; }
.welcome p { margin: 2px 0 0; color: #A9BCC6; font-size: 14px; }
.welcome .btn { margin-left: auto; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1200px) {
	.grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--dash { grid-template-columns: 1fr; }
	.record { grid-template-columns: 1fr; }
	.record__side { position: static; }
	.stage { grid-template-columns: 56px minmax(0, 1fr); }
	.stage__gate { grid-column: 2; border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
	.shell { grid-template-columns: 1fr; }
	.side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
	.shell.is-nav-open .side { transform: none; }
	.shell.is-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 25, 36, .4); z-index: 25; }
	.top__menu { display: inline-grid; }
	.top { padding: 0 16px; }
	.content { padding: 20px 16px; }
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.settings { grid-template-columns: 1fr; }
	.subnav { position: static; display: flex; overflow-x: auto; }
	.dup { grid-template-columns: 1fr; }
	.demo-banner { padding: 10px 16px; }
	.search kbd { display: none; }
}
@media (max-width: 560px) {
	.grid--kpi { grid-template-columns: 1fr; }
	.grid2 { grid-template-columns: 1fr; }
	.page-head h1 { font-size: 24px; }
	.top__right .btn span { display: none; }
	.facts div { grid-template-columns: 96px 1fr; }
}
