:root {
  --surface: #faf9ff;
  --surface-plain: #ffffff;
  --surface-muted: #f4f6fb;
  --surface-low: #f1f3ff;
  --surface-high: #e9edff;
  --text: #051a3e;
  --text-muted: #434654;
  --text-soft: #697386;
  --border: #d9deea;
  --border-strong: #b7c0d8;
  --primary: #0052cc;
  --primary-dark: #003d9b;
  --primary-soft: #dbe6ff;
  --success: #0a8f3c;
  --warning: #b35a00;
  --danger: #ba1a1a;
  --shadow-tight: 0 2px 4px rgba(5, 26, 62, 0.05);
  --radius: 4px;
  --topbar: 48px;
  --sidebar: 192px;
  --font-family-bold: "Martel Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--surface-plain);
  border-bottom: 1px solid var(--border);
}

.hamburger {
  appearance: none;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

.hamburger:hover {
  background: var(--surface-low);
  border-color: var(--border);
}

.hamburger-box {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease, bottom 180ms ease, opacity 120ms ease, width 180ms ease;
}

.hamburger-inner {
  top: 7px;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  bottom: -7px;
}

.hamburger-arrow.is-active .hamburger-inner {
  transform: rotate(180deg);
}

.hamburger-arrow.is-active .hamburger-inner::before {
  top: 0;
  width: 13px;
  transform: translate3d(10px, -4px, 0) rotate(45deg);
}

.hamburger-arrow.is-active .hamburger-inner::after {
  bottom: 0;
  width: 13px;
  transform: translate3d(10px, 4px, 0) rotate(-45deg);
}

.brand {
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #0052cc;
}

.brand-top {
  min-width: calc(var(--sidebar) - 48px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-crumb {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.user-chip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.sidebar {
  position: fixed;
  top: var(--topbar);
  left: 0;
  bottom: 0;
  z-index: 10;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 16px 0;
  background: var(--surface-muted);
  border-right: 1px solid var(--border);
}

.label,
.table th {
  font-family: var(--font-family-bold);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  font-family: var(--font-family-bold);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 4px 24px;
  border-right: 2px solid transparent;
  color: #31445f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nav-item:hover {
  background: #eef2f8;
}

.nav-item.active {
  color: var(--primary);
  background: var(--surface-plain);
  border-right-color: var(--primary);
  box-shadow: var(--shadow-tight);
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.sidebar-card {
  margin: auto 16px 0;
  padding: 16px;
  background: #eaf2ff;
  border: 1px solid #c9dcff;
  border-radius: var(--radius);
}

.sidebar-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.main-content {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: calc(var(--topbar) + 32px) 24px 32px;
  background: var(--surface);
}

.view {
  max-width: 1240px;
  margin: 0 auto;
}

.view-wide {
  max-width: none;
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.view-header h1,
.panel h2,
.panel h3 {
  margin: 0;
  color: var(--text);
}

.view-header h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.view-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tab-link {
  font-family: var(--font-family-bold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.tab-link:hover {
  background: var(--surface-low);
}

.tab-link.active {
  border-color: var(--border);
  background: var(--surface-plain);
  color: var(--primary);
}

.source-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.summary-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.source-tab {
  flex: 0 0 220px;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
  color: var(--text-muted);
  text-align: left;
}

.source-tab[data-add-source] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.summary-tab {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
  color: var(--text-muted);
  text-align: left;
}

.summary-tab[data-add-summary] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.summary-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.source-tab strong,
.source-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-tab strong,
.summary-tab span {
  overflow-wrap: anywhere;
}

.source-tab span {
  font-size: 12px;
}

.summary-tab span {
  font-size: 12px;
}

.source-tab .material-symbols-rounded,
.summary-tab .material-symbols-rounded {
  font-size: 18px;
}

.source-editor-panel {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metrics {
  margin-bottom: 16px;
}

.admin-ats-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1fr) minmax(340px, 1.35fr);
  gap: 16px;
  align-items: start;
}

.admin-engine-lower {
  margin-top: 16px;
}

.admin-scroll-panel {
  max-height: 760px;
  overflow: auto;
}

.admin-subsection {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-subsection-first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-subsection h3 {
  margin: 0 0 10px 0;
  font-size: 13px;
}

.admin-inline-form {
  margin-top: 12px;
}

.admin-form-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.ats-list {
  display: grid;
  gap: 8px;
}

.ats-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
  color: var(--text-muted);
  text-align: left;
}

.ats-list-item:hover {
  background: var(--surface-low);
}

.ats-list-item.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.ats-list-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ats-list-item small {
  color: var(--text-soft);
  font-size: 12px;
}

.ats-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ats-title-chip {
  cursor: pointer;
}

.ats-title-chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.keyword-bank-preview {
  margin-top: 12px;
  max-height: 152px;
  overflow: auto;
}

.factor-list {
  display: grid;
  gap: 12px;
}

.factor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 12px;
  align-items: center;
}

.factor-row span {
  display: grid;
  gap: 4px;
}

.factor-row small {
  color: var(--text-soft);
  font-size: 12px;
}

.factor-row input {
  width: 74px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.recommendation-picker {
  margin-bottom: 12px;
}

.recommendation-list {
  display: grid;
  gap: 8px;
}

.recommendation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recommendation-row:last-child {
  border-bottom: 0;
}

.recommendation-row div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recommendation-row span {
  color: var(--text-soft);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-score {
  min-width: 52px;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
  text-align: right;
}

.panel,
.metric-card,
.template-card,
.resume-page,
.empty-state {
  background: var(--surface-plain);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfcff;
}

.panel-body {
  padding: 16px;
}

.metric-card {
  padding: 16px;
}

.metric-value {
  display: block;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
}

.metric-note {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-plain);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-family-bold);
  font-weight: 800;
}

.button:hover {
  background: var(--surface-low);
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--surface-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-title {
  color: #484c52;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-family-bold);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-plain);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.field textarea:disabled,
.field textarea[readonly] {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.summary-preview {
  min-height: 72px;
  margin: 0;
  padding: 10px 0;
  color: var(--text);
  line-height: 1.55;
}

.summary-ai-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--text-muted);
  font-family: var(--font-family-bold);
  font-weight: 800;
  text-transform: none;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.picker-list,
.picker-stack {
  display: grid;
  gap: 8px;
}

.picker-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.picker-group {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcff;
}

.picker-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.picker-check {
  align-items: flex-start;
  width: 100%;
  min-height: auto;
  padding: 4px 0;
  line-height: 1.35;
}

.picker-check span {
  min-width: 0;
}

.picker-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 2px 0;
}

.picker-check-row .picker-check {
  padding: 4px 0;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bullet-bank {
  display: grid;
  gap: 8px;
}

.bullet-editor-list {
  display: grid;
  gap: 8px;
}

.education-editor-list {
  display: grid;
  gap: 14px;
}

.bullet-editor {
  display: grid;
  gap: 6px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--border);
}

.education-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcff;
}

.bullet-editor:last-child {
  border-bottom: 0;
}

.bullet-add {
  justify-self: start;
  margin-left: 26px;
  color: var(--primary);
}

.icon-button.bullet-add {
  width: fit-content;
  gap: 8px;
  font-size: 13px;
  font-weight: bold;
}

.bullet-input-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bullet-marker {
  flex: 0 0 auto;
  padding-top: 8px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
}

.bullet-input-row textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  resize: vertical;
  line-height: 1.35;
}

.bullet-trash {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  color: var(--danger);
}

.bullet-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-left: 26px;
}

.ats-chip-row {
  flex: 1 1 auto;
  min-height: 22px;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.ats-chip-row .hint {
  font-size: 11px;
}

.ats-chip {
  min-height: 20px;
  padding: 2px 6px;
  background: #eef7f1;
  border-color: #b8ddc4;
  color: #116329;
  font-size: 11px;
}

.hint {
  color: var(--text-soft);
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.editor-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 420px;
  gap: 0;
  min-height: calc(100vh - 96px);
  border: 1px solid var(--border);
  background: var(--surface-plain);
}

.editor-column {
  min-width: 0;
  border-right: 1px solid var(--border);
}

.editor-column:last-child {
  border-right: 0;
}

.template-card {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  text-align: left;
}

.template-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.template-card strong {
  display: block;
  margin-bottom: 4px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--surface-low);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-family-bold);
  font-weight: 800;
  text-transform: uppercase;
}

.status.applied,
.status.screen,
.status.interview {
  background: #e8f2ff;
  color: var(--primary-dark);
}

.status.offer {
  background: #e4f7eb;
  color: var(--success);
}

.status.rejected,
.status.withdrawn {
  background: #ffe8e5;
  color: var(--danger);
}

.resume-page {
  max-width: 816px;
  min-height: 1056px;
  margin: 0 auto;
  padding: 64px;
  color: #121b30;
  box-shadow: 0 8px 30px rgba(5, 26, 62, 0.07);
}

.resume-preview-shell {
  display: grid;
  gap: 10px;
}

.resume-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-disclaimer {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.preview-bullet-warning {
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid rgba(186, 26, 26, 0.35);
  border-radius: var(--radius);
  background: #fff8f7;
  box-shadow: var(--shadow-tight);
  color: var(--danger);
  font-size: 12px;
  font-family: var(--font-family-bold);
  font-weight: 800;
}

.resume-preview-frame {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.resume-preview-viewport {
  position: relative;
  flex: 0 0 auto;
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition: outline-color 160ms ease;
}

.resume-preview-viewport.has-bullet-warning {
  outline-color: rgba(186, 26, 26, 0.55);
}

.resume-preview-scaler {
  width: 816px;
  transform: scale(var(--preview-scale, 1));
  transform-origin: top left;
}

.resume-preview-scaler .resume-page {
  width: 816px;
  max-width: none;
  min-width: 816px;
  margin: 0;
}

.resume-page h2 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
}

.resume-page .headline {
  margin: 6px 0;
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
}

.resume-page .contact-line {
  color: var(--text-muted);
}

.resume-section {
  margin-top: 24px;
}

.resume-section h3 {
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--primary-dark);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resume-page-compact {
  padding: 48px;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.25;
}

.resume-page-compact h2 {
  text-align: center;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
}

.resume-page-compact .contact-line {
  margin-bottom: 10px;
  text-align: center;
  color: #000;
}

.resume-page-compact .resume-section {
  margin-top: 0;
  margin-bottom: 10px;
}

.resume-page-compact .resume-section h3 {
  margin-bottom: 4px;
  border-bottom-color: #000;
  color: #000;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.resume-page-compact p {
  margin: 0 0 4px;
}

.resume-page-compact ul {
  margin: 4px 0 8px 24px;
  padding: 0;
  list-style-type: square;
  list-style-position: outside;
}

.resume-page-compact li {
  margin-bottom: 4px;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.resume-item-header span:last-child {
  flex: 0 0 auto;
}

.resume-item-header span:first-child {
  min-width: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #ccd5ea;
  border-radius: 2px;
  /* background: #eef3ff; */
  font-size: 12px;
  /* font-weight: 800; */
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 10px;
  background: var(--surface-high);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}

.auth-panel {
  max-width: 460px;
  margin: 12vh auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
}

.landing-page {
  max-width: 1180px;
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}

.landing-nav .toolbar a:not(.button) {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 40px;
  min-height: 520px;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
}

.landing-hero p {
  max-width: 660px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.landing-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
}

.landing-panel h2 {
  margin: 10px 0;
  font-size: 20px;
}

.marketing-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #e5f6ff 0, #f8fcff 150px, #ffffff 320px);
  color: #071632;
}

.marketing-body.modal-open {
  overflow: hidden;
}

.marketing-body a {
  text-decoration: none;
}

.marketing-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 58px;
  padding: 0 24px;
  border-bottom: 1px solid #e3e7f2;
  background: rgba(255, 255, 255, 0.96);
}

.beta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 34px;
  padding: 6px 18px;
  border-bottom: 1px solid #e2a564;
  background: #fff4a3;
  color: #b95c00;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.beta-banner-button {
  appearance: none;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #bf6a12;
  border-radius: 3px;
  background: #c76316;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.beta-banner-button:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid #0052cc;
  outline-offset: 2px;
}

.marketing-brand {
  color: #0052cc;
  font-size: 16px;
  font-weight: 900;
}

.marketing-menu-toggle {
  color: #071632;
}

.marketing-nav,
.marketing-actions,
.marketing-hero-actions,
.marketing-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-actions {
  grid-column: 3;
  justify-self: end;
}

.marketing-nav a,
.marketing-actions a:not(.marketing-button),
.marketing-footer a,
.marketing-footer p {
  color: #2f3b52;
  font-size: 12px;
  font-weight: 700;
}

.marketing-nav a:first-child {
  color: #0052cc;
}

.marketing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 148px;
  padding: 0 20px;
  border: 1px solid #c9d2e6;
  border-radius: 3px;
  background: #ffffff;
  color: #071632;
  font-size: 12px;
  font-weight: 900;
}

.marketing-button-primary {
  border-color: #0052cc;
  background: #0052cc;
  color: #ffffff;
}

.marketing-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1.3fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
  min-height: 710px;
  padding: 68px clamp(24px, 5vw, 96px) 86px;
  background: linear-gradient(180deg, rgba(214, 241, 255, 0.82) 0%, rgba(248, 252, 255, 0.82) 150px, #ffffff 340px);
  border-bottom: 1px solid #e3e7f2;
}

.marketing-hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: #020f28;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
}

