:root {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #263c35;
  background: #f5f7f5;
  font-synthesis: none;
  --ink: #172b26;
  --accent: #246b51;
  --muted: #6f7d76;
  --line: #e2e8e2;
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 0;
}
a {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #e7eee6, #f6f8f5);
}
.login-card {
  padding: 50px;
  max-width: 530px;
  width: 100%;
}
.login-card h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -2px;
}
.login-card p {
  line-height: 1.7;
}
.login-card small {
  color: var(--muted);
}
.login-card .primary {
  width: 100%;
  margin: 15px 0 28px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1.7px;
}
.wordmark > span {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 32px 22px;
  background: var(--ink);
  color: #e7efe8;
  display: flex;
  flex-direction: column;
}
.sidebar .wordmark {
  padding: 0 10px;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #9db2a6;
  margin: 48px 12px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: transparent;
  color: #b8c8be;
  text-align: left;
  padding: 14px 12px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 5px;
}
.nav-item > span {
  font-size: 19px;
  width: 22px;
}
.nav-item:hover,
.nav-item.active {
  color: white;
  background: #30483c;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid #3d5146;
  font-size: 11px;
  color: #b7c8ba;
}
.sidebar-footer small {
  display: block;
  margin: 10px 0 20px;
  color: #8fa798;
  font-size: 10px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5c886;
  margin-right: 7px;
}
.sidebar-footer .text-button {
  color: #b7c8ba;
  padding: 0;
}
main {
  margin-left: 248px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}
.separator {
  margin: 0 14px;
  color: #a4afa6;
}
#breadcrumb {
  color: var(--ink);
}
.content {
  padding: 40px 42px 0;
  max-width: 1560px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 13px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin: 0 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 7px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.page-heading p:last-child {
  margin: 0;
}
.primary,
.secondary,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 17px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: #1c533e;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: #edf2ec;
}
.text-button {
  background: none;
  color: var(--accent);
  font-size: 12px;
  padding: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.metric {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  font-size: 35px;
  letter-spacing: -1px;
  display: block;
  margin: 12px 0 8px;
  font-weight: 600;
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  margin-bottom: 24px;
}
.overview-grid .panel {
  margin: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 25px 26px 20px;
}
.panel-heading p {
  font-size: 11px;
  margin: 0;
}
.subtle {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}
.pipeline-row {
  display: grid;
  grid-template-columns: 90px 1fr 26px;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  padding: 10px 26px;
}
.pipeline-row:last-child {
  padding-bottom: 30px;
}
.bar-track {
  height: 7px;
  background: #f0f3ee;
  border-radius: 3px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #78a18b;
  border-radius: 3px;
}
.bar.applied {
  background: #246b51;
}
.focus-panel {
  background: #e7eee1;
  border: 1px solid #dfe6d8;
  padding: 28px 30px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.focus-panel h2 {
  font-size: 23px;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.7px;
}
.profile-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #cedbc9;
  padding: 10px 0;
  font-size: 12px;
}
.profile-summary-row span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.light-button {
  margin-top: auto;
  background: transparent;
  border: 1px solid #bbcdb4;
  justify-content: space-between;
  width: 100%;
  color: #244835;
  padding: 11px 13px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--muted);
  background: #fafcf9;
  padding: 13px 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 25px;
  border-bottom: 1px solid #edf0eb;
}
tr:last-child td {
  border-bottom: 0;
}
.job-title {
  font-weight: 600;
  color: var(--ink);
  display: block;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.badge {
  display: inline-block;
  border: 1px solid #dce4db;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 10px;
  background: #f5f7f3;
}
.badge.applied,
.badge.offer {
  color: #276644;
  background: #e9f3e9;
  border-color: #d6e6d4;
}
.badge.interview {
  background: #fbf2da;
  color: #785a19;
  border-color: #eee1bd;
}
.badge.failed,
.badge.rejected,
.badge.unknown {
  color: #8c4c38;
  background: #faf0e9;
  border-color: #edd9cb;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.filters label {
  margin: 0;
  min-width: 140px;
}
.search-label {
  flex: 1;
}
.filters input {
  width: 100%;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.profile-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.profile-card .badge {
  align-self: flex-start;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 9px;
}
.profile-card h2 {
  font-size: 20px;
  line-height: 1.35;
}
.profile-card .summary {
  min-height: 60px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.profile-card .keywords {
  font-size: 11px;
  color: var(--accent);
  margin: 10px 0 20px;
}
.profile-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-card .company {
  overflow-wrap: anywhere;
}
.upload-label {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  padding: 10px;
  margin: 0;
  display: inline-flex !important;
  align-items: center;
}
.upload-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.upload-label:focus-within {
  outline: 2px solid var(--accent);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-panel {
  padding: 27px;
}
.form-panel h2 {
  margin-bottom: 20px;
}
.help {
  font-size: 11px;
  line-height: 1.8;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 17px 0;
  color: #435b4d;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #d9e2d8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
textarea {
  resize: vertical;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  font-weight: 400;
}
.check-label input {
  width: auto;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.saved-answers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  padding: 16px 0;
}
.dialog-status.error {
  color: #9a3d29;
}
#resume-library-directory {
  overflow-wrap: anywhere;
}
.saved-answers summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.saved-answers .help {
  margin-top: 12px;
}
.answer-row {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.answer-row label {
  margin: 10px 0;
}
.source-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.source-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
pre {
  font-size: 11px;
  line-height: 1.8;
  background: #f4f7f2;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #3d5748;
}
.command-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.command-row label {
  margin: 0;
}
.grow {
  flex: 1;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #89988a;
  margin-top: 20px;
}
.page-footer span:first-child {
  letter-spacing: 1.6px;
  font-size: 9px;
}
#notice {
  padding: 14px 18px;
  border: 1px solid #d6e4cd;
  background: #ecf4e6;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 12px;
}
#notice.error,
#login-error {
  color: #9a3d29;
}
#notice.error {
  background: #fbede6;
  border-color: #efd7cd;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: 560px;
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #13281fcc;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.close-dialog {
  background: transparent;
  font-size: 25px;
  color: var(--muted);
  padding: 0 7px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
}
.event-list {
  font-size: 11px;
  padding-left: 20px;
  line-height: 1.9;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  font-size: 11px;
}
.detail-link {
  display: inline-block;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 50px;
  }
  .page-heading {
    margin-bottom: 40px;
  }
  .metrics {
    margin-bottom: 30px;
  }
  .overview-grid {
    margin-bottom: 30px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 26px 14px;
  }
  main {
    margin-left: 210px;
  }
  .content {
    padding: 30px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 20px;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }
  .sidebar .wordmark {
    margin-bottom: 16px;
  }
  .workspace-label,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 10px;
    font-size: 11px;
    margin: 0;
  }
  .nav-item > span {
    display: none;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 55px;
    font-size: 10px;
  }
  .content {
    padding: 24px 18px 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading .primary {
    padding: 10px;
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(3) {
    border-bottom: 0;
  }
  .overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
    gap: 10px;
  }
  .filters .search-label {
    flex-basis: 100%;
  }
  .filters label {
    min-width: 120px;
    flex: 1;
  }
  .page-footer span:last-child {
    display: none;
  }
  .panel-heading {
    padding: 20px;
  }
  .focus-panel {
    min-height: 320px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .login-card {
    padding: 30px;
  }
  .login-card h1 {
    font-size: 40px;
  }
  .command-row {
    align-items: stretch;
    flex-direction: column;
  }
}
