:root {
  --black: #0a0a0a;
  --ink: #141414;
  --red: #e10600;
  --red-dark: #b10500;
  --white: #ffffff;
  --paper: #f3f3f3;
  --muted: #5e5e5e;
  --line: #e4e4e4;
  --card: #ffffff;
  --ok: #157a3a;
  --warn: #8a5a00;
  --sidebar: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex: none;
  overflow: hidden;
}
.brand {
  display: block;
  padding: 18px 16px 12px;
  color: white;
  text-decoration: none;
}
.brand img { width: 210px; max-width: 100%; height: auto; display: block; }
.brand strong { display: block; letter-spacing: .04em; font-size: 15px; }
.brand span { display: block; color: #cfcfcf; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; padding: 8px 12px; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; }
.nav a {
  color: #f2f2f2;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav a.active, .nav a:hover { background: var(--red); color: white; text-decoration: none; }
.badge {
  background: white;
  color: var(--black);
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  font-size: 12px;
  padding: 1px 6px;
}
.nav a.active .badge { color: var(--red); }
.side-user { flex: none; padding: 16px; border-top: 1px solid #2a2a2a; }
.side-user strong { display: block; }
.side-user span { display: block; color: #bdbdbd; font-size: 13px; }
.side-user form { margin: 0; }
.logout { background: transparent; color: white; border: 1px solid #444; border-radius: 8px; padding: 6px 10px; margin-top: 10px; cursor: pointer; }
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px 0;
}
.topbar h1 { margin: 0; font-size: 28px; }
.sub { color: var(--muted); margin: 4px 0 0; }
.content { padding: 18px 28px 40px; }
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.stat .num { font-size: 32px; font-weight: 700; margin: 6px 0; color: var(--ink); }
.stat .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; border-color: var(--red); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.layout > * { min-width: 0; }
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}
.col {
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.col h2 { font-size: 14px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.col h2 .pill { margin-top: 0; }
.person {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: white;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.person:hover { text-decoration: none; border-color: var(--red); }
.person strong { display: block; }
.entered { color: var(--muted); font-size: 12px; line-height: 1.2; margin: 0 0 6px; }
.candidate-body { display: flex; gap: 16px; align-items: center; }
.person .role { color: var(--muted); font-size: 13px; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #f6f6f6;
  border: 1px solid var(--line);
  margin-top: 8px;
}
.pill.red { background: #fff1f0; color: var(--red); border-color: #ffd0cc; }
.pill.ok { background: #eefaf2; color: var(--ok); border-color: #cfeedd; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn, button.btn, a.btn {
  background: var(--red);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--red-dark); text-decoration: none; color: white; }
.btn.black { background: var(--black); }
.btn.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fafafa; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="file"], select, textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 9px 10px;
  background: white;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; }
.list-link { display: block; padding: 12px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list-link.active, .list-link:hover { background: #fff5f5; text-decoration: none; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { color: var(--ink); padding: 8px 12px; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.active { border-color: var(--red); color: var(--red); }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: white;
  display: grid; place-items: center; font-weight: 700; font-size: 22px;
}
.messages { margin: 0 28px; }
.msg { padding: 10px 12px; border-radius: 10px; margin-top: 10px; background: #fff; border: 1px solid var(--line); }
.msg.success { border-color: #b7e4c7; background: #f3fff6; }
.msg.warning, .msg.error { border-color: #ffd0cc; background: #fff5f5; }
.thread { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: white; }
.thread.outbound { background: #fff8f8; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { min-height: 110px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.day.off { background: #fafafa; color: #999; }
.day .n { font-size: 12px; color: var(--muted); }
.event { display: block; font-size: 12px; border-radius: 6px; padding: 3px 5px; margin-top: 4px; color: white; text-decoration: none; }
.event.zoom { background: var(--red); }
.event.in_person { background: var(--black); }
.event.offer, .event.onboarding { background: white; color: var(--red); border: 1px solid var(--red); }
.event.other { background: #444; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
.progress { height: 10px; background: #eee; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--red); }
.public-header {
  background: var(--black);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
}
.public-header a { color: white; text-decoration: none; }
.public-wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }
.zoom-room { width: 100%; min-height: 640px; }
.help { color: var(--muted); font-size: 13px; }
.dropzone {
  display: block;
  border: 2px dashed var(--red);
  border-radius: 14px;
  background: #fff8f8;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
}
.dropzone input { margin-top: 12px; }
.dropzone.over { background: #ffe8e6; border-color: var(--black); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; text-align: left; }
.file-list li { padding: 2px 0; }
@media (max-width: 1100px) {
  .layout, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .stats, .row { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(5, minmax(160px, 1fr)); }
  .sidebar { position: relative; height: auto; width: 100%; overflow: visible; }
  .nav { overflow: visible; flex: none; }
  .app { display: block; }
}
