/* teamative brand: tech Green #1B281F, team Green #26D36C, DM Sans, 3px radius. */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.aef1c6b4d4a3.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-italic.5c48ab319348.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --tech: #1B281F;
  --team: #26D36C;
  --team-dark: #22BE61;
  --team-20: #BEF2D3;
  --yellow-20: #FFFAAF;
  --black: #141A17;
  --tarmac: #6B6B6B;
  --titan: #9E9E9E;
  --tin: #CBCBCB;
  --talc: #EDEDED;
  --bg: #F7F7F6;
  --surface: #FFFFFF;
  --text: var(--black);
  --muted: var(--tarmac);
  --line: var(--talc);
  --danger: #B42318;
  --radius: 3px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "DM Sans", Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 28px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.muted { color: var(--muted); }

/* ---- shell ---- */
.icon { flex: none; display: block; }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--tech); color: #fff; padding: 28px 16px 20px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 0 12px; color: #fff; }
.logo { display: block; color: inherit; }
.brand-logo { width: 132px; height: auto; }
.brand-unit { font-size: 12px; font-weight: 500; color: var(--team); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--titan); padding: 18px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); text-decoration: none; color: #D5DDD7; border-left: 3px solid transparent; transition: background-color 120ms ease, color 120ms ease; }
.nav a .icon { color: var(--titan); transition: color 120ms ease; }
.nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav a:hover .icon { color: #fff; }
.nav a.active { background: rgba(38,211,108,0.12); color: #fff; border-left-color: var(--team); font-weight: 500; }
.nav a.active .icon { color: var(--team); }
.sidebar-foot { margin-top: auto; font-size: 13px; color: var(--tin); display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 12px 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--team); color: var(--tech); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.me-text { display: flex; flex-direction: column; line-height: 1.25; }
.me-text strong { color: #fff; font-weight: 500; font-size: 14px; }
.me-text small { color: var(--titan); font-size: 12px; }
.sidebar-foot form { margin: 0; }
.sidebar-foot a, .sidebar-foot button { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--tin); text-decoration: none; background: none; border: 0; padding: 7px 12px; border-radius: var(--radius); font: inherit; cursor: pointer; text-align: left; }
.sidebar-foot a:hover, .sidebar-foot button:hover { color: #fff; background: rgba(255,255,255,0.06); }

.main { padding: 32px 40px 64px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 4px; }

/* ---- buttons & forms ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; transition: background-color 120ms ease, border-color 120ms ease; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--tech); background: var(--tech); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--black); }
.btn-accent { background: var(--team); border-color: var(--team); color: var(--tech); }
.btn-accent:hover { background: var(--team-dark); border-color: var(--team-dark); }
.btn-ghost { background: transparent; color: var(--tech); border-color: var(--tin); }
.btn-ghost:hover { background: var(--talc); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8f1c13; }

input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--tin); border-radius: var(--radius); padding: 8px 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--team); outline-offset: -1px; border-color: var(--team); }
label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; }
.helptext, .field small { font-size: 12px; color: var(--muted); }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--danger); font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form-card { max-width: 880px; }
.fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.fieldset legend { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field.wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.form-actions .spacer { flex: 1; }

/* ---- toolbar & table ---- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 260px; }
.toolbar select { width: auto; min-width: 160px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; background: #FBFBFA; }
tbody tr:hover { background: #F6FBF8; }
tbody tr:last-child td { border-bottom: 0; }
td a.row-link { font-weight: 500; text-decoration: none; }
td a.row-link:hover { color: var(--team-dark); text-decoration: underline; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.pager .links { display: flex; gap: 8px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 12px; font-weight: 500; background: var(--talc); color: var(--black); }
.badge-new, .badge-lead, .badge-target { background: var(--talc); }
.badge-screening, .badge-shortlisted, .badge-qualified, .badge-prospect { background: #E3EAE5; color: var(--tech); }
.badge-submitted, .badge-interviewing, .badge-proposal, .badge-negotiation, .badge-offer { background: var(--yellow-20); }
.badge-placed, .badge-won, .badge-client, .badge-client_de { background: var(--team-20); color: #0F5A2E; }
.badge-rejected, .badge-lost, .badge-do_not_contact { background: #FBE4E2; color: var(--danger); }
.badge-on_hold, .badge-past, .badge-partner, .badge-via_partner { background: #F1F1F1; color: var(--tarmac); }

/* ---- overview ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 3px solid var(--tech); }
.stat.accent { border-top-color: var(--team); }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; text-decoration: none; }
.bar-track { height: 8px; background: var(--talc); border-radius: var(--radius); overflow: hidden; }
.bar-fill { height: 100%; background: var(--team); }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-plain li:last-child { border-bottom: 0; }

/* ---- messages ---- */
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { padding: 10px 14px; border-radius: var(--radius); background: var(--team-20); color: #0F5A2E; border-left: 3px solid var(--team); }
.messages li.error { background: #FBE4E2; color: var(--danger); border-left-color: var(--danger); }

/* ---- login ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; background: var(--tech); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-brand-top { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.auth-logo { width: 188px; height: auto; color: #fff; }
.auth-pattern { position: absolute; right: -46px; top: -46px; width: min(30vw, 400px); height: auto; pointer-events: none; }
.auth-brand .claim { position: relative; z-index: 1; font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; max-width: 560px; margin: 0 0 20px; }
.auth-brand .claim em { font-style: normal; color: var(--team); }
.auth-sub { position: relative; z-index: 1; max-width: 420px; margin: 0; font-size: 17px; color: #C9D2CC; }
.auth-foot { position: relative; z-index: 1; margin: 0; font-size: 13px; color: var(--titan); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface); }
.auth-form form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.auth-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.auth-head p { margin: 0; }
.auth-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--team-20); color: var(--tech); border-radius: var(--radius); margin-bottom: 12px; }
.auth-form input[type=text], .auth-form input[type=password] { padding: 11px 12px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; padding: 12px 16px; font-size: 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: var(--talc); color: var(--black); font-size: 14px; border-left: 3px solid var(--tarmac); }
.notice .icon { margin-top: 2px; }
.notice-error { background: #FBE4E2; color: var(--danger); border-left-color: var(--danger); }
.auth-facts { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.auth-facts li { display: flex; gap: 8px; align-items: center; }
.auth-facts .icon { color: var(--team-dark); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-group { display: none; }
  .sidebar-foot { margin: 0; flex-direction: row; gap: 12px; }
  .main { padding: 24px 16px 48px; }
  .panels, .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 24px; gap: 32px; }
  .auth-brand .claim { font-size: 36px; }
  .auth-pattern { width: 260px; right: -60px; top: 0; transform: none; opacity: 0.6; }
  .brand { flex-direction: row; align-items: center; gap: 10px; }
  .brand-logo { width: 104px; }
  .me { display: none; }
  .sidebar-foot { border-top: 0; padding-top: 0; }
}

/* ---- recruiting: badges ---- */
.badge-open, .badge-high, .badge-sourced { background: #E3EAE5; color: var(--tech); }
.badge-high { background: var(--tech); color: #fff; }
.badge-normal { background: var(--talc); }
.badge-low, .badge-closed, .badge-withdrawn, .badge-not_a_fit { background: #F1F1F1; color: var(--tarmac); }
.badge-filled { background: var(--team-20); color: #0F5A2E; }
.badge-screen, .badge-interview_1, .badge-interview_2, .badge-final { background: var(--yellow-20); }

/* ---- recruiting: layout pieces ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stat .sub { font-size: 13px; color: var(--muted); }
.inline-filter select { width: auto; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card h2 .icon { color: var(--team-dark); }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin: 20px 0 6px; }
.list-plain li .right { text-align: right; flex: none; }
.overdue { color: var(--danger); font-weight: 500; }
.chips { margin: 8px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap.flat { border: 0; }
table.compact th, table.compact td { padding: 10px 12px; white-space: normal; vertical-align: top; }
table.compact td.num, table.compact th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cv-link { display: inline-flex; vertical-align: middle; }
.stage-form { margin: 0; }
.stage-form select { padding: 4px 8px; font-size: 13px; width: auto; max-width: 100%; }
.facts dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.icon-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 4px; }
.facts p { font-size: 14px; margin: 0; }

/* ---- recruiting: notes and timeline ---- */
.note-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.note-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.note-actions select { width: auto; max-width: 100%; flex: 1 1 200px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-day { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 14px 0 6px; }
.feed-day:first-child { padding-top: 0; }
.feed-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 8px 0; font-size: 14px; }
.feed-item p { margin: 0; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tin); margin-top: 7px; }
.kind-note .feed-dot { background: var(--tech); }
.kind-stage_change .feed-dot { background: var(--team); }
.kind-job_created .feed-dot, .kind-submission_created .feed-dot { background: var(--team-20); border: 1px solid var(--team); }
.feed-empty { padding: 8px 0; }

/* ---- recruiting: pipeline board ---- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board-col { background: #EFF1EF; border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.board-col header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--tech); padding: 2px 4px 6px; border-bottom: 2px solid var(--tin); }
.board-col.col-offer header { border-bottom-color: #E8C800; }
.board-col.col-placed header { border-bottom-color: var(--team); }
.board-col .count { background: #fff; border-radius: 10px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; box-shadow: 0 1px 0 rgba(20,26,23,0.04); }
.board-card .title { font-weight: 600; font-size: 14px; text-decoration: none; }
.board-card .title:hover, .board-card .job:hover { text-decoration: underline; }
.board-card .job { text-decoration: none; line-height: 1.35; }
.board-card .meta { margin: 0; display: flex; gap: 6px; align-items: flex-start; color: var(--muted); }
.board-card .meta .icon { margin-top: 2px; }
.board-card footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.board-card .stage-form select { width: 100%; }
.board-empty { color: var(--titan); text-align: center; margin: 8px 0; }

@media (max-width: 900px) {
  .today-grid { grid-template-columns: 1fr; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow-x: visible; }
  .facts dl { grid-template-columns: 110px 1fr; }
}
.stat-link { text-decoration: none; transition: border-color 120ms ease, box-shadow 120ms ease; }
.stat-link:hover { box-shadow: 0 2px 8px rgba(20,26,23,0.08); }
.card h2 .more { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--team-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card h2 .more .icon { color: inherit; }
.main { min-width: 0; }
.board-card .meta.overdue { color: var(--danger); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1100px) {
  .today-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .facts { order: -1; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 26px; }
}

/* ---- phones: menu as one scrollable row so content starts near the top ---- */
@media (max-width: 900px) {
  .sidebar { gap: 8px; padding: 10px 12px; }
  .brand { width: 100%; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 7px 10px; border-left: 0; border-bottom: 2px solid transparent; flex: none; }
  .nav a.active { border-bottom-color: var(--team); }
  .sidebar-foot { position: absolute; top: 10px; right: 12px; gap: 0; }
  .sidebar { position: relative; }
  .sidebar-foot a span, .sidebar-foot button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidebar-foot a, .sidebar-foot button { padding: 8px; }
}
select { max-width: 100%; }
.today-grid > *, .detail-grid > *, .panels > * { min-width: 0; }
@media (max-width: 1100px) { .today-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .panels, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.toolbar > div { min-width: 0; max-width: 100%; }
.toolbar select { max-width: 100%; }

/* ---- page actions & CV box ---- */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-box { margin-top: 20px; max-width: 880px; }
.cv-box h2 { display: flex; align-items: center; gap: 8px; }
.cv-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: #F6FBF8; border: 1px solid var(--team-20); border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.cv-upload { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.cv-upload input[type=file] { font: inherit; font-size: 14px; }
.drop { border: 2px dashed var(--tin); border-radius: var(--radius); padding: 32px 24px; text-align: center; background: var(--surface); }
.drop .icon { margin: 0 auto 8px; color: var(--team-dark); }

/* ---- finance ---- */
.stat-alert { border-top-color: var(--danger); }
.bar-warn { background: #E5DA31; }
.bar-alert { background: var(--danger); }
table.mini { width: 100%; font-size: 14px; }
table.mini th, table.mini td { padding: 8px 6px; white-space: normal; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
pre.code { background: var(--black); color: #E6EBE7; padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.link-form .field { margin-bottom: 12px; }
.badge-overdue { background: #FBE4E2; color: var(--danger); }
.badge-sent, .badge-partial { background: var(--yellow-20); }
.badge-paid { background: var(--team-20); color: #0F5A2E; }
.badge-void, .badge-draft { background: #F1F1F1; color: var(--tarmac); }