.marketing-hero-copy p {
  max-width: 600px;
  margin: 22px 0 28px;
  color: #4a5870;
  font-size: 16px;
  line-height: 1.65;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #dbe1ee;
  background: #f6f8fc;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.red {
  background: #bc2a2a;
}

.dot.amber {
  background: #d47a2f;
}

.dot.blue {
  background: #102a56;
}

.window-title {
  min-width: 0;
  flex: 1 1 auto;
  margin-left: 14px;
  overflow: hidden;
  color: #66738b;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-tool {
  padding: 5px 8px;
  border-radius: 2px;
  background: #0052cc;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-workspace {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 48px;
  min-height: 470px;
  padding: 30px 36px 44px 18px;
}

.analysis-rail {
  border-right: 1px solid #e3e7f2;
  padding-right: 16px;
}

.analysis-card {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 2px;
  font-size: 11px;
}

.analysis-card strong {
  color: #0a2450;
  font-size: 11px;
  text-transform: uppercase;
}

.score-card {
  border: 1px solid #9dbbf8;
  background: #eaf1ff;
}

.gap-card {
  border: 1px solid #f3bbb7;
  background: #fff0ee;
  color: #903020;
}

.note-card {
  border: 1px solid #d8deea;
  background: #f7f9fd;
  color: #34425c;
}

