:root {
  --bg: #f6f7f4;
  --paper: #fff;
  --ink: #202720;
  --muted: #80877f;
  --line: #e9ece7;
  --green: #315e48;
  --green2: #e8f1e9;
  --lime: #d7f46a;
  --amber: #f5ead2;
  --shadow: 0 2px 8px #1b29200a, 0 12px 28px #1b292009;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px 1fr;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 25px 17px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  font:
    800 20px Manrope,
    sans-serif;
  letter-spacing: -0.8px;
}
.brand-mark {
  background: var(--green);
  color: var(--lime);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.brand em {
  font-style: normal;
  color: var(--green);
}
.navlabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #a4aaa2;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #727b73;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav button:hover {
  background: #f5f7f3;
}
.nav button.active {
  background: var(--green2);
  color: var(--green);
}
.ico {
  font-size: 17px;
  width: 18px;
  text-align: center;
}
.count {
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
}
.sidebottom {
  margin-top: auto;
}
.tip {
  background: #f3f6ee;
  border-radius: 14px;
  padding: 15px;
  color: #606b5f;
  font-size: 12px;
  line-height: 1.5;
}
.tip b {
  display: block;
  color: #344b39;
  margin-bottom: 5px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #ffffffb5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(14px);
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
  font-weight: 600;
}
.topactions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.date {
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #e5ebdf;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
}
.content {
  max-width: 1290px;
  margin: auto;
  padding: 35px 40px 64px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  color: #8b938a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.pagehead h1 {
  font:
    700 28px Manrope,
    sans-serif;
  letter-spacing: -1px;
  margin: 0;
}
.sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #354238;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: #264d39;
}
.btn-accent {
  background: var(--lime);
  border: 0;
  color: #24321e;
}
.btn-sm {
  padding: 7px 10px;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px 20px;
  min-height: 115px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f4f6f2;
  display: grid;
  place-items: center;
}
.stat-num {
  font:
    700 26px Manrope,
    sans-serif;
  letter-spacing: -1px;
  margin-top: 12px;
}
.stat-foot {
  font-size: 11px;
  color: #92998f;
  margin-top: 3px;
}
.hero {
  margin: 18px 0 22px;
  padding: 24px 26px;
  background: #315e48;
  border-radius: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  right: 150px;
  top: -165px;
  box-shadow:
    0 0 0 35px #ffffff09,
    0 0 0 70px #ffffff07;
}
.hero h2 {
  font:
    700 20px Manrope,
    sans-serif;
  margin: 0 0 7px;
}
.hero p {
  margin: 0;
  color: #d1ded4;
  font-size: 13px;
}
.hero .btn {
  background: var(--lime);
  border: 0;
  position: relative;
  z-index: 1;
}
.cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 17px;
}
.panel {
  padding: 20px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.panelhead h3 {
  font:
    700 15px Manrope,
    sans-serif;
  margin: 0;
}
.textlink {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.empty {
  padding: 32px 14px;
  text-align: center;
  border: 1px dashed #dce3dc;
  border-radius: 13px;
  color: var(--muted);
}
.empty .bigico {
  font-size: 27px;
  margin-bottom: 8px;
}
.empty strong {
  display: block;
  color: #485248;
  margin-bottom: 5px;
}
.empty p {
  margin: 0;
  line-height: 1.5;
  font-size: 12px;
}
.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.stepdot {
  height: 29px;
  width: 29px;
  flex: none;
  border-radius: 9px;
  background: #f2f5f0;
  display: grid;
  place-items: center;
}
.step b {
  font-size: 12px;
  display: block;
  margin: 2px 0 3px;
}
.step span {
  font-size: 11px;
  color: var(--muted);
}
.bar {
  height: 5px;
  background: #eef0ec;
  border-radius: 9px;
  margin-top: 12px;
  overflow: hidden;
}
.bar i {
  height: 100%;
  display: block;
  background: var(--green);
  border-radius: 9px;
  transition: 0.3s;
}
.mobile-nav {
  display: none;
}
.hidden {
  display: none !important;
}
.searchbox {
  display: flex;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 13px;
  margin: 20px 0 15px;
  box-shadow: var(--shadow);
}
.searchbox input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 100px;
  padding: 5px 8px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters select,
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--ink);
  outline: none;
}
.filters select {
  font-size: 12px;
  padding: 9px 12px;
}
.jobs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.job {
  padding: 18px;
}
.jobtop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.companylogo {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #e8f1e9;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: Manrope;
  flex: none;
}
.job h3 {
  font:
    700 15px Manrope,
    sans-serif;
  margin: 1px 0 4px;
}
.company {
  color: #758074;
  font-size: 12px;
}
.score {
  color: var(--green);
  background: #edf5e8;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  height: max-content;
  white-space: nowrap;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.tag {
  font-size: 10px;
  background: #f4f6f2;
  color: #626b61;
  padding: 5px 8px;
  border-radius: 6px;
}
.jobfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 11px;
}
.jobfoot span {
  font-size: 11px;
  color: var(--muted);
}
.jobfoot button {
  font-size: 11px;
}
.board-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 15px;
}
.board-links a {
  font-size: 11px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 11px;
  border-radius: 9px;
  color: #536054;
}
.board-links a:hover {
  border-color: #9cad9b;
}
.table-wrap {
  overflow: auto;
}
.tracker {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.tracker th {
  text-align: left;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.7px;
  color: #969d95;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.tracker td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f2ef;
  font-size: 12px;
}
.tracker tr:last-child td {
  border-bottom: 0;
}
.role-cell b {
  font-size: 12px;
  display: block;
}
.role-cell span {
  color: var(--muted);
  font-size: 11px;
}
.status {
  border: 0;
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.s-saved {
  background: #eff2ef;
  color: #677168;
}
.s-applied {
  background: #e9f1fb;
  color: #48698e;
}
.s-interview {
  background: #f4ebd9;
  color: #8a6d34;
}
.s-offer {
  background: #e5f3e5;
  color: #44784b;
}
.s-rejected {
  background: #f7e9e7;
  color: #a45d50;
}
.s-archived {
  background: #f0eef2;
  color: #77727d;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  color: #5d675d;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.resume-drop {
  padding: 17px;
  border: 1px dashed #cfd8cf;
  background: #fafbf9;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.resume-drop b {
  font-size: 12px;
}
.resume-drop span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.modalback {
  position: fixed;
  inset: 0;
  background: #17201866;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  background: #fff;
  width: min(570px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 90px #0003;
}
.modal h2 {
  font: 700 19px Manrope;
  margin: 0 0 5px;
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.x {
  background: #f3f5f1;
  border: 0;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
}
.modalactions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 19px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25382b;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 11;
  box-shadow: var(--shadow);
  animation: up 0.2s;
}
.detail {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.detail span {
  font-size: 12px;
  color: var(--muted);
}
.detail b {
  font-size: 12px;
}
.applybox {
  background: #f6f8f3;
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #555f55;
  margin-top: 14px;
}
.applybox b {
  color: #344638;
}
@keyframes up {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 17px 0;
}
.insight {
  padding: 12px;
  background: #f7f9f6;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.insight-label {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  min-height: 26px;
}
.insight-value {
  font:
    700 21px Manrope,
    sans-serif;
  margin-top: 5px;
}
.insight-meter {
  height: 4px;
  border-radius: 8px;
  background: #e8ece6;
  margin-top: 8px;
  overflow: hidden;
}
.insight-meter i {
  height: 100%;
  display: block;
  background: var(--green);
  border-radius: 8px;
}
.analysis-note {
  font-size: 11px;
  color: #657065;
  line-height: 1.55;
  background: #f3f6ef;
  padding: 12px;
  border-radius: 10px;
}
.resume-drop label {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.match-modal {
  width: min(900px, 100%);
}
.match-score-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: #eef5e9;
  border-radius: 13px;
  padding: 13px 16px;
}
.match-score-head strong {
  font: 800 30px Manrope;
  color: var(--green);
}
.match-score-head span {
  font-weight: 700;
}
.match-score-head small {
  color: var(--muted);
  font-size: 10px;
  width: 100%;
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.fit-panel {
  padding: 13px;
  border: 1px solid var(--line);
  background: #fafbf9;
  border-radius: 11px;
}
.fit-panel h3 {
  margin: 0 0 7px;
  font: 700 12px Manrope;
}
.fit-panel p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.fit-panel ul {
  margin: 7px 0 0;
  padding-left: 17px;
}
.fit-panel li {
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0;
}
.fit-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin-top: 6px;
}
.fit-good {
  color: #315e48;
}
.fit-missing {
  color: #8b6630;
}
@media (max-width: 600px) {
  .match-grid {
    grid-template-columns: 1fr;
  }
  .match-modal {
    padding: 18px;
  }
}
.resume-library {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.resume-entry {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #fbfcfa;
}
.resume-entry.active {
  border-color: #9eb99d;
  background: #f5f8f2;
}
.resume-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.resume-entry-top b {
  font: 700 12px Manrope;
  overflow-wrap: anywhere;
}
.resume-entry-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.resume-entry .field {
  margin: 9px 0;
}
.resume-entry .field input {
  font-size: 11px;
  padding: 8px;
}
.resume-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tailor-box {
  background: #f7f9f6;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
  margin: 16px 0;
}
.tailor-box h3 {
  font: 700 13px Manrope;
  margin: 0 0 6px;
}
.tailor-box textarea {
  min-height: 260px;
}
.tailor-score {
  font-weight: 700;
  color: var(--green);
}
.docx-note {
  font-size: 10px;
  line-height: 1.45;
}
.keyword-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.keyword-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 9px;
  background: #fff;
  font-size: 10px;
}
.keyword-option input {
  accent-color: var(--green);
}
.resume-history details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.resume-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.resume-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.resume-side h4 {
  font: 700 12px Manrope;
  margin: 0 0 8px;
}
.resume-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.resume-side-head h4 {
  margin: 0;
}
.resume-side pre {
  font:
    12px/1.5 "DM Sans",
    sans-serif;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 480px;
  margin: 0;
  color: #384338;
}
.resume-side textarea {
  font:
    12px/1.5 "DM Sans",
    sans-serif;
  min-height: 260px;
  max-height: 480px;
  overflow: auto;
}
.diff-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  background: #fff;
  font:
    11px/1.5 ui-monospace,
    monospace;
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
}
.diff-added {
  background: rgb(198, 255, 214);
  color: rgb(0, 92, 30);
}
.diff-removed {
  background: rgb(255, 197, 197);
  color: rgb(133, 0, 0);
  text-decoration: line-through;
}
.diff-kept {
  background: rgb(220, 235, 255);
  color: rgb(37, 74, 140);
}
.job-resume-record {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  margin: 12px 0;
  background: #fbfcfa;
}
.job-resume-record h3 {
  font: 700 13px Manrope;
  margin: 0 0 7px;
}
.resume-history {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.resume-history-item {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 7px;
}
@media (max-width: 760px) {
  .resume-compare {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .content {
    padding: 29px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
    padding-bottom: 66px;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 58px;
    padding: 0 17px;
  }
  .date {
    display: none;
  }
  .content {
    padding: 25px 16px;
  }
  .pagehead {
    align-items: flex-start;
    gap: 10px;
  }
  .pagehead h1 {
    font-size: 24px;
  }
  .pagehead > .btn {
    font-size: 11px;
    padding: 9px;
  }
  .grid {
    gap: 9px;
  }
  .stat {
    padding: 14px;
    min-height: 100px;
  }
  .stat-num {
    font-size: 23px;
  }
  .cols,
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .jobs {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .hero:after {
    right: -80px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 5;
    justify-content: space-around;
    padding: 5px;
  }
  .mobile-nav button {
    background: none;
    border: 0;
    color: #778078;
    font-size: 10px;
    display: grid;
    justify-items: center;
    gap: 3px;
  }
  .mobile-nav button.active {
    color: var(--green);
    font-weight: 700;
  }
  .mobile-nav .ico {
    font-size: 18px;
  }
  .searchbox {
    margin-top: 16px;
  }
  .searchbox .btn {
    padding: 9px;
  }
  .tracker th,
  .tracker td {
    padding: 12px 9px;
  }
  .hero h2 {
    font-size: 18px;
  }
}

.tailor-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
}
.tailor-breakdown article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 8px;
}
.tailor-breakdown b {
  display: block;
  font-size: 10px;
}
.tailor-breakdown span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.tailor-breakdown .improved {
  color: var(--green);
  font-weight: 700;
}
@media (max-width: 760px) {
  .tailor-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tailor-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.tailor-heading h3 {
  margin: 3px 0 5px;
}
.tailor-match {
  min-width: 126px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px;
  text-align: center;
}
.tailor-match span,
.tailor-match small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.tailor-match b {
  display: block;
  font: 800 24px Manrope;
  color: var(--green);
  margin: 3px 0;
}
.tailor-step-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 13px 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tailor-step-row span {
  font-size: 10px;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 8px;
  background: #f6f7f4;
}
.tailor-step-row .step-active {
  background: #e8f1e9;
  color: var(--green);
  font-weight: 700;
}
.tailor-section-title {
  font: 700 13px Manrope;
  margin: 15px 0 8px;
}
.requirement-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.requirement-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.requirement-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}
.requirement-top b {
  color: var(--green);
}
.requirement-top span {
  color: var(--muted);
}
.requirement-item p {
  font-size: 11px;
  line-height: 1.45;
  margin: 7px 0;
}
.requirement-evidence {
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.suggestions-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.suggestions-head .tailor-section-title {
  margin-bottom: 2px;
}
.suggestion-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin: 8px 0;
}
.suggestion-card.accepted {
  border-color: #9eb99d;
  background: #f6faf5;
}
.suggestion-card.skipped {
  opacity: 0.72;
}
.suggestion-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.suggestion-card-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.suggestion-card-head b {
  font: 700 11px Manrope;
}
.suggestion-card p {
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
  margin: 8px 0;
}
.suggestion-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.suggestion-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.suggestion-diff > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: #fbfcfa;
}
.suggestion-diff label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.suggestion-diff pre {
  font:
    10px/1.5 "DM Sans",
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  max-height: 145px;
  overflow: auto;
}
.suggestion-evidence {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 8px;
  font-size: 10px;
}
.suggestion-evidence b {
  color: var(--green);
}
.suggestion-evidence p {
  margin: 4px 0 0;
}
.@media(max-width:760px) {
  .tailor-heading {
    display: block;
  }
  .tailor-match {
    text-align: left;
    margin: 8px 0;
  }
  .requirement-map,
  .suggestion-diff {
    grid-template-columns: 1fr;
  }
  .suggestions-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.tailor-controls {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfa;
  padding: 12px;
  margin: 10px 0;
}
.tailor-controls h4 {
  font: 700 12px Manrope;
  margin: 0 0 8px;
}
.tailor-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.tailor-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 10px;
}
.tailor-check input {
  accent-color: var(--green);
}
.tailor-check small {
  margin-left: auto;
  color: var(--muted);
}
.tailor-keyword-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.tailor-keyword-group {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.tailor-keyword-group b {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.tailor-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tailor-keyword {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 7px;
  padding: 5px 7px;
  background: #eaf5eb;
  color: #315e48;
  font-size: 10px;
}
.tailor-keyword input {
  accent-color: var(--green);
}
.tailor-keyword.unverified {
  background: #f3f4f2;
  color: #747b73;
}
.tailor-mode {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.tailor-mode label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.tailor-mode input {
  accent-color: var(--green);
}
.tailor-control-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.suggestion-card[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .tailor-control-grid,
  .tailor-keyword-groups {
    grid-template-columns: 1fr;
  }
}

/* The wider wordmark keeps the renamed product on one line. */
.brand {
  font-size: 18px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.ai-tailor-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8e8d9;
  border-radius: 13px;
  background: linear-gradient(135deg, #f3f8ee, #f5f8f5);
}
.ai-tailor-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ai-tailor-spark {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--green);
  background: #dff2e3;
  font-size: 18px;
}
.ai-tailor-panel h4 {
  margin: 1px 0 4px;
  font:
    750 13px Manrope,
    sans-serif;
}
.ai-tailor-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.ai-context-label {
  display: block;
  margin: 12px 0 5px;
  font-size: 11px;
  font-weight: 700;
}
.ai-context-label span {
  color: var(--muted);
  font-weight: 500;
}
.ai-tailor-panel textarea {
  width: 100%;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font:
    12px "DM Sans",
    sans-serif;
}
.ai-privacy-note {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff;
  color: #647064;
  font-size: 10px;
  line-height: 1.5;
}
.ai-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink);
}
.ai-consent input {
  margin: 2px 0 0;
  accent-color: var(--green);
}
.ai-tailor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ai-tailor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
#ai-tailor-status {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.ai-tailor-overview {
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid var(--green);
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 650px) {
  .ai-tailor-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ai-tailor-actions button {
    width: 100%;
  }
}
