:root {
  --jm-background: #f8fafc;
  --jm-foreground: #0f172a;
  --jm-card: #ffffff;
  --jm-muted: #f1f5f9;
  --jm-muted-foreground: #64748b;
  --jm-border: #e2e8f0;
  --jm-input: #cbd5e1;
  --jm-primary: #0966C2;
  --jm-primary-hover: #0757a6;
  --jm-primary-foreground: #ffffff;
  --jm-accent: #0966C2;
  --jm-accent-soft: #eaf4ff;
  --jm-success: #0966C2;
  --jm-danger: #dc2626;
  --jm-ring: rgba(9, 102, 194, 0.2);
  --jm-radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--jm-background);
  color: var(--jm-foreground);
  font-family: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  font-size: 16px;
}

body > div > div {
  width: 100%;
}

::selection {
  background: rgba(9, 102, 194, 0.16);
}

a,
button,
summary,
input,
select,
textarea {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--jm-ring);
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border-radius: calc(var(--jm-radius) - 0.125rem);
  border: 1px solid var(--jm-input);
  background: var(--jm-card);
  color: var(--jm-foreground);
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #94a3b8;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--jm-accent);
}

input[type="file"] {
  min-height: auto;
  cursor: pointer;
  background: var(--jm-card);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--jm-accent);
}

button,
a[class*="px-"] {
  -webkit-tap-highlight-color: transparent;
}

button:hover,
a[class*="px-"]:hover {
  transform: translateY(-1px);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.jobmatch-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(6px);
}

.jobmatch-loading-overlay[hidden] {
  display: none;
}