.rail-label {
  margin: 18px 0 8px;
  color: #6e7b91;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-sheet {
  align-self: center;
  max-width: 430px;
  min-height: 385px;
  padding: 42px 36px;
}

.mini-sheet h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #6f7785;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-sheet h3 {
  margin: 0 0 16px;
  color: #020f28;
  font-size: 13px;
  text-transform: uppercase;
}

.resume-item-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #172338;
  font-size: 12px;
}

.mini-sheet ul {
  margin: 12px 0 0 16px;
  padding: 0;
  color: #27354c;
  font-size: 11px;
  line-height: 1.6;
}

.active-line {
  border-left: 2px solid #0052cc;
  padding-left: 6px;
}

.pipeline-section,
.trust-section {
  padding: 90px clamp(24px, 5vw, 96px);
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: #0052cc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pipeline-section h2,
.trust-section h2,
.cta-panel h2 {
  margin: 0;
  color: #061731;
  font-size: 25px;
  line-height: 1.25;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 70px;
}

.pipeline-step {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 148px;
  padding: 24px 14px;
  border: 1px solid #e1e6f0;
  background: #ffffff;
  color: #071632;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pipeline-step:hover {
  border-color: #9dbbf8;
  box-shadow: 0 4px 18px rgba(0, 82, 204, 0.08);
}

.pipeline-step span,
.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8efff;
  color: #0052cc;
  font-size: 10px;
  font-weight: 900;
}

