:root {
  --ink: #172231;
  --muted: #697586;
  --line: #e4e8ec;
  --paper: #fff;
  --bg: #f4f6f5;
  --navy: #132238;
  --green: #176b5b;
  --green-soft: #e7f2ef;
  --amber: #b97820;
  --red: #b43b46;
  --shadow: 0 12px 35px rgba(23, 34, 49, 0.08);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: 29px;
  margin-bottom: 2px;
}
h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  padding: 28px 18px;
  color: #dce5ef;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font: 800 21px Manrope;
  margin: 0 10px 35px;
}
.brand small {
  display: block;
  color: #8fa2b8;
  font: 500 10px DM Sans;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #48a38d;
  color: white;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #aebccc;
  border-radius: 9px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}
.nav-item:hover,
.nav-item.active {
  background: #23364d;
  color: white;
}
.nav-item b {
  background: #3d536d;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #2c4058;
  padding: 18px 10px 0;
}
.cloud-status {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cloud-status span,
.firebase-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0963c;
}
.firebase-status.ok .status-dot {
  background: #65c6a9;
}
.account-button {
  border: 0;
  background: transparent;
  color: white;
  padding: 14px 0 3px;
  font-weight: 700;
}
.sidebar-foot p {
  font-size: 11px;
  color: #8fa2b8;
  overflow: hidden;
  text-overflow: ellipsis;
}
main {
  padding: 0 38px 55px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions > span {
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--green);
  margin-bottom: 5px;
}
.eyebrow.light {
  color: #a7d9cc;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  transition: 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.light {
  background: white;
  color: var(--navy);
}
.full-width {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
}
.danger {
  color: var(--red);
}
.welcome-card {
  min-height: 238px;
  border-radius: 18px;
  background: linear-gradient(115deg, #132238, #1e4550);
  color: white;
  padding: 38px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}
.welcome-card > div:first-child {
  max-width: 710px;
}
.welcome-card h2 {
  font-size: 32px;
}
.welcome-card p {
  color: #d2dee5;
  line-height: 1.6;
}
.readiness {
  text-align: center;
  margin-right: 50px;
}
.ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#64c3a9 0deg, #314b5e 0deg);
  position: relative;
}
.ring:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #18303f;
}
.ring strong {
  z-index: 1;
  font: 800 22px Manrope;
}
.readiness span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #b8cbd5;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.metric,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 4px 18px rgba(23, 34, 49, 0.035);
}
.metric {
  padding: 21px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font: 800 30px Manrope;
  margin: 6px 0;
}
.metric small {
  color: var(--green);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.panel {
  padding: 23px;
}
.panel.wide {
  grid-column: 1/-1;
}
.panel-head,
.page-intro,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.page-intro {
  margin: 12px 0 24px;
}
.page-intro p {
  color: var(--muted);
  max-width: 680px;
}
.funnel {
  display: flex;
  align-items: end;
  height: 180px;
  gap: 10px;
}
.funnel-step {
  flex: 1;
  text-align: center;
}
.funnel-bar {
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(#42a58c, #176b5b);
  min-height: 5px;
  margin-bottom: 9px;
}
.funnel-step strong {
  display: block;
  font: 700 18px Manrope;
}
.funnel-step span {
  font-size: 10px;
  color: var(--muted);
}
.list-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: #f8faf9;
  border-radius: 9px;
}
.action-item,
.timeline-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.action-item:last-child,
.timeline-item:last-child {
  border: 0;
}
.action-item small,
.timeline-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  background: var(--green-soft);
  color: var(--green);
}
.badge.neutral {
  background: #edf0f3;
  color: #657281;
}
.badge.warn {
  background: #fff0d8;
  color: #935b10;
}
.badge.danger {
  background: #fde9eb;
  color: var(--red);
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full-span {
  grid-column: 1/-1;
}
.form-card h3 {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #3a4655;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8dee4;
  border-radius: 7px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #4d9988;
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.1);
}
textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}
textarea.medium {
  min-height: 125px;
}
textarea.large {
  min-height: 220px;
}
.help,
.status-copy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.studio-grid {
  display: grid;
  grid-template-columns: 350px minmax(600px, 820px);
  gap: 28px;
  align-items: start;
}
.cv-controls {
  display: grid;
  gap: 15px;
  position: sticky;
  top: 18px;
}
.upload-box {
  border: 1px dashed #9eabb8;
  background: #f7faf9;
  border-radius: 9px;
  padding: 18px;
  text-align: center;
}
.upload-box input {
  margin: 8px 0;
  border: 0;
  padding: 0;
}
.upload-box span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.template-picker {
  display: grid;
  gap: 8px;
}
.template-picker > span {
  font-size: 12px;
  font-weight: 800;
}
.template-picker label {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.template-picker input {
  width: auto;
  margin-right: 8px;
}
.template-picker small {
  display: block;
  margin-left: 24px;
  color: var(--muted);
}
.quality-panel {
  margin-bottom: 12px;
}
.quality-card {
  border-radius: 10px;
  padding: 13px 16px;
  background: #eff7f4;
  border: 1px solid #cfe4de;
  font-size: 12px;
}
.quality-card.warn {
  background: #fff8ec;
  border-color: #f0d9b4;
}
.quality-card ul {
  margin-bottom: 0;
}
.cv-sheet {
  --cv-accent: #176b5b;
  width: 210mm;
  min-height: 297mm;
  background: white;
  margin: auto;
  padding: 17mm 16mm;
  box-shadow: var(--shadow);
  font-family: Arial, sans-serif;
  color: #1f2937;
}
.cv-sheet.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.cv-sheet .cv-name {
  font-size: 28px;
  letter-spacing: 0.01em;
  margin: 0;
  color: #142130;
}
.cv-sheet .cv-headline {
  color: var(--cv-accent);
  font-weight: 700;
  margin: 5px 0;
}
.cv-sheet .cv-contact {
  font-size: 10.5px;
  color: #586474;
  border-bottom: 1px solid #cfd6db;
  padding-bottom: 10px;
}
.cv-sheet section {
  margin-top: 14px;
}
.cv-sheet h2 {
  font: 700 12px Arial;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cv-accent);
  border-bottom: 1px solid var(--cv-accent);
  padding-bottom: 4px;
  margin-bottom: 7px;
}
.cv-sheet p,
.cv-sheet li {
  font-size: 10.5px;
  line-height: 1.45;
}
.cv-sheet ul {
  margin: 4px 0;
  padding-left: 17px;
}
.cv-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}
.cv-entry-head span {
  color: #5b6573;
}
.skill-row {
  display: flex;
  gap: 8px;
  font-size: 10.5px;
  margin: 4px 0;
}
.skill-row b {
  min-width: 105px;
}
.cv-sheet.modern {
  border-top: 8px solid var(--cv-accent);
  padding-top: 13mm;
}
.cv-sheet.modern .cv-name {
  font-family: Manrope, sans-serif;
  font-size: 31px;
}
.cv-sheet.modern h2 {
  border: 0;
  background: #f1f6f5;
  padding: 6px 8px;
}
.cv-sheet.executive {
  font-family: Merriweather, serif;
  padding: 19mm;
}
.cv-sheet.executive .cv-name {
  text-align: center;
  font-family: Merriweather, serif;
}
.cv-sheet.executive .cv-headline,
.cv-sheet.executive .cv-contact {
  text-align: center;
}
.cv-sheet.executive h2 {
  text-align: center;
  border: 0;
}
.search-builder {
  margin-bottom: 25px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0;
}
.switch input {
  width: auto;
}
.section-heading {
  align-items: center;
  margin: 28px 0 14px;
}
.filter-pills button,
.pipeline-tabs button {
  border: 0;
  background: #e9edee;
  color: #637080;
  padding: 7px 12px;
  border-radius: 99px;
  margin-left: 6px;
}
.filter-pills button.active,
.pipeline-tabs button.active {
  background: var(--navy);
  color: white;
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.job-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
}
.job-card-top {
  display: flex;
  justify-content: space-between;
}
.job-card h3 {
  margin: 4px 0;
}
.job-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.score {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font: 800 14px Manrope;
}
.job-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.job-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.application-list,
.reply-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}
.application-card,
.reply-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
}
.application-card p,
.reply-card p {
  font-size: 12px;
  color: var(--muted);
}
.connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 15px;
}
.connection > div:nth-child(2) {
  flex: 1;
}
.connection p {
  font-size: 12px;
  color: var(--muted);
}
.connection.muted {
  opacity: 0.65;
}
.provider-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f4f6;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.privacy-card {
  margin-top: 18px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0;
}
.check-row input {
  width: auto;
  margin-top: 3px;
}
.check-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #172231;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.2s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: none;
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(720px, 92vw);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
dialog::backdrop {
  background: rgba(10, 20, 30, 0.58);
}
.dialog-card,
.auth-card {
  padding: 28px;
  display: grid;
  gap: 12px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.attachment {
  padding: 12px;
  background: #f4f7f6;
  border-radius: 8px;
  font-size: 12px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.62);
  z-index: 30;
  place-items: center;
}
.modal.show {
  display: grid;
}
.auth-card {
  background: white;
  border-radius: 14px;
  width: min(420px, 92vw);
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 190px 1fr;
  }
  main {
    padding: 0 22px 45px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .cv-controls {
    position: static;
  }
  .cv-sheet {
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
  }
  .brand {
    margin: 0 5px 14px;
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .nav-item {
    white-space: nowrap;
    padding: 9px;
    font-size: 12px;
  }
  .sidebar-foot {
    display: none;
  }
  main {
    padding: 0 14px 35px;
  }
  .topbar {
    height: auto;
    padding: 20px 0;
    display: block;
  }
  .top-actions {
    margin-top: 12px;
  }
  .welcome-card {
    padding: 25px;
    display: block;
  }
  .readiness {
    margin: 20px 0 0;
  }
  .metric-grid,
  .dashboard-grid,
  .form-layout,
  .job-grid,
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .panel.wide,
  .full-span {
    grid-column: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .studio-grid {
    display: block;
  }
  .cv-sheet {
    padding: 10mm;
    min-height: auto;
  }
  .application-card,
  .reply-card {
    grid-template-columns: 1fr;
  }
}
@media print {
  body {
    background: white;
  }
  .app-shell > *:not(main),
  .topbar,
  .page:not(#cvPage),
  #cvPage > .page-intro,
  .cv-controls,
  .quality-panel {
    display: none !important;
  }
  .app-shell,
  main,
  .studio-grid {
    display: block;
    padding: 0;
    margin: 0;
  }
  .cv-sheet {
    box-shadow: none;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 15mm;
  }
}
.legal-page{max-width:760px;margin:0 auto;padding:56px 24px 80px;line-height:1.7}.legal-page h1{margin-top:28px}.legal-page h2{margin-top:28px}.legal-page a{color:inherit}
.google-button{background:#fff;color:#253149;border:1px solid #d6dce7;justify-content:center;gap:10px}.google-button:hover{background:#f7f9fc;border-color:#b9c4d6}.google-mark{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-weight:800;color:#4285f4}.auth-divider{display:flex;align-items:center;gap:12px;color:#7a8495;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;margin:4px 0}.auth-divider::before,.auth-divider::after{content:"";height:1px;background:#e3e7ee;flex:1}