.jobmatch-loading-card {
  width: min(24rem, 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.jobmatch-loading-spinner,
.jobmatch-loading-check {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: 999px;
}

.jobmatch-loading-spinner {
  border: 4px solid #dbeafe;
  border-top-color: var(--jm-primary);
  animation: jobmatch-spin 0.8s linear infinite;
}

.jobmatch-loading-check {
  display: none;
  background: var(--jm-primary);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
}

.jobmatch-loading-title {
  margin-top: 1rem;
  color: var(--jm-foreground);
  font-size: 1.05rem;
  font-weight: 750;
}

.jobmatch-loading-detail {
  margin-top: 0.45rem;
  color: var(--jm-muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
}

.jobmatch-loading-overlay.is-complete .jobmatch-loading-spinner {
  display: none;
}

.jobmatch-loading-overlay.is-complete .jobmatch-loading-check {
  display: grid;
}

@keyframes jobmatch-spin {
  to {
    transform: rotate(360deg);
  }
}

.shadow-panel {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

.bg-white\/90,
.bg-white\/92,
.bg-white\/80 {
  background-color: var(--jm-card) !important;
}

.border-white\/70 {
  border-color: var(--jm-border) !important;
}

.rounded-\[2\.2rem\],
.rounded-\[2rem\],
.rounded-\[1\.8rem\],
.rounded-\[1\.7rem\],
.rounded-\[1\.6rem\],
.rounded-\[1\.4rem\],
.rounded-\[1\.35rem\],
.rounded-\[1\.3rem\],
.rounded-3xl {
  border-radius: var(--jm-radius) !important;
}

.rounded-2xl,
.rounded-\[1\.1rem\] {
  border-radius: calc(var(--jm-radius) - 0.125rem) !important;
}

.bg-ocean,
.bg-ink,
.bg-slate-900 {
  background-color: var(--jm-primary) !important;
}

.text-ocean,
.text-ink {
  color: var(--jm-primary) !important;
}

.bg-signal {
  background-color: var(--jm-accent) !important;
}

.text-signal {
  color: var(--jm-accent) !important;
}

.bg-pine {
  background-color: var(--jm-success) !important;
}

.bg-emerald-600,
.bg-blue-600,
.bg-green-600 {
  background-color: var(--jm-primary) !important;
}

.bg-mist {
  background-color: var(--jm-background) !important;
}

.jobmatch-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: calc(var(--jm-radius) - 0.125rem);
  padding: 0.65rem 0.75rem;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.jobmatch-main-shell {
  width: 100%;
  max-width: none;
}

.jobmatch-nav-link:hover {
  background: var(--jm-muted);
  color: var(--jm-foreground);
}

.jobmatch-nav-link-active {
  background: var(--jm-primary);
  color: var(--jm-primary-foreground);
}

.jobmatch-nav-link-active:hover {
  background: var(--jm-primary);
  color: var(--jm-primary-foreground);
}

@media (max-width: 1023px) {
  .jobmatch-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .jobmatch-sidebar > div:first-child {
    margin-bottom: 0.85rem;
  }

  .jobmatch-brand h1 {
    font-size: 1rem;
  }

  .jobmatch-nav {
    display: flex;
    gap: 0.45rem;
    margin: 0 -0.25rem;
    overflow-x: auto;
    padding: 0.15rem 0.25rem 0.35rem;
    scrollbar-width: none;
  }

  .jobmatch-nav::-webkit-scrollbar {
    display: none;
  }

  .jobmatch-nav-link {
    min-width: max-content;
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
  }

  .jobmatch-progress-card {
    display: none;
  }
}

.jobmatch-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--jm-foreground);
  font-size: 0.88rem;
  font-weight: 650;
}

.jobmatch-help {
  margin-top: 0.55rem;
  color: var(--jm-muted-foreground);
  font-size: 0.82rem;
  line-height: 1.55;
}

.jobmatch-chip-shell {
  display: flex;
  min-height: 3.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-radius: var(--jm-radius);
  border: 1px solid var(--jm-border);
  background: var(--jm-card);
  padding: 0.65rem;
}

.jobmatch-chip-shell:focus-within {
  border-color: var(--jm-accent);
  box-shadow: 0 0 0 3px var(--jm-ring);
}

.jobmatch-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jobmatch-chip-input {
  min-width: 12rem;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  box-shadow: none;
}

.jobmatch-chip-input:focus {
  box-shadow: none;
}

.jobmatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: var(--jm-muted);
  color: var(--jm-foreground);
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 500;
}

.jobmatch-chip button {
  border: 0;
  background: transparent;
  color: var(--jm-muted-foreground);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.jobmatch-chip button:hover {
  color: var(--jm-danger);
  transform: none;
}

.jobmatch-choice-card {
  display: flex;
  min-height: 3rem;
  align-items: center;
  border-radius: var(--jm-radius);
  border: 1px solid var(--jm-border);
  background: var(--jm-card);
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  color: #334155;
  font-weight: 550;
}

.jobmatch-choice-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.jobmatch-choice-card.is-selected {
  border-color: var(--jm-accent);
  background: var(--jm-accent-soft);
  color: var(--jm-primary);
  transform: none;
}

.jobmatch-builder-list {
  display: grid;
  gap: 0.9rem;
}

.jobmatch-add-button {
  border: 1px solid var(--jm-primary) !important;
  background: var(--jm-primary) !important;
  color: var(--jm-primary-foreground) !important;
}

.jobmatch-add-button:hover {
  border-color: var(--jm-primary-hover) !important;
  background: var(--jm-primary-hover) !important;
  color: var(--jm-primary-foreground) !important;
}

.jobmatch-builder-item {
  border-radius: var(--jm-radius);
  border: 1px solid var(--jm-border);
  background: var(--jm-card);
  padding: 1rem;
}

.jobmatch-builder-item-grid {
  display: grid;
  gap: 0.9rem;
}

.jobmatch-kanban-column {
  min-height: 5rem;
}

.jobmatch-document-preview {
  border-radius: var(--jm-radius);
  border: 1px solid var(--jm-border);
  background: var(--jm-card);
  padding: 1.5rem;
  color: var(--jm-foreground);
}

.jobmatch-document-title {
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--jm-border);
  padding-bottom: 0.45rem;
  color: var(--jm-foreground);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-workspace {
  display: block;
}

.profile-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 440px);
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.profile-main-column {
  min-width: 0;
}

.profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-photo-controls {
  grid-template-columns: minmax(0, 1fr);
}

.profile-advisor-panel {
  position: sticky;
  top: 1.25rem;
  min-width: 0;
}

.profile-advisor-card {
  border-color: rgba(10, 102, 194, 0.25) !important;
}

.profile-advisor-panel textarea {
  min-height: 8.5rem;
}

.profile-advice-output {
  max-height: 34rem;
  overflow: auto;
}

.profile-advice-output pre {
  font-family: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

@media (min-width: 1024px) {
  .jobmatch-sidebar {
    width: 19rem !important;
    flex: 0 0 19rem !important;
    padding: 1rem !important;
  }

  .jobmatch-brand span {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .jobmatch-brand h1 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .jobmatch-nav-link {
    padding: 0.85rem 0.95rem;
    font-size: 1rem;
  }

  .jobmatch-progress-card {
    padding: 1.1rem !important;
  }

  .jobmatch-progress-card p:nth-child(2) {
    font-size: 1.25rem;
  }

  .jobmatch-main {
    min-width: 0;
    padding: 0.75rem 0.9rem !important;
  }

  .profile-hero,
  .profile-photo-card,
  .profile-sections-grid > article,
  .profile-advisor-panel > article {
    padding: 1.2rem !important;
  }

  .profile-hero h2 {
    font-size: 2.15rem !important;
    line-height: 1.08 !important;
  }

  .profile-hero .text-4xl {
    font-size: 3rem !important;
    line-height: 1 !important;
  }

  .profile-hero p,
  .profile-photo-card p,
  .profile-advisor-panel p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .profile-photo-card h3 {
    font-size: 1.75rem !important;
    line-height: 1.15 !important;
  }

  .profile-sections-grid h3,
  .profile-advisor-panel h3 {
    font-size: 1.2rem !important;
  }

  .profile-advisor-panel .tracking-\[0\.24em\] {
    letter-spacing: 0.16em !important;
  }

  .profile-sections-grid .text-sm,
  .profile-advisor-panel .text-sm {
    font-size: 0.98rem !important;
    line-height: 1.55;
  }

  .profile-sections-grid li,
  .profile-sections-grid dl,
  .profile-sections-grid p {
    font-size: 0.98rem;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
    min-height: 3rem;
  }
}

@media (min-width: 1800px) {
  .jobmatch-sidebar {
    width: 20rem !important;
    flex-basis: 20rem !important;
  }

  .profile-page-shell {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 620px);
    gap: 1.25rem;
  }

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

  .jobmatch-main {
    padding: 0.85rem 1rem !important;
  }
}

@media (min-width: 768px) {
  .jobmatch-builder-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobmatch-builder-item-grid .jobmatch-builder-full {
    grid-column: span 2 / span 2;
  }
}

@media (max-width: 1279px) {
  .profile-page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-advisor-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .profile-sections-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h2.text-3xl {
    font-size: 1.65rem;
    line-height: 2rem;
  }

  h3.text-2xl {
    font-size: 1.35rem;
    line-height: 1.8rem;
  }

.jobmatch-document-preview {
    padding: 1rem;
  }
}

.profile-workspace,
.profile-workspace * {
  min-width: 0;
}

.profile-workspace {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.profile-hero {
  overflow: hidden;
}

.profile-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-hero-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-hero-photo {
  width: 4.75rem;
  height: 4.75rem;
  flex: 0 0 4.75rem;
  border-radius: 1.35rem;
  border: 1px solid var(--jm-border);
  object-fit: cover;
}

.profile-completion-pill {
  flex: 0 0 auto;
  min-width: 9.5rem;
  border-radius: calc(var(--jm-radius) + 0.1rem);
  background: var(--jm-primary);
  color: var(--jm-primary-foreground);
  padding: 1rem 1.15rem;
}

.profile-completion-pill p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-completion-pill strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 2.35rem;
  line-height: 1;
}

.profile-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 23.5rem) !important;
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.profile-main-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.profile-advisor-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.profile-section-block {
  display: grid;
  gap: 0.8rem;
}

.profile-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.profile-section-title h3,
.profile-side-card h3 {
  margin: 0.2rem 0 0;
  color: var(--jm-foreground);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.profile-section-title a,
.profile-card-head a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--jm-border);
  background: var(--jm-card);
  color: var(--jm-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.72rem;
  text-transform: uppercase;
}

.profile-section-title a:hover,
.profile-card-head a:hover {
  border-color: var(--jm-accent);
  color: var(--jm-accent);
  transform: none;
}

.profile-card-head .profile-edit-link {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.profile-card-head .profile-edit-link span {
  transform: translateY(-1px);
}

.profile-kicker {
  margin: 0;
  color: var(--jm-muted-foreground);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-overview-grid,
.profile-detail-grid,
.profile-focus-grid {
  display: grid;
  gap: 0.75rem;
}

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

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

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

.profile-card,
.profile-side-card {
  overflow: hidden;
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius);
  background: var(--jm-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-card {
  min-height: 8.25rem;
  padding: 1rem;
}

.profile-focus-card {
  min-height: 15rem;
}

.profile-side-card {
  padding: 1rem;
}

.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-card-head h4 {
  margin: 0;
  color: var(--jm-foreground);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-card-body {
  margin-top: 0.8rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-card-body p,
.profile-side-card p,
.profile-empty {
  margin: 0;
  color: var(--jm-muted-foreground);
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.profile-dl dt {
  color: var(--jm-muted-foreground);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-dl dd {
  margin: 0.1rem 0 0;
  color: #334155;
  overflow-wrap: anywhere;
}

.profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-chip-list li {
  max-width: 100%;
  border-radius: 999px;
  background: var(--jm-muted);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 0.42rem 0.65rem;
}

.profile-chip-list .profile-chip-more {
  background: var(--jm-primary);
  color: var(--jm-primary-foreground);
}

.profile-timeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.profile-timeline > div {
  border-left: 2px solid var(--jm-border);
  padding-left: 0.8rem;
}

.profile-timeline strong {
  display: block;
  color: var(--jm-foreground);
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-timeline p {
  margin: 0.35rem 0 0;
  color: var(--jm-muted-foreground);
  font-size: 0.88rem;
  line-height: 1.55;
}

.profile-side-card h3 + p,
.profile-side-card .profile-kicker + h3 + p {
  margin-top: 0.45rem;
}

.profile-side-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.profile-side-form input,
.profile-side-form textarea,
.profile-side-form select {
  max-width: 100%;
  font-size: 0.92rem;
}

.profile-side-form input[type="file"] {
  font-size: 0.82rem;
  overflow: hidden;
}

.profile-side-form textarea {
  min-height: 7rem;
}

.profile-side-form button,
.profile-advisor-actions button,
.profile-secondary-button,
.profile-danger-button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--jm-radius) - 0.15rem);
  border: 1px solid var(--jm-primary);
  background: var(--jm-primary);
  color: var(--jm-primary-foreground);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.72rem 0.9rem;
  text-align: center;
}

.profile-side-form button:hover,
.profile-advisor-actions button:hover {
  background: var(--jm-primary-hover);
  color: var(--jm-primary-foreground);
}

.profile-advisor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-advisor-actions button:nth-child(2),
.profile-secondary-button {
  border-color: var(--jm-border) !important;
  background: var(--jm-card) !important;
  color: var(--jm-primary) !important;
}

.profile-danger-button {
  border-color: rgba(220, 38, 38, 0.22) !important;
  background: #fff1f2 !important;
  color: var(--jm-danger) !important;
}

.profile-advice-output {
  max-height: 22rem;
  margin-top: 0.9rem;
  overflow: auto;
  border-radius: var(--jm-radius);
  border: 1px solid var(--jm-border);
  background: #f8fafc;
  padding: 0.9rem;
}

.profile-advice-output pre {
  margin: 0;
  color: #334155;
  font-family: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.profile-photo-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.profile-photo-inline img,
.profile-photo-inline > div:first-child {
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 4.25rem;
  border-radius: 1rem;
  border: 1px solid var(--jm-border);
  object-fit: cover;
}

.profile-photo-inline > div:first-child {
  display: grid;
  place-items: center;
  background: var(--jm-muted);
  color: var(--jm-muted-foreground);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 650;
}

.profile-radio-box {
  border-radius: var(--jm-radius);
  border: 1px solid var(--jm-border);
  background: #f8fafc;
  padding: 0.75rem;
}

.profile-radio-box ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-radio-box label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 650;
}

.profile-reset-card {
  border-color: rgba(220, 38, 38, 0.24);
}

.profile-reset-card .profile-kicker,
.profile-reset-card summary {
  color: var(--jm-danger);
}

.profile-reset-card summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 0.75rem;
}

@media (min-width: 1600px) {
  .profile-page-shell {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 25rem) !important;
  }

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

@media (max-width: 1380px) {
  .profile-overview-grid,
  .profile-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .profile-page-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-advisor-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .profile-hero-inner,
  .profile-hero-copy,
  .profile-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-completion-pill {
    width: 100%;
  }

  .profile-overview-grid,
  .profile-detail-grid,
  .profile-focus-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-advisor-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .profile-hero,
  .profile-card,
  .profile-side-card {
    padding: 0.9rem !important;
  }

  .profile-section-title h3,
  .profile-side-card h3 {
    font-size: 1.08rem;
  }

  .profile-card-head {
    flex-direction: column;
  }
}

/* shadcn-inspired profile surface: neutral, compact, low-noise. */
.profile-workspace {
  --profile-bg: #fafafa;
  --profile-card: #ffffff;
  --profile-foreground: #09090b;
  --profile-muted: #71717a;
  --profile-subtle: #f4f4f5;
  --profile-border: #e4e4e7;
  --profile-ring: rgba(24, 24, 27, 0.14);
  --profile-radius: 0.75rem;
  color: var(--profile-foreground);
}

.jobmatch-main {
  background: var(--profile-bg);
}

.profile-hero,
.profile-card,
.profile-side-card,
.profile-advice-output,
.profile-radio-box {
  border-color: var(--profile-border) !important;
  border-radius: var(--profile-radius) !important;
  background: var(--profile-card) !important;
  box-shadow: none !important;
}

.profile-hero {
  padding: 1.25rem !important;
}

.profile-hero h2 {
  font-size: clamp(1.65rem, 1.7vw, 2.05rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
}

.profile-hero p,
.profile-card-body,
.profile-card-body p,
.profile-side-card p,
.profile-empty,
.profile-timeline p {
  color: var(--profile-muted) !important;
}

.profile-hero-photo,
.profile-photo-inline img,
.profile-photo-inline > div:first-child {
  border-radius: calc(var(--profile-radius) - 0.15rem) !important;
  border-color: var(--profile-border) !important;
}

.profile-completion-pill {
  min-width: 8.25rem;
  border: 1px solid var(--profile-border);
  border-radius: var(--profile-radius);
  background: var(--profile-foreground);
  padding: 0.9rem 1rem;
}

.profile-completion-pill p,
.profile-kicker {
  letter-spacing: 0.08em !important;
}

.profile-completion-pill strong {
  font-size: 2rem;
  font-weight: 650;
}

.profile-page-shell {
  gap: 1rem;
}

.profile-section-block {
  gap: 0.65rem;
}

.profile-section-title {
  padding: 0 0.1rem;
}

.profile-section-title h3,
.profile-side-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.profile-kicker {
  color: #71717a;
  font-size: 0.68rem;
  font-weight: 650;
}

.profile-card,
.profile-side-card {
  padding: 0.95rem;
}

.profile-card:hover,
.profile-side-card:hover {
  border-color: #d4d4d8 !important;
}

.profile-card-head h4 {
  color: var(--profile-foreground);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.profile-section-title a,
.profile-card-head a,
.profile-side-form button,
.profile-advisor-actions button,
.profile-secondary-button,
.profile-danger-button {
  border-radius: calc(var(--profile-radius) - 0.25rem) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.profile-section-title a {
  border-color: var(--profile-border);
  color: #18181b;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.profile-section-title a:hover {
  background: var(--profile-subtle);
  border-color: #d4d4d8;
  color: #18181b;
}

.profile-card-head .profile-edit-link {
  width: 2rem;
  height: 2rem;
  border-color: transparent;
  background: transparent;
  color: var(--jm-primary);
}

.profile-card-head .profile-edit-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-card-head .profile-edit-link:hover {
  border-color: rgba(9, 102, 194, 0.22);
  background: var(--jm-accent-soft);
  color: var(--jm-primary);
}

.profile-chip-list {
  gap: 0.38rem;
}

.profile-chip-list li {
  border: 1px solid var(--profile-border);
  border-radius: calc(var(--profile-radius) - 0.25rem);
  background: #fafafa;
  color: #3f3f46;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.5rem;
}

.profile-chip-list .profile-chip-more {
  border-color: var(--jm-primary);
  background: var(--jm-primary);
  color: #ffffff;
}

.profile-dl dt {
  color: #71717a;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.profile-dl dd,
.profile-timeline strong {
  color: var(--profile-foreground);
}

.profile-timeline > div {
  border-left-color: var(--profile-border);
}

.profile-side-form input,
.profile-side-form textarea,
.profile-side-form select,
.profile-workspace input,
.profile-workspace textarea,
.profile-workspace select {
  border-color: var(--profile-border);
  border-radius: calc(var(--profile-radius) - 0.25rem);
  background: #ffffff;
  color: var(--profile-foreground);
}

.profile-side-form input:focus,
.profile-side-form textarea:focus,
.profile-side-form select:focus,
.profile-workspace input:focus,
.profile-workspace textarea:focus,
.profile-workspace select:focus {
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px var(--profile-ring);
}

.profile-side-form button,
.profile-advisor-actions button {
  min-height: 2.45rem;
  border-color: var(--jm-primary);
  background: var(--jm-primary);
  color: #ffffff;
  font-size: 0.84rem;
}

.profile-side-form button:hover,
.profile-advisor-actions button:hover {
  background: var(--jm-primary-hover);
}

.profile-advisor-actions button:nth-child(2),
.profile-secondary-button {
  border-color: var(--jm-primary) !important;
  background: var(--jm-primary) !important;
  color: var(--jm-primary-foreground) !important;
}

.profile-advisor-actions button:nth-child(2):hover,
.profile-secondary-button:hover {
  background: var(--jm-primary-hover) !important;
}

.profile-danger-button {
  border-color: var(--jm-primary) !important;
  background: var(--jm-primary) !important;
  color: var(--jm-primary-foreground) !important;
}

.profile-advice-output {
  background: #fafafa !important;
  padding: 0.85rem;
}

.profile-advice-output pre {
  color: #3f3f46;
  font-size: 0.86rem;
  line-height: 1.55;
}

.profile-reset-card {
  background: #fffafa !important;
}

.profile-advice-output h4 {
  margin: 1rem 0 0.45rem;
  color: var(--jm-ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.profile-advice-output h4:first-child {
  margin-top: 0;
}

.profile-advice-output p {
  margin: 0 0 0.85rem;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.7;
}

.profile-advice-output ul {
  margin: 0.35rem 0 0.9rem 1.15rem;
  color: #334155;
  list-style: disc;
}

.profile-advice-output li {
  margin: 0.35rem 0;
  line-height: 1.6;
}

.profile-advice-export {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* CTA policy: every real button uses the same product action blue. */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.profile-side-form button,
.profile-advisor-actions button,
.profile-secondary-button,
.profile-danger-button {
  border-color: var(--jm-primary) !important;
  background: var(--jm-primary) !important;
  color: var(--jm-primary-foreground) !important;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.profile-side-form button:hover,
.profile-advisor-actions button:hover,
.profile-secondary-button:hover,
.profile-danger-button:hover {
  border-color: var(--jm-primary-hover) !important;
  background: var(--jm-primary-hover) !important;
  color: var(--jm-primary-foreground) !important;
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.jobmatch-primary-action {
  border: 1px solid var(--jm-primary) !important;
  background: var(--jm-primary) !important;
  color: var(--jm-primary-foreground) !important;
  box-shadow: 0 10px 22px rgba(9, 102, 194, 0.16);
}

.jobmatch-primary-action:hover {
  border-color: var(--jm-primary-hover) !important;
  background: var(--jm-primary-hover) !important;
  color: var(--jm-primary-foreground) !important;
}

@media (max-width: 720px) {
  .profile-hero {
    padding: 1rem !important;
  }

  .profile-completion-pill {
    min-width: 0;
  }
}

/* Final advisor reading layer: one font scale, neutral text, breathable markdown. */
.profile-advisor-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.profile-advisor-card .profile-kicker {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.18em !important;
}

.profile-advisor-card h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

.profile-advisor-card > p:not(.profile-kicker) {
  margin: -0.3rem 0 0 !important;
  color: #64748b !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
}

.profile-advisor-card .profile-side-form {
  margin-top: 0 !important;
  gap: 0.75rem !important;
}

.profile-advisor-card textarea {
  min-height: 7.25rem !important;
  border-color: #d7dde7 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.profile-advisor-actions {
  gap: 0.7rem !important;
}

.profile-advisor-actions button {
  min-height: 2.75rem !important;
  border-radius: 0.7rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.profile-advice-output {
  max-height: min(34rem, 58vh) !important;
  margin-top: 0 !important;
  overflow: auto !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.85rem !important;
  background: #ffffff !important;
  padding: 1.05rem 1rem !important;
  color: #334155 !important;
  font-size: 0.94rem !important;
  line-height: 1.68 !important;
  scrollbar-gutter: stable;
}

.profile-advice-output h4 {
  margin: 1.25rem 0 0.45rem !important;
  padding-top: 0.85rem !important;
  border-top: 1px solid #eef2f7 !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 760 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.35 !important;
}

.profile-advice-output h4:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.profile-advice-output p {
  margin: 0 0 0.95rem !important;
  color: #475569 !important;
  font-size: 0.94rem !important;
  line-height: 1.68 !important;
}

.profile-advice-output ul {
  display: grid !important;
  gap: 0.55rem !important;
  margin: 0.55rem 0 1rem !important;
  padding-left: 1.05rem !important;
  color: #475569 !important;
  list-style: disc !important;
}

.profile-advice-output li {
  margin: 0 !important;
  padding-left: 0.1rem !important;
  color: #475569 !important;
  font-size: 0.94rem !important;
  line-height: 1.62 !important;
}

.profile-advice-output li::marker {
  color: #94a3b8;
}

.profile-advice-export {
  width: 100% !important;
  margin-top: 0 !important;
  min-height: 2.65rem !important;
  border-radius: 0.7rem !important;
  font-size: 0.9rem !important;
  font-weight: 720 !important;
}