.pipeline-step strong {
  font-size: 13px;
}

.pipeline-step em {
  max-width: 190px;
  color: #66738b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 86px clamp(24px, 5vw, 96px);
  background: #f7f6fd;
  border-top: 1px solid #e5e8f1;
  border-bottom: 1px solid #e5e8f1;
}

.feature-card {
  min-height: 180px;
  padding: 28px;
  border: 1px solid #dfe4ee;
  border-radius: 2px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: #9dbbf8;
  box-shadow: 0 4px 18px rgba(0, 82, 204, 0.08);
}

.feature-card h3 {
  margin: 24px 0 12px;
  color: #071632;
  font-size: 15px;
}

.feature-card p {
  margin: 0;
  color: #66738b;
  font-size: 12px;
  line-height: 1.65;
}

.ai-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 90px auto;
  border: 2px solid #071632;
  border-radius: 4px;
  overflow: hidden;
  background: #203d6b;
  color: #ffffff;
}

.ai-copy {
  padding: 64px 64px 70px;
  background: #172f59;
}

.ai-copy .section-kicker {
  color: #d9e6ff;
}

.ai-copy h2 {
  max-width: 520px;
  margin: 0 0 34px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.08;
}

.ai-list {
  display: grid;
  gap: 18px;
}

.ai-list p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 26px;
  color: #e5edff;
  font-size: 12px;
  line-height: 1.45;
}

.ai-list strong {
  color: #ffffff;
  font-size: 13px;
}

.ai-report {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 56px 64px;
}

.report-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #eef4ff;
}

.report-card strong {
  font-size: 12px;
  text-transform: uppercase;
}

.report-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.score-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #c4d0e5;
}

.score-track span {
  display: block;
  width: 90%;
  height: 100%;
  background: #f7fbff;
}

.report-card small {
  display: flex;
  justify-content: space-between;
  color: #d5e0f5;
  font-size: 10px;
}

.trust-section {
  padding-top: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 68px;
  margin-top: 34px;
}

.trust-grid strong {
  color: #203d6b;
  font-size: 13px;
}

.trust-grid p {
  margin: 6px 0 0;
  color: #66738b;
  font-size: 11px;
  line-height: 1.45;
}

.cta-panel {
  max-width: 920px;
  margin: 0 auto 120px;
  padding: 66px 30px;
  border: 1px solid #cbd7f8;
  border-radius: 8px;
  background: #e8efff;
  text-align: center;
}

.cta-panel p {
  margin: 18px 0 34px;
  color: #66738b;
}

/* ---- Hero badge ---- */

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 5px 14px;
  border: 1px solid #b8cefd;
  border-radius: 999px;
  background: #eaf1ff;
  color: #0a3a8c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Proof / stats bar ---- */

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e3e7f2;
  background: #ffffff;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 30px 24px;
  border-right: 1px solid #e3e7f2;
  text-align: center;
}

.proof-stat:last-child {
  border-right: none;
}

.proof-stat strong {
  color: #0052cc;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.proof-stat span {
  color: #66738b;
  font-size: 11px;
  line-height: 1.4;
}

/* ---- How it works / steps ---- */

.steps-section {
  padding: 88px clamp(24px, 5vw, 96px);
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e5e8f1;
  border-bottom: 1px solid #e5e8f1;
}

