:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1d2927;
  background: #f5f7f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #245c50;
  --green-dark: #193e37;
  --mint: #e4f0e9;
  --muted: #78827f;
  --line: #e7ebe8;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7f5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 30; height: 72px; padding: 0 max(28px, calc((100% - 1220px) / 2)); background: #fff; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--green-dark); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 10px 10px 10px 3px; font-size: 17px; }
.topbar-actions { display: flex; gap: 20px; align-items: center; }
.topbar-actions form { margin: 0; }
.private-badge { display: flex; align-items: center; gap: 7px; color: #64716c; font-size: 12px; }
.private-badge span, .source-dot { width: 7px; height: 7px; border-radius: 100%; background: #64a581; display: inline-block; }
.page-shell { max-width: 1220px; margin: 0 auto; padding: 48px 28px 20px; }
.dashboard-overview { position: sticky; top: 72px; z-index: 20; margin: -48px -28px 28px; padding: 48px 28px 1px; background: #f5f7f5; box-shadow: 0 8px 14px -14px rgb(22 46 34 / 70%); }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.welcome-actions form { margin: 0; }
.notice { margin: -16px 0 22px; padding: 11px 14px; border-radius: 8px; font-size: 12px; }
.notice-success { color: #356547; background: #eaf4ed; }
.notice-error { color: #8c3737; background: #fbefed; }
.eyebrow { color: #789087; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; margin: 0 0 9px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", Arial, sans-serif; }
h1 { margin-bottom: 7px; font-size: clamp(29px, 4vw, 39px); letter-spacing: -1.6px; line-height: 1.2; color: #1c302c; }
.accent-dot { color: #70a489; }
.lead { margin: 0; font-size: 14px; }
.muted { color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .15s, transform .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-outline { color: var(--green); background: #fff; border-color: #dce5df; }
.button-outline:hover { border-color: #89ac99; background: #f9fcfa; }
.button-quiet { color: #63706b; background: transparent; padding: 0 9px; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 11px; }
.button-wide { width: 100%; margin-top: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 38px; }
.stat-card { min-height: 102px; position: relative; display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 17px 20px; transition: border-color .15s, box-shadow .15s; }
.stat-card:hover, .stat-active { border-color: #aac3b3; box-shadow: 0 4px 14px #234d3e0c; }
.stat-label { color: #75817c; font-size: 11px; font-weight: 600; }
.stat-card strong { margin-top: 5px; font: 800 24px "Segoe UI", Arial, sans-serif; color: #213b34; }
.stat-icon { position: absolute; top: 18px; right: 18px; color: #83a795; font-size: 18px; }
.mini-dashboard { margin: -17px 0 34px; padding: 21px 23px 16px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.mini-dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 15px; }
.mini-dashboard-heading .eyebrow { margin-bottom: 5px; }
.mini-dashboard-heading h2 { font-size: 16px; }
.activity-note, .activity-footnote { color: #89938f; font-size: 10px; }
.activity-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.activity-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: #f6f8f6; color: #73807b; font-size: 10px; }
.activity-total strong { color: #294d3f; font-size: 16px; }
.activity-chart { display: grid; gap: 3px; }
.activity-row { display: grid; grid-template-columns: 67px minmax(120px, 1fr) 120px; align-items: center; gap: 12px; min-height: 29px; }
.activity-header { min-height: 23px; color: #89938f; font-size: 9px; }
.activity-header span:nth-child(2) { padding-left: 31px; }
.activity-header span:last-child, .application-count { text-align: center; }
.activity-day { display: flex; align-items: center; gap: 6px; color: #53625b; font-size: 10px; text-transform: capitalize; }
.activity-day small { color: #99a39e; font-size: 9px; }
.hit-meter { display: flex; align-items: center; gap: 8px; }
.hit-count { width: 23px; color: #557566; font-size: 10px; text-align: right; }
.meter-track { display: block; flex: 1; height: 7px; overflow: hidden; border-radius: 6px; background: #edf1ee; }
.meter-fill { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #75a88b; }
.application-count { color: #355e4b; font-size: 11px; font-weight: 700; }
.activity-footnote { margin: 12px 0 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .85fr); gap: 26px; align-items: start; }
.content-grid > * { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
h2 { color: #21352f; font-size: 19px; letter-spacing: -.5px; margin-bottom: 0; }
.result-count { color: #4f5954; font-size: 11px; padding-bottom: 2px; }
.job-search { display: grid; gap: 9px; margin: 0 0 18px; padding: 17px 18px 14px; border: 1px solid #dce8df; border-radius: 12px; background: linear-gradient(115deg, #f1f7f2 0%, #fbfcfb 100%); box-shadow: 0 3px 12px rgb(34 65 48 / 5%); }
.job-search > label { color: #294b39; font-size: 13px; font-weight: 700; letter-spacing: -.1px; }
.job-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.job-search-input-wrap { position: relative; width: 100%; min-width: 0; }
.job-search-icon { position: absolute; top: 50%; left: 14px; width: 19px; height: 19px; color: #789082; stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.job-search input { display: block; appearance: none; width: 100%; min-width: 0; min-height: 48px; padding: 0 14px 0 43px; border: 1px solid #b9cbbf; border-radius: 8px; outline: 0; background: #fff; color: #25352f; font-size: 13px; box-shadow: inset 0 1px 2px rgb(28 54 39 / 3%); }
.job-search input:focus { border-color: #6d9a7e; box-shadow: 0 0 0 4px rgb(105 151 121 / 15%); }
.job-search input::placeholder { color: #929e96; }
.job-search-submit { min-height: 48px; padding-inline: 19px; gap: 9px; white-space: nowrap; }
.job-search > p { margin: 0; color: #4f5c54; font-size: 11px; }
.job-search-clear { padding: 8px; color: #68766f; font-size: 11px; white-space: nowrap; }
.job-search-clear:hover { color: var(--green); }
.job-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; min-width: 0; }
.jobs-column .section-heading .eyebrow { color: #53675c; }
.job-card { display: flex; min-width: 0; gap: 14px; padding: 20px; border: 1px solid #cbd6cf; border-left: 4px solid #6b9478; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgb(26 47 35 / 6%); transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { border-color: #9db5a5; border-left-color: #3d7152; box-shadow: 0 5px 15px rgb(26 47 35 / 10%); transform: translateY(-1px); }
.job-logo { display: grid; flex: 0 0 39px; height: 39px; place-items: center; border-radius: 10px; background: #edf4ef; color: #47745f; font: 700 16px "Segoe UI", Arial, sans-serif; }
.job-main { min-width: 0; flex: 1; }
.job-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-heading h3 { font-size: 14px; letter-spacing: -.2px; margin: 0 0 3px; color: #243a33; }
.company { margin: 0; color: #424b46; font-size: 12px; }
.job-card-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.status { flex: 0 0 auto; padding: 5px 8px; border-radius: 20px; background: #f0f3f1; color: #6d7873; font-size: 9px; font-weight: 700; }
.status-new { background: #e5f1e8; color: #285d38; }
.status-saved { background: #fdf0d4; color: #704d0b; }
.status-applied { background: #e7eefb; color: #345382; }
.status-dismissed { background: #f1e9e8; color: #654b49; }
.favorite-form { display: flex; align-items: center; gap: 5px; margin: 0; }
.favorite-toggle { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #b9c9bf; border-radius: 8px; background: #fff; color: #40564a; cursor: pointer; font-size: 21px; line-height: 1; }
.favorite-toggle:hover, .favorite-toggle:focus-visible { border-color: #557a62; background: #edf4ef; outline: 2px solid #c8ddce; outline-offset: 1px; }
.favorite-toggle.is-favorite { border-color: #a17b29; background: #fff5dc; color: #805c0a; }
.favorite-toggle:disabled { cursor: wait; opacity: .7; }
.favorite-feedback { color: #40564a; font-size: 10px; white-space: nowrap; }
.favorite-summary { max-width: 720px; padding-left: 10px; border-left: 2px solid #9aab9e; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 13px; color: #424b46; font-size: 11px; }
.job-kind { padding: 3px 8px; border-radius: 20px; background: #f0f3f1; color: #66736d; font-size: 10px; font-weight: 700; }
.job-kind-consulting { background: #e4f2e9; color: #286344; }
.job-description { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; color: #252a28; font-size: 13px; line-height: 1.65; }
.job-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.job-actions form { margin: 0; }
.text-link { color: var(--green); font-size: 11px; font-weight: 700; }
.text-link:hover { color: #172f28; }
.side-column { display: grid; gap: 14px; }
.panel { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.panel-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 17px; }
.panel-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--mint); color: var(--green); font-size: 19px; }
.panel-heading h2 { font-size: 14px; margin: 0 0 3px; }
.panel-heading p { color: #84908b; font-size: 10px; margin: 0; }
.stack-form { display: grid; gap: 8px; }
.stack-form label { margin-top: 5px; font-size: 11px; font-weight: 700; color: #46534e; }
.stack-form input, .stack-form select, .stack-form textarea { width: 100%; border: 1px solid #e1e7e3; border-radius: 7px; outline: 0; padding: 10px 11px; background: #fff; color: #25352f; font-size: 11px; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: #82a895; box-shadow: 0 0 0 3px #e9f2ec; }
.stack-form input::placeholder, .stack-form textarea::placeholder { color: #a4ada8; }
.stack-form textarea { resize: vertical; line-height: 1.5; }
.optional { color: #98a29d; font-weight: 400; }
.compact-form { gap: 5px; }
.compact-form label { margin-top: 7px; }
.compact-form .button { margin-top: 10px; }
.cv-panel { position: relative; overflow: hidden; background: #edf4ef; border-color: #e5eee7; padding: 22px; }
.cv-panel .eyebrow { color: #648374; }
.cv-panel h2 { position: relative; z-index: 1; max-width: 240px; font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
.cv-panel p:not(.eyebrow) { position: relative; z-index: 1; max-width: 260px; color: #6d7f75; font-size: 11px; line-height: 1.55; }
.cv-panel .availability { color: #355e4b; font-weight: 700; }
.cv-panel a:not(.text-link) { color: #426853; }
.cv-links { position: relative; z-index: 1; display: grid; gap: 8px; margin: 13px 0; }
.private-pdf-link { position: relative; z-index: 1; }
.search-panel h2 { font-size: 15px; margin: 0 0 8px; }
.search-time, .search-message, .search-detail { margin: 0 0 7px; color: #718078; font-size: 11px; line-height: 1.5; }
.search-time { color: #52615a; font-weight: 600; }
.search-message { color: #356547; }
.search-failed { color: #8c3737; }
.search-detail { margin-bottom: 0; }
.cv-decoration { position: absolute; top: 9px; right: 13px; color: #dce9df; font: 800 68px "Segoe UI", Arial, sans-serif; transform: rotate(9deg); }
.source-note { display: flex; gap: 9px; padding: 6px 5px; align-items: flex-start; }
.source-note .source-dot { margin-top: 4px; flex: 0 0 auto; }
.source-note p { color: #87918c; margin: 0; font-size: 10px; line-height: 1.55; }
.source-note strong { color: #52615a; }
.manual-sources { margin-top: 7px; color: #52615a; font-size: 10px; }
.manual-sources summary { width: fit-content; color: var(--green); cursor: pointer; font-weight: 700; }
.manual-sources ul { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 15px; }
.manual-sources a { color: var(--green); }
.source-note .manual-application-note { margin-top: 8px; }
.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #dce5df; border-radius: 11px; }
.empty-icon { margin: 0 auto 13px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: #edf4ef; color: #54806a; font-size: 26px; }
.empty-state h3 { font-size: 15px; margin-bottom: 7px; }
.empty-state p { max-width: 350px; margin: auto; color: #84908b; font-size: 11px; line-height: 1.6; }
.application-shell > h1 { margin-bottom: 9px; }
.application-shell > .lead { max-width: 720px; margin-bottom: 25px; }
.application-job { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.application-job .eyebrow { margin-bottom: 6px; }
.application-job h2 { margin-bottom: 5px; font-size: 17px; }
.application-job p:not(.eyebrow) { margin: 0; color: #74817b; font-size: 12px; }
.application-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .75fr); gap: 18px; align-items: start; }
.application-editor { padding: 23px; }
.application-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.application-heading h2, .application-sidebar h2 { margin-bottom: 5px; font-size: 16px; }
.application-heading p, .application-sidebar p:not(.eyebrow) { margin: 0; color: #75817c; font-size: 11px; line-height: 1.55; }
.application-editor .stack-form { gap: 9px; }
.application-editor .stack-form label { margin-top: 0; }
.application-editor textarea { min-height: 330px; font: 13px/1.7 "Segoe UI", Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.application-editor .button { justify-self: start; min-width: 160px; }
.application-sidebar { display: grid; gap: 13px; }
.application-sidebar .panel { padding: 20px; }
.email-composer { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.email-composer h2 { margin: 0; font-size: 16px; }
.email-composer .stack-form { gap: 9px; }
.email-composer .stack-form label { margin-top: 0; }
.email-composer input:not([type="checkbox"]), .copy-field-row input { width: 100%; min-width: 0; border: 1px solid #e1e7e3; border-radius: 7px; padding: 10px 11px; background: #fff; color: #25352f; font-size: 12px; }
.email-composer textarea { min-height: 180px; font: 13px/1.65 "Segoe UI", Arial, sans-serif; }
.email-attachment, .email-setup-note { margin: 0; color: #75817c; font-size: 11px; line-height: 1.55; }
.confirmation-check { display: flex; align-items: flex-start; gap: 8px; color: #46534e; font-size: 11px; line-height: 1.5; }
.confirmation-check input { flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.form-helper h2 { margin-bottom: 8px; font-size: 16px; }
.form-helper > p:not(.eyebrow) { margin: 0 0 13px; color: #75817c; font-size: 11px; line-height: 1.55; }
.form-helper > .button { margin-bottom: 8px; }
.copy-fields { display: grid; gap: 7px; margin-top: 17px; }
.copy-fields > label { margin-top: 3px; color: #46534e; font-size: 11px; font-weight: 700; }
.copy-field-row { display: flex; gap: 7px; align-items: center; }
.copy-field-row input { font-size: 11px; }
.copy-field-row .button { flex: 0 0 auto; }
.copy-fields > .button { justify-self: start; margin-top: 4px; }
.copy-status { min-height: 16px; margin: 0; color: #356547; font-size: 10px; }
.review-list { display: grid; gap: 10px; margin: 14px 0 18px; padding-left: 18px; color: #6d7a74; font-size: 11px; line-height: 1.5; }
.contact-panel h2 { margin-bottom: 8px; }
.contact-panel p:not(.eyebrow) { margin-bottom: 12px !important; }
.contact-panel a:not(.text-link) { color: #426853; font-size: 11px; }
.sent-panel { background: #f8faf8; }
.sent-panel .button { margin-top: 12px; }
.page-footer { display: flex; justify-content: space-between; margin-top: 42px; padding: 18px 0; color: #a0aaa5; border-top: 1px solid #e5eae6; font-size: 10px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 20% 5%, #e4f0e8 0, transparent 40%), #f5f7f5; }
.login-card { width: min(100%, 400px); padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 65px #25463812; }
.brand-dark { margin-bottom: 40px; }
.login-card h1 { font-size: 27px; letter-spacing: -.9px; }
.login-card .muted { margin: 0 0 24px; font-size: 13px; line-height: 1.5; }
.login-card .stack-form { gap: 10px; }
.login-card .stack-form label { margin: 0; }
.login-card .stack-form input { padding: 13px; font-size: 13px; }
.alert { padding: 10px 12px; margin-bottom: 14px; border-radius: 8px; color: #8c3737; background: #fbefed; font-size: 12px; }
.login-footnote { margin: 24px 0 0; color: #89948e; text-align: center; font-size: 10px; }
.lock-icon { color: #71a184; font-size: 8px; margin-right: 4px; }

@media (max-width: 800px) {
  .page-shell { padding-top: 32px; }
  .dashboard-overview { margin: -32px -28px 24px; padding: 32px 28px 1px; }
  .content-grid { grid-template-columns: 1fr; }
  .application-layout { grid-template-columns: minmax(0, 1fr); }
  .side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .side-column .panel:first-child { grid-row: span 2; }
}
@media (max-width: 560px) {
  .topbar { height: 62px; padding: 0 16px; }
  .private-badge { display: none; }
  .page-shell { padding: 30px 16px 15px; }
  .dashboard-overview { top: 62px; margin: -30px -16px 22px; padding: 24px 16px 1px; }
  .welcome-row { display: block; }
  .welcome-row h1 { font-size: 29px; }
  .welcome-row { margin-bottom: 18px; }
  .welcome-actions { justify-content: flex-start; margin-top: 18px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 30px; }
  .stat-card { min-height: 88px; padding: 13px; }
  .stat-icon { top: 13px; right: 13px; }
  .mini-dashboard { margin: -10px 0 27px; padding: 17px 14px 14px; }
  .mini-dashboard-heading { display: block; }
  .activity-note { display: block; margin-top: 6px; }
  .activity-summary { grid-template-columns: 1fr; gap: 6px; }
  .activity-row { grid-template-columns: 56px minmax(90px, 1fr) 85px; gap: 7px; }
  .activity-header { font-size: 8px; }
  .activity-day { gap: 3px; font-size: 9px; }
  .side-column { grid-template-columns: 1fr; }
  .side-column .panel:first-child { grid-row: auto; }
  .job-card { padding: 15px; gap: 11px; }
  .job-search-controls { grid-template-columns: minmax(0, 1fr); }
  .job-search-submit { width: 100%; }
  .job-logo { flex-basis: 34px; height: 34px; }
  .job-heading { flex-wrap: wrap; }
  .job-actions { align-items: flex-start; flex-wrap: wrap; }
  .application-job { align-items: flex-start; flex-direction: column; padding: 16px; }
  .application-layout { grid-template-columns: minmax(0, 1fr); }
  .application-editor { padding: 17px; }
  .application-heading { display: block; }
  .application-heading .search-time { display: block; margin-top: 9px; }
  .application-editor textarea { min-height: 280px; }
  .copy-field-row input { padding: 9px; }
  .copy-field-row .button { min-width: 70px; }
  .page-footer { margin-top: 30px; }
  .login-card { padding: 28px 22px; }
}