.steps-section h2 {
  margin: 0;
  color: #061731;
  font-size: 25px;
  line-height: 1.25;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 72px;
  text-align: left;
}

.step-item {
  padding-top: 22px;
  border-top: 3px solid #dce4f5;
  transition: border-color 0.15s;
}

.step-item:hover {
  border-top-color: #0052cc;
}

.step-number {
  display: block;
  margin-bottom: 16px;
  color: #c0cce8;
  font-family: var(--font-family-bold);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.step-item h3 {
  margin: 0 0 12px;
  color: #061731;
  font-size: 17px;
  font-weight: 800;
}

.step-item p {
  margin: 0;
  color: #4a5870;
  font-size: 13px;
  line-height: 1.65;
}

/* ---- Hero visual composite ---- */

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 620px;
  margin-left: clamp(-64px, -4vw, -28px);
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 82% 52%;
}

.hero-person {
  position: absolute;
  bottom: 0;
  left: clamp(32px, 3vw, 48px);
  height: 105%;
  max-height: 660px;
  width: auto;
  object-fit: contain;
  object-position: bottom left;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero-visual .product-window {
  position: absolute;
  right: clamp(12px, 2.4vw, 28px);
  bottom: 0;
  width: min(68%, 660px);
  height: clamp(360px, 50%, 424px);
  min-height: 360px;
  max-height: calc(100% - 24px);
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(1deg);
  transform-origin: right center;
  box-shadow: -28px 30px 58px rgba(13, 24, 52, 0.2), -6px 8px 18px rgba(0, 82, 204, 0.08);
  z-index: 3;
}

.template-fan {
  position: absolute;
  top: clamp(54px, 5.5vw, 72px);
  right: clamp(0px, 6vw, 78px);
  width: 410px;
  height: 230px;
  z-index: 1;
  pointer-events: none;
}

.fan-resume {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 150px;
  height: 214px;
  padding: 16px 15px;
  border: 1px solid #d4dbea;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(13, 24, 52, 0.16);
}

.fan-resume span {
  color: #0052cc;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.fan-resume strong {
  color: #071632;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.fan-resume i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #dfe6f3;
}

.fan-resume i:nth-of-type(1) {
  width: 58%;
  margin-top: 7px;
  background: #bac9e3;
}

.fan-resume i:nth-of-type(2) {
  width: 92%;
}

.fan-resume i:nth-of-type(3) {
  width: 100%;
}

.fan-resume i:nth-of-type(4) {
  width: 78%;
}

.fan-resume i:nth-of-type(5) {
  width: 96%;
  margin-top: 4px;
}

.fan-resume i:nth-of-type(6) {
  width: 86%;
}

.fan-resume i:nth-of-type(7) {
  width: 100%;
}

.fan-resume i:nth-of-type(8) {
  width: 90%;
}

.fan-resume-left {
  transform: translateX(-88%) rotate(-28deg);
  transform-origin: 72% 96%;
}

.fan-resume-center {
  z-index: 2;
  border-color: #b9c9e7;
  transform: translateX(-50%) translateY(-10px);
}

.fan-resume-right {
  transform: translateX(-12%) rotate(28deg);
  transform-origin: 28% 96%;
}

.fan-resume-left span {
  color: #2f6f9f;
}

.fan-resume-right span {
  color: #26604f;
}

/* ---- Product window: mock app shell ---- */

.product-window {
  max-width: 760px;
  min-height: 520px;
  border: 1px solid #dbe1ee;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(13, 24, 52, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.window-url-bar {
  flex: 1 1 auto;
  margin: 0 14px;
  padding: 4px 10px;
  border: 1px solid #dce3f0;
  border-radius: 3px;
  background: #f8fafd;
  color: #66738b;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-app-shell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mock-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid #e3e7f2;
  background: #ffffff;
}

.mock-brand {
  color: #071632;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.mock-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mock-crumb {
  color: #697386;
  font-size: 10px;
  font-weight: 700;
}

.mock-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c3d4f8;
  flex-shrink: 0;
}

.mock-user-name {
  color: #2f3b52;
  font-size: 10px;
  font-weight: 700;
}

.mock-app-body {
  flex: 1 1 0;
  display: flex;
  overflow: hidden;
}

.mock-sidebar {
  flex-shrink: 0;
  width: 122px;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  background: #f4f6fb;
  border-right: 1px solid #e3e7f2;
  overflow: hidden;
}

.mock-nav-item {
  padding: 5px 16px;
  border-right: 2px solid transparent;
  color: #31445f;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}

.mock-nav-active {
  color: #0052cc;
  background: #ffffff;
  border-right-color: #0052cc;
}

.mock-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  padding: 11px 13px;
  background: #faf9ff;
  min-width: 0;
}

.mock-view-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.mock-page-title {
  color: #020f28;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.mock-page-desc {
  color: #697386;
  font-size: 9px;
  margin-top: 2px;
}

.mock-toolbar {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #c9d2e6;
  border-radius: 3px;
  background: #ffffff;
  color: #2f3b52;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.mock-btn-primary {
  border-color: #0052cc;
  background: #0052cc;
  color: #ffffff;
}

.mock-split {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9px;
  overflow: hidden;
  min-height: 0;
}

.mock-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe4ee;
  border-radius: 3px;
  background: #ffffff;
  overflow: hidden;
  min-height: 0;
}

.mock-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #e5e8f2;
  background: #fbfcff;
  color: #071632;
  font-size: 10px;
  font-weight: 800;
}

.mock-hint-tag {
  color: #697386;
  font-size: 9px;
  font-weight: 500;
}

.mock-new-btn {
  padding: 2px 7px;
  border: 1px solid #c9d2e6;
  border-radius: 3px;
  background: #ffffff;
  color: #2f3b52;
  font-size: 9px;
  font-weight: 700;
}

.mock-panel-body {
  flex: 1 1 0;
  overflow: hidden;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  flex-shrink: 0;
}

.mock-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-field-label {
  color: #697386;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-input-box {
  padding: 4px 7px;
  border: 1px solid #dce3f0;
  border-radius: 3px;
  background: #ffffff;
  color: #071632;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-section-title {
  flex-shrink: 0;
  color: #697386;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 1px solid #e5e8f2;
}

.mock-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.mock-bullet-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  color: #697386;
  line-height: 1.4;
}

.mock-bullet-row.mock-checked {
  color: #061731;
}

.mock-checkbox {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  border: 1px solid #c9d2e6;
  border-radius: 2px;
  background: #ffffff;
}

.mock-checkbox-on {
  border-color: #0052cc;
  background: #0052cc;
  position: relative;
}

.mock-checkbox-on::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 0px;
  width: 6px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.mock-snapshots-body {
  gap: 5px;
}

.mock-snapshot-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
  border: 1px solid #dfe4ee;
  border-radius: 3px;
  background: #f8fafd;
}

.mock-snapshot-card strong {
  color: #071632;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-snapshot-card span {
  color: #697386;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-snapshot-active {
  border-color: #0052cc;
  background: #eaf1ff;
}

.mock-snapshot-active strong {
  color: #0040a8;
}

.mock-ai-panel {
  flex-shrink: 0;
  padding: 8px 10px;
  border-top: 1px solid #e5e8f2;
  background: #f0f5ff;
}

.mock-ai-label {
  color: #0052cc;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.mock-score-bar {
  height: 6px;
  border-radius: 999px;
  background: #c4d0e5;
  overflow: hidden;
  margin-bottom: 4px;
}

.mock-score-bar span {
  display: block;
  height: 100%;
  background: #0052cc;
  border-radius: 999px;
}

.mock-score-note {
  display: flex;
  justify-content: space-between;
  color: #4a5870;
  font-size: 9px;
  margin-bottom: 5px;
}

.mock-ai-gap {
  color: #903020;
  font-size: 9px;
  background: #fff0ee;
  border: 1px solid #f3bbb7;
  padding: 3px 6px;
  border-radius: 2px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 26, 62, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.request-modal {
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #dbe1ee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(13, 24, 52, 0.28);
}

.request-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e3e7f2;
}

.request-modal-header .section-kicker {
  margin-bottom: 8px;
}

.request-modal-header h2 {
  margin: 0;
  color: #061731;
  font-size: 22px;
  line-height: 1.2;
}

.modal-close {
  appearance: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #c9d2e6;
  border-radius: 3px;
  background: #ffffff;
  color: #071632;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.request-form {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.request-form input,
.request-form textarea {
  width: 100%;
}

.request-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.request-form-status {
  min-height: 18px;
  margin: 0;
  color: #66738b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.request-form-status[data-state="success"] {
  color: #0a6f32;
}

.request-form-status[data-state="error"] {
  color: #9b2d15;
}

.marketing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 116px;
  padding: 28px 32px;
  border-top: 1px solid #e3e7f2;
  background: #ffffff;
}

.marketing-footer p {
  margin: 12px 0 0;
  color: #66738b;
  font-size: 11px;
}

.marketing-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 24px 120px;
}

.marketing-page h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.06;
}

.marketing-page .lead {
  max-width: 760px;
  margin: 22px 0 54px;
  color: #4a5870;
  font-size: 18px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.detail-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid #dfe4ee;
  border-radius: 4px;
  background: #ffffff;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.detail-card p,
.detail-card li {
  color: #58667e;
  font-size: 13px;
  line-height: 1.65;
}

.policy-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
  line-height: 1.6;
}

.policy-panel h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.policy-panel h2 {
  margin: 22px 0 6px;
  font-size: 15px;
}

.policy-panel p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.auth-panel h1 {
  margin: 0;
  font-size: 24px;
}

.auth-panel p {
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-button {
  width: 100%;
  margin-top: 8px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 4px;
}

.auth-button:hover {
  background: #000000;
  color: #ffffff;
}

.google-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-error {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #f1c27d;
  border-radius: var(--radius);
  background: #fff7e8;
  color: #6d3b00;
  font-weight: 800;
}

.auth-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
}

.dirty-banner,
.api-banner {
  display: none;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f1c27d;
  background: #fff7e8;
  color: #6d3b00;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.dirty-banner.visible,
.api-banner.visible {
  display: block;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
  box-shadow: var(--shadow-tight);
  color: var(--text);
  font-weight: 700;
}

.muted {
  color: var(--text-muted);
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 980px) {
  :root {
    --sidebar: 208px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .split-layout,
  .editor-layout,
  .admin-ats-layout,
  .marketing-hero,
  .feature-band,
  .ai-panel,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .marketing-nav {
    display: none;
  }

  .hero-visual {
    margin-left: 0;
  }

  .template-fan {
    right: clamp(0px, 10vw, 82px);
  }

  .pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-column {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
  }

  .route-crumb {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .brand-top {
    display: inline-flex;
    min-width: 0;
  }

  .topbar-actions {
    margin-left: auto;
    gap: 8px;
  }

  .user-chip {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: var(--topbar);
    left: 0;
    bottom: 0;
    z-index: 19;
    width: min(280px, 84vw);
    padding-top: 8px;
    box-shadow: 18px 0 34px rgba(5, 26, 62, 0.16);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-card {
    display: none;
  }

  .nav-list {
    display: flex;
    padding: 0;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 6px 24px;
    border-right: 2px solid transparent;
    border-bottom: 0;
  }

  .nav-item.active {
    border-right-color: var(--primary);
  }

  .main-content {
    margin-left: 0;
    padding: 20px 12px;
  }

  .view-header {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav,
  .landing-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    gap: 24px;
  }

  .landing-hero h1 {
    font-size: 34px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .factor-row {
    grid-template-columns: 1fr;
  }

  .picker-list {
    grid-template-columns: 1fr;
  }

  .bullet-meta-row {
    flex-direction: column;
  }

  .ats-chip-row {
    width: 100%;
    justify-content: flex-start;
  }

  .resume-preview-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 0 14px;
  }

  .marketing-menu-toggle {
    display: inline-flex;
  }

  .marketing-brand {
    justify-self: start;
  }

  .marketing-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 14px;
    border-bottom: 1px solid #dce4f2;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 28px rgba(7, 22, 50, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .marketing-nav-open .marketing-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .marketing-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf1f8;
  }

  .beta-banner {
    justify-content: space-between;
    gap: 10px;
    padding: 7px 14px;
    text-align: left;
  }

  .marketing-actions {
    gap: 10px;
  }

  .marketing-actions a:not(.marketing-button) {
    display: inline-flex;
  }

  .marketing-actions .marketing-button {
    display: inline-flex;
    min-width: 104px;
  }

  .marketing-button {
    display: none;
    min-width: 124px;
    min-height: 38px;
    padding: 0 14px;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 18px;
  }

  .request-modal {
    max-height: calc(100vh - 36px);
  }

  .request-modal-header,
  .request-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .request-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-hero {
    min-height: auto;
    padding: 42px 18px 54px;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    margin-top: 8px;
    overflow: visible;
    perspective: none;
  }

  .product-window {
    min-height: auto;
  }

  .product-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 18px;
  }

  .analysis-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    padding-right: 0;
  }

  .analysis-card {
    margin-bottom: 0;
  }

  .rail-label {
    grid-column: 1 / -1;
    margin: 0;
  }

  .mini-sheet {
    width: 100%;
    min-height: 320px;
    padding: 28px 22px;
  }

  .pipeline-section,
  .trust-section,
  .feature-band {
    padding: 56px 18px;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .ai-panel {
    margin: 56px 18px;
  }

  .ai-copy,
  .ai-report {
    padding: 36px 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-panel {
    margin: 0 18px 72px;
  }

  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-footer nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .mock-split {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .hero-visual .product-window {
    position: static;
    width: min(100%, 440px);
    height: clamp(320px, 92vw, 380px);
    min-height: 320px;
    margin: 0 auto;
    max-height: none;
    transform: none;
    z-index: 2;
  }

  .template-fan {
    display: none;
  }

  .hero-person {
    position: relative;
    left: auto;
    bottom: auto;
    display: block;
    width: min(72vw, 320px);
    height: auto;
    max-height: none;
    margin: 0 auto -44px;
    transform: translateX(-8px);
    z-index: 1;
  }

  .proof-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-stat {
    border-bottom: 1px solid #e3e7f2;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.application-filter-panel {
  margin-bottom: 16px;
}

.application-filters {
  display: grid;
  grid-template-columns: 180px 200px minmax(220px, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
}

.application-pipeline-body {
  display: grid;
  gap: 0;
}

.application-editor {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-plain);
}

.application-editor > div:first-child {
  display: grid;
  gap: 4px;
}

.application-editor h2 {
  margin: 0;
}

.application-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.application-form-grid .field-full {
  grid-column: 1 / -1;
}

.applications-layout .table tbody tr {
  cursor: pointer;
}

.selected-row {
  background: #f4f8ff;
}

.submitted-snapshot-callout,
.plan-upgrade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.setting-row {
  grid-template-columns: 1fr auto;
}

.admin-plan-form {
  align-items: end;
}

.import-result {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcff;
}

.import-result pre {
  overflow: auto;
  max-height: 280px;
  margin: 10px 0;
  font-size: 12px;
}

.ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(5, 26, 62, 0.22);
}

.ai-launcher:hover,
.ai-launcher.active {
  background: var(--primary-dark);
}

.ai-drawer {
  position: fixed;
  top: var(--topbar);
  right: 0;
  bottom: 0;
  z-index: 55;
  width: min(560px, calc(100vw - 24px));
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border-left: 1px solid var(--border);
  background: var(--surface-plain);
  box-shadow: -14px 0 32px rgba(5, 26, 62, 0.12);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.ai-drawer.open {
  transform: translateX(0);
}

.ai-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.ai-drawer-header h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.ai-plan-strip {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff8f2;
  color: var(--warning);
  font-size: 12px;
}

.ai-plan-strip.ready {
  background: #f1fbf5;
  color: var(--success);
}

.ai-focus-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ai-focus-actions div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ai-focus-actions strong,
.ai-focus-actions small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-focus-actions small {
  color: var(--text-soft);
  font-size: 12px;
}

.ai-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ai-quick-actions button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-family-bold);
  font-weight: 800;
}

.ai-quick-actions button:hover {
  background: var(--surface-low);
}

.ai-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.ai-message {
  max-width: 96%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcff;
}

.ai-message.user {
  justify-self: end;
  background: var(--primary-soft);
  border-color: #bfd1ff;
}

.ai-message.error {
  border-color: rgba(186, 26, 26, 0.35);
  background: #fff8f7;
}

.ai-message > span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 11px;
  font-family: var(--font-family-bold);
  font-weight: 800;
  text-transform: uppercase;
}

.ai-message-body {
  display: grid;
  gap: 8px;
}

.ai-message-body p,
.ai-message-body ul,
.ai-message-body ol,
.ai-message-body h3,
.ai-message-body h4,
.ai-message-body h5 {
  margin: 0;
  line-height: 1.45;
}

.ai-message-body ul,
.ai-message-body ol {
  padding-left: 18px;
}

.ai-message-body code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--surface-muted);
  font-size: 12px;
}

.ai-thinking {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 36px;
  overflow: hidden;
}

.ai-thinking span {
  display: block;
  height: 10px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f8 0%, #d8e5ff 40%, #eef2f8 80%);
  background-size: 220% 100%;
  animation: aiShimmer 1.1s linear infinite;
}

.ai-thinking strong {
  color: var(--text-soft);
  font-size: 12px;
  font-family: var(--font-family-bold);
  font-weight: 800;
}

.ai-suggestions {
  display: grid;
  gap: 8px;
}

.ai-suggestion {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-plain);
}

.ai-suggestion.accepted {
  border-color: #b8ddc4;
  background: #f1fbf5;
}

.ai-suggestion.ignored {
  opacity: 0.66;
}

.ai-suggestion p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.ai-suggestion small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.35;
}

.ai-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-suggestion-actions .button {
  min-height: 38px;
  min-width: 128px;
  padding: 8px 12px;
  justify-content: center;
  font-size: 12px;
  white-space: nowrap;
}

.ai-suggestion-actions .button .material-symbols-rounded {
  flex: 0 0 auto;
  margin: 0;
  color: currentColor;
}

.ai-suggestion-actions .button-primary {
  color: #ffffff;
}

.ai-composer {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

.ai-composer textarea {
  width: 100%;
  min-height: 72px;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  resize: none;
}

.ai-inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}

.ai-inline-actions.compact .icon-button {
  width: 28px;
  height: 28px;
}

.ai-inline-actions .icon-button {
  color: var(--primary-dark);
}

@keyframes aiShimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.pricing-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border: 1px solid #dce4ef;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(7, 22, 50, 0.06);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 18px 48px rgba(0, 82, 204, 0.16);
}

.pricing-card h2 {
  margin: 0;
  font-size: 34px;
}

.pricing-card h2 span {
  color: var(--text-soft);
  font-size: 15px;
}

.pricing-card p,
.pricing-card ul {
  margin: 0;
  color: var(--text-muted);
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .application-filters,
  .application-form-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .ai-drawer {
    top: auto;
    left: 0;
    width: 100%;
    height: min(78vh, 680px);
    border-top: 1px solid var(--border);
    border-left: 0;
    transform: translateY(105%);
  }

  .ai-drawer.open {
    transform: translateY(0);
  }
}
