:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #697572;
  --subtle: #8b9693;
  --line: #e1e5e2;
  --line-strong: #cdd4d0;
  --canvas: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #fafbf8;
  --brand: #176b5b;
  --brand-dark: #0f5549;
  --brand-soft: #e6f1ed;
  --blue: #2c67cc;
  --blue-soft: #eaf0fb;
  --violet: #7758c8;
  --violet-soft: #f0ecfb;
  --green: #218659;
  --green-soft: #e8f5ed;
  --red: #b24a44;
  --red-soft: #faecea;
  --amber: #9a6919;
  --amber-soft: #fbf2dd;
  --shadow-sm: 0 1px 2px rgba(25, 38, 34, 0.05), 0 5px 18px rgba(25, 38, 34, 0.04);
  --shadow-md: 0 18px 48px rgba(25, 38, 34, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

body.is-booting .app-shell,
body.is-onboarding .app-shell {
  visibility: hidden;
}

body.is-booting::before {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  content: "Preparing your workspace…";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.workspace-startup-error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.workspace-startup-error > div {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.workspace-startup-error h1 {
  margin: 22px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.workspace-startup-error p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

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

button,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(44, 103, 204, 0.2);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Application frame */

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 24px 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 11px;
}

.primary-nav {
  display: grid;
  gap: 5px;
  margin-top: 36px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  background: transparent;
  color: #56635f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-item:hover {
  background: #f2f5f2;
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-item.is-active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  content: "";
}

.nav-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
}

.nav-icon-document {
  border: 1.6px solid currentColor;
  border-radius: 3px;
}

.nav-icon-dashboard {
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.nav-icon-dashboard::before,
.nav-icon-dashboard::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.nav-icon-dashboard::before {
  top: 4px;
  bottom: 4px;
  left: 7px;
  width: 1.5px;
}

.nav-icon-dashboard::after {
  top: 7px;
  right: 4px;
  left: 4px;
  height: 1.5px;
}

.nav-icon-document::before,
.nav-icon-document::after {
  position: absolute;
  left: 4px;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-icon-document::before { top: 5px; }
.nav-icon-document::after { top: 10px; }

.nav-icon-tracker {
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.nav-icon-tracker::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 7px;
  height: 5px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.nav-icon-settings {
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.nav-icon-settings::before {
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.nav-icon-settings::after {
  position: absolute;
  top: -3px;
  right: 5px;
  width: 5px;
  height: 22px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
}

.nav-count {
  min-width: 21px;
  margin-left: auto;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(23, 107, 91, 0.12);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.sidebar-footer {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 140ms ease;
}

.sidebar-user:hover {
  background: #f2f5f2;
}

.user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: 10px;
  background: linear-gradient(145deg, #d9eee7, #edf5f1);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  font-size: 11px;
  font-weight: 750;
}

.sidebar-user-copy small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 9px;
}

.user-presence {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
  vertical-align: 1px;
}

.sidebar-user-more {
  margin-left: auto;
  color: #a2aaa7;
  font-size: 10px;
  letter-spacing: 1px;
}

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 11px;
  background: var(--surface-soft);
}

.privacy-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.sidebar-note strong,
.sidebar-note span {
  display: block;
}

.sidebar-note strong {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 750;
}

.sidebar-note div > span {
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
}

.workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 44px 24px;
}

.workspace-eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workspace-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.workspace-header > div:first-child > p:last-child {
  max-width: 580px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.workspace-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.beta-data-banner {
  display: flex;
  width: calc(100% - 88px);
  max-width: 1352px;
  align-items: flex-start;
  gap: 12px;
  margin: 0 auto 18px;
  border: 1px solid #d8d1ad;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fffbee;
  color: #4c4a3f;
  box-shadow: var(--shadow-sm);
}

.beta-data-banner[hidden] {
  display: none;
}

.beta-data-badge {
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f0dda0;
  color: #655221;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.beta-data-banner > div > strong {
  display: block;
  margin-bottom: 2px;
  color: #34382f;
  font-size: 11px;
  font-weight: 780;
}

.beta-data-banner p {
  margin: 0;
  color: #69675c;
  font-size: 10px;
  line-height: 1.5;
}

.beta-data-banner .beta-ai-disclosure {
  margin-top: 4px;
  color: #777266;
}

.beta-data-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0 8px;
}

.beta-data-actions .button {
  min-height: 34px;
  padding: 7px 13px;
}

.beta-data-actions > span {
  color: #777266;
  font-size: 9px;
}

.beta-ai-disclosure strong {
  color: #585446;
}

.header-status {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 130ms ease, background-color 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}

.button:hover {
  border-color: #b9c3be;
  background: #f8faf8;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(23, 107, 91, 0.18);
}

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

.button.ghost {
  min-height: 34px;
  padding: 7px 10px;
  background: transparent;
  color: #596560;
}

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

.button.danger:hover {
  border-color: #e7bbb7;
  background: var(--red-soft);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

/* Resume workspace */

.resume-controls {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px;
}

.resume-import-card {
  position: relative;
  margin-bottom: 10px;
  border: 1px solid #cfded8;
  border-radius: 15px;
  background:
    radial-gradient(circle at 92% 0%, rgba(23, 107, 91, 0.09), transparent 34%),
    linear-gradient(120deg, #ffffff 0%, #f5faf7 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.resume-import-card.is-dragging {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.12), var(--shadow-sm);
  transform: translateY(-1px);
}

.resume-import-main {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 16px;
}

.resume-import-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 52px;
  flex: 0 0 auto;
  place-items: end center;
  border: 1.5px solid rgba(23, 107, 91, 0.34);
  border-radius: 9px;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(23, 107, 91, 0.08);
}

.resume-import-icon::before {
  position: absolute;
  top: 9px;
  left: 11px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #b8cec6;
  box-shadow: 0 6px 0 #b8cec6, 0 12px 0 #d0ded9;
  content: "";
}

.resume-import-icon span {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  padding: 2px 4px;
  background: var(--brand);
  color: #fff;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.resume-import-copy {
  min-width: 0;
}

.resume-import-copy .workspace-eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
}

.resume-import-copy h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.resume-import-copy > p:not(.workspace-eyebrow):not(.resume-source-label) {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.resume-import-ai {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  color: var(--ink);
  font-size: 9px;
  cursor: pointer;
}

.resume-import-ai input {
  width: 13px;
  height: 13px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.resume-import-ai span {
  display: grid;
  gap: 1px;
}

.resume-import-ai small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.resume-import-ai:has(input:disabled) {
  cursor: default;
  opacity: 0.7;
}

.resume-source-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--green-soft);
  color: #1c744c;
  font-size: 9px;
  font-weight: 700;
}

.resume-source-label::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.resume-import-actions {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 5px;
  margin-left: auto;
}

.resume-import-actions > span {
  color: var(--subtle);
  font-size: 8px;
}

.resume-import-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(205, 222, 216, 0.8);
  padding: 10px 16px;
  background: rgba(230, 241, 237, 0.58);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 650;
}

.resume-import-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(23, 107, 91, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: resume-import-spin 800ms linear infinite;
}

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

.resume-import-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #d4e2dc;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.76);
}

.resume-import-review h3 {
  margin: 0;
  font-size: 13px;
}

.resume-import-review p:not(.workspace-eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.resume-import-review ul {
  margin: 7px 0 0;
  padding-left: 17px;
  color: var(--amber);
  font-size: 9px;
  line-height: 1.45;
}

.resume-import-review-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.control-grid {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.field-control {
  display: grid;
  gap: 6px;
  color: #56635f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-control select {
  min-width: 190px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 31px 7px 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 570;
  letter-spacing: normal;
  text-transform: none;
}

.field-control:first-child select {
  min-width: 220px;
}

.template-control {
  min-width: 190px;
}

.template-picker-button {
  display: flex;
  min-width: 190px;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 9px 7px 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

.template-picker-button:hover {
  border-color: #aebbb6;
  background: #fcfdfb;
}

.template-picker-button > span:first-child {
  font-size: 12px;
  font-weight: 650;
}

.template-picker-button > span:last-child {
  color: var(--brand);
  font-size: 9px;
  font-weight: 750;
}

.density-meta {
  display: grid;
  align-self: center;
  gap: 3px;
  min-width: 110px;
  margin-left: 2px;
}

.auto-density-note {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.last-updated,
.inline-edit-status {
  color: var(--subtle);
  font-size: 10px;
}

.inline-edit-status {
  white-space: nowrap;
}

.inline-edit-status.is-saving { color: var(--amber); }
.inline-edit-status.is-saved { color: var(--green); }

.workspace-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.workspace-sync-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.workspace-sync-status[data-state="saved"] { color: var(--green); }
.workspace-sync-status[data-state="syncing"] { color: var(--amber); }
.workspace-sync-status[data-state="offline"] { color: #a14f35; }

.control-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.view-options {
  position: relative;
}

.view-options > summary {
  display: flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 10px;
  color: #596560;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  list-style: none;
}

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

.view-options > summary::after {
  margin-left: 7px;
  content: "⌄";
  font-size: 12px;
}

.view-options-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 15;
  display: grid;
  width: 195px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.view-options-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #44514d;
  font-size: 11px;
  font-weight: 600;
}

.view-options-menu input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.fit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef1ef;
  color: #67736f;
  font-size: 10px;
  font-weight: 720;
}

.fit-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa4a0;
  content: "";
}

.fit-status.fit-ok { background: var(--green-soft); color: #1c744c; }
.fit-status.fit-ok::before { background: var(--green); }
.fit-status.fit-slight { background: var(--amber-soft); color: #8c6019; }
.fit-status.fit-slight::before { background: #c38a29; }
.fit-status.fit-significant { background: var(--red-soft); color: #9e423c; }
.fit-status.fit-significant::before { background: var(--red); }

/* Template library */

.template-dialog {
  width: min(1050px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.template-dialog::backdrop {
  background: rgba(16, 27, 24, 0.58);
  backdrop-filter: blur(4px);
}

.template-dialog-panel {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 18px;
  background: #f7f8f5;
}

.template-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 27px 20px;
  background: var(--surface);
}

.template-dialog-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.template-dialog-header p:last-child {
  max-width: 690px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.template-dialog-close {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.template-dialog-close:hover {
  color: var(--ink);
}

.template-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.template-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.template-card:hover {
  border-color: #aebbb6;
  box-shadow: 0 12px 30px rgba(25, 38, 34, 0.11);
  transform: translateY(-2px);
}

.template-card:focus-visible {
  outline: 3px solid rgba(44, 103, 204, 0.2);
  outline-offset: 2px;
}

.template-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(23, 107, 91, 0.12), var(--shadow-sm);
}

.template-preview-stage {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e9ece7;
}

.template-preview-page {
  position: absolute !important;
  top: 9px;
  left: 50%;
  width: 816px !important;
  min-height: 1056px !important;
  margin-left: -408px;
  box-shadow: 0 12px 32px rgba(21, 34, 30, 0.18);
  pointer-events: none;
  transform: scale(0.205);
  transform-origin: top center;
  user-select: none;
}

.template-card-heading,
.template-card-best-for,
.template-card-description,
.template-card-selection {
  margin-right: 16px;
  margin-left: 16px;
}

.template-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.template-card-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
}

.template-card-badge {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.template-card-best-for {
  margin-top: 7px;
  color: #44514d;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.4;
}

.template-card-description {
  flex: 1;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.template-card-selection {
  margin-top: 14px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 780;
}

.template-card.is-selected .template-card-selection::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
  vertical-align: 1px;
}

.template-dialog-footer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 13px 27px 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.template-dialog-footer strong {
  color: var(--ink);
}

/* AI editor */

.ai-editor {
  margin-top: 10px;
  border: 1px solid #d9e5e0;
  border-radius: 14px;
  background: linear-gradient(115deg, #f3f8f5 0%, #f7f6fb 100%);
  overflow: hidden;
}

.ai-editor > summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

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

.ai-editor > summary:hover {
  background: rgba(255, 255, 255, 0.34);
}

.ai-summary-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 107, 91, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand);
  font-size: 17px;
}

.ai-summary-copy {
  display: grid;
  gap: 3px;
}

.ai-summary-copy strong {
  font-size: 12px;
  font-weight: 750;
}

.ai-summary-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 450;
  line-height: 1.35;
}

.ai-summary-action {
  margin-left: auto;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.ai-summary-action::after {
  display: inline-block;
  margin-left: 7px;
  content: "↓";
  transition: transform 150ms ease;
}

.ai-editor[open] .ai-summary-action::after {
  transform: rotate(180deg);
}

.ai-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(205, 216, 211, 0.8);
  padding: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.ai-editor-body.has-review {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
}

.ai-editor-input > label {
  display: block;
  margin-bottom: 7px;
  color: #3b4944;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ai-editor textarea,
.form-field textarea {
  resize: vertical;
}

.ai-editor textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.ai-editor textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-box input:focus {
  border-color: rgba(23, 107, 91, 0.65);
  outline: 3px solid rgba(23, 107, 91, 0.11);
}

.ai-editor-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 9px;
}

.ai-status {
  color: var(--muted);
  font-size: 10px;
}

.ai-status.status-ready { color: var(--green); }
.ai-status.status-error { color: var(--red); }

.ai-privacy-note {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.45;
}

.ai-review {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ai-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ai-review-eyebrow {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-review h2 {
  margin: 2px 0 0;
  font-size: 15px;
}

.ai-review h3 {
  margin: 11px 0 5px;
  color: #55615e;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-rationale {
  margin: 8px 0;
  color: #4f5d58;
  font-size: 11px;
  line-height: 1.45;
}

.ai-fit-estimate {
  margin: 8px 0;
  border-radius: 7px;
  padding: 7px 9px;
  background: var(--green-soft);
  color: #1c744c;
  font-size: 10px;
  font-weight: 680;
}

.ai-fit-estimate.still-overflows {
  background: var(--amber-soft);
  color: var(--amber);
}

.ai-change-list,
.ai-warning-box ul {
  margin: 0 0 11px;
  padding-left: 17px;
  color: #46534f;
  font-size: 10px;
  line-height: 1.45;
}

.ai-warning-box {
  margin: 9px 0 11px;
  border-left: 3px solid #d19b3b;
  padding: 2px 0 2px 9px;
  background: #fdf9ef;
}

.density-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  border: 1px solid #eadcb8;
  border-radius: 9px;
  padding: 9px 12px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10px;
}

.density-warning button {
  border: 1px solid #d9b86e;
  border-radius: 7px;
  padding: 5px 9px;
  background: #fffaf0;
  color: #795012;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.preview-label {
  display: flex;
  justify-content: space-between;
  max-width: 1440px;
  margin: 23px auto 0;
  padding: 0 44px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-label span:last-child {
  font-weight: 550;
  letter-spacing: normal;
  text-transform: none;
}

.page-wrapper {
  display: flex;
  justify-content: center;
  padding: 15px 36px 80px;
  overflow-x: auto;
}

.resume-page {
  flex-shrink: 0;
  box-shadow: 0 3px 5px rgba(20, 32, 28, 0.05), 0 22px 60px rgba(20, 32, 28, 0.13);
}

/* Editable resume affordances */

.resume-page [data-edit-path] {
  min-width: 0.35em;
  border-radius: 2px;
  cursor: text;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition: background-color 120ms ease, outline-color 120ms ease;
}

.resume-page [data-edit-path]:hover {
  background: rgba(23, 107, 91, 0.07);
  outline-color: rgba(23, 107, 91, 0.24);
}

.resume-page [data-edit-path]:focus {
  background: rgba(23, 107, 91, 0.1);
  outline: 2px solid rgba(23, 107, 91, 0.62);
}

.resume-page [data-edit-path]:empty::before {
  color: #88938f;
  content: attr(data-edit-placeholder);
  font-style: italic;
}

.resume-page .removable-line {
  position: relative;
}

.resume-page .line-delete-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 20px;
  border: 1px solid #d8a39f;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: #ad2f26;
  cursor: pointer;
  font: 700 15px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.14);
  transform: translateY(-50%);
  transition: opacity 100ms ease, background-color 100ms ease;
}

.resume-page .removable-line:hover > .line-delete-button,
.resume-page .removable-line:focus-within > .line-delete-button,
.resume-page .line-delete-button:focus {
  opacity: 1;
  pointer-events: auto;
}

.resume-page .line-delete-button:hover,
.resume-page .line-delete-button:focus {
  border-color: #b73a31;
  background: #fff0ef;
  outline: 2px solid rgba(183, 58, 49, 0.22);
  outline-offset: 1px;
}

.resume-page .skill-tags .line-delete-button,
.resume-page .cert-list .line-delete-button {
  top: -7px;
  right: -7px;
  width: 17px;
  height: 17px;
  font-size: 13px;
  line-height: 15px;
  transform: none;
}

.resume-page.show-boundaries {
  outline: 1.5px dashed var(--blue);
  outline-offset: 2px;
}

.resume-page.highlight-overflow::before {
  position: absolute;
  top: 11in;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(178, 74, 68, 0.06);
  content: "";
  pointer-events: none;
}

.resume-page.highlight-overflow::after {
  position: absolute;
  top: 11in;
  right: 0;
  left: 0;
  border-top: 2px dashed var(--red);
  padding-top: 3px;
  color: var(--red);
  content: "Page 1 ends here (11in)";
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

/* Dashboard */

.dashboard-view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px 80px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
  min-height: 260px;
  align-items: center;
  gap: 48px;
  border-radius: 22px;
  padding: 38px 42px;
  background:
    radial-gradient(circle at 86% 18%, rgba(142, 209, 183, 0.18), transparent 25%),
    radial-gradient(circle at 67% 120%, rgba(110, 179, 151, 0.14), transparent 34%),
    linear-gradient(135deg, #102e29 0%, #153e36 58%, #17483e 100%);
  color: #fff;
  box-shadow: 0 22px 54px rgba(16, 46, 41, 0.18);
  overflow: hidden;
}

.dashboard-hero::before,
.dashboard-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.dashboard-hero::before {
  top: -150px;
  right: -70px;
  width: 380px;
  height: 380px;
}

.dashboard-hero::after {
  right: 110px;
  bottom: -210px;
  width: 360px;
  height: 360px;
}

.dashboard-hero-copy,
.dashboard-readiness-card {
  position: relative;
  z-index: 1;
}

.dashboard-hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #9ed2bf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-hero-kicker span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

.dashboard-hero h2 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.dashboard-hero-copy > p:not(.dashboard-hero-kicker) {
  max-width: 570px;
  margin: 15px 0 0;
  color: rgba(236, 247, 243, 0.72);
  font-size: 12px;
  line-height: 1.65;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.dashboard-hero .button {
  min-height: 41px;
  border-radius: 10px;
  padding: 9px 15px;
}

.dashboard-light-button {
  gap: 18px;
  border-color: #f3faf7;
  background: #f3faf7;
  color: #143d35;
}

.dashboard-light-button:hover {
  border-color: #fff;
  background: #fff;
}

.dashboard-ghost-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ecf7f3;
}

.dashboard-ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.dashboard-readiness-card {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 35px rgba(5, 25, 21, 0.16);
  backdrop-filter: blur(14px);
}

.dashboard-readiness-ring {
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#9fd7c2 calc(var(--readiness) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.dashboard-readiness-ring::before {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a453d;
  content: "";
}

.dashboard-readiness-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.dashboard-readiness-ring strong,
.dashboard-readiness-ring span,
.dashboard-readiness-copy span,
.dashboard-readiness-copy strong,
.dashboard-readiness-copy small {
  display: block;
}

.dashboard-readiness-ring strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.dashboard-readiness-ring span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-readiness-copy span {
  color: #9fd2bf;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-readiness-copy strong {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
}

.dashboard-readiness-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  line-height: 1.45;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.dashboard-stat-card {
  display: flex;
  min-height: 117px;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-stat-card:hover {
  border-color: #d0d8d4;
  box-shadow: 0 12px 28px rgba(25, 38, 34, 0.08);
  transform: translateY(-1px);
}

.dashboard-stat-icon {
  position: relative;
  display: block;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.dashboard-stat-icon::before,
.dashboard-stat-icon::after {
  position: absolute;
  content: "";
}

.stat-icon-briefcase::before {
  top: 12px;
  left: 9px;
  width: 15px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.stat-icon-briefcase::after {
  top: 9px;
  left: 14px;
  width: 6px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.stat-icon-pulse {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-icon-pulse::before {
  top: 17px;
  left: 8px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  clip-path: polygon(0 40%, 25% 40%, 38% 0, 54% 100%, 68% 40%, 100% 40%, 100% 60%, 72% 60%, 54% 100%, 38% 35%, 29% 60%, 0 60%);
}

.stat-icon-calendar {
  background: var(--violet-soft);
  color: var(--violet);
}

.stat-icon-calendar::before {
  top: 9px;
  left: 9px;
  width: 15px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.stat-icon-calendar::after {
  top: 14px;
  left: 10px;
  width: 15px;
  height: 1.5px;
  background: currentColor;
}

.stat-icon-document {
  background: var(--amber-soft);
  color: var(--amber);
}

.stat-icon-document::before {
  top: 8px;
  left: 11px;
  width: 13px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.stat-icon-document::after {
  top: 14px;
  left: 14px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.dashboard-stat-card > div > span,
.dashboard-stat-card > div > strong,
.dashboard-stat-card > div > small {
  display: block;
}

.dashboard-stat-card > div > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-stat-card > div > strong {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dashboard-stat-card > div > small {
  color: var(--subtle);
  font-size: 8px;
  line-height: 1.35;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(315px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-pipeline-panel {
  grid-row: span 2;
  min-height: 430px;
}

.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-panel-eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-panel-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.dashboard-text-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  padding: 6px 8px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 9px;
  font-weight: 720;
}

.dashboard-text-button:hover {
  background: var(--brand-soft);
}

.dashboard-application-list {
  display: grid;
  gap: 3px;
  margin-top: 16px;
}

.dashboard-application-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(100px, 0.55fr) minmax(85px, 0.45fr) 18px;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 0;
  border-top: 1px solid #edf0ee;
  padding: 14px 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease;
}

.dashboard-application-row:first-child {
  border-top: 0;
}

.dashboard-application-row:hover {
  border-radius: 10px;
  background: #f8faf8;
}

.dashboard-application-opportunity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.dashboard-company-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #edf2f0;
  color: #53635e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.dashboard-company-avatar.tone-1 { background: var(--blue-soft); color: var(--blue); }
.dashboard-company-avatar.tone-2 { background: var(--violet-soft); color: var(--violet); }
.dashboard-company-avatar.tone-3 { background: var(--amber-soft); color: var(--amber); }

.dashboard-application-opportunity > span:last-child {
  min-width: 0;
}

.dashboard-application-opportunity strong,
.dashboard-application-opportunity small,
.dashboard-application-date strong,
.dashboard-application-date small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-application-opportunity strong {
  font-size: 10px;
  font-weight: 730;
}

.dashboard-application-opportunity small,
.dashboard-application-date small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 8px;
}

.dashboard-application-date strong {
  color: var(--muted);
  font-size: 9px;
  font-weight: 630;
}

.dashboard-status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0f2f1;
  color: #596560;
  font-size: 8px;
  font-weight: 720;
}

.dashboard-status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.dashboard-status-pill.status-applied { background: var(--blue-soft); color: var(--blue); }
.dashboard-status-pill.status-interview { background: var(--violet-soft); color: var(--violet); }
.dashboard-status-pill.status-offer { background: var(--green-soft); color: var(--green); }
.dashboard-status-pill.status-rejected { background: var(--red-soft); color: var(--red); }

.dashboard-row-arrow {
  color: #aab2af;
  font-size: 13px;
}

.dashboard-pipeline-empty {
  display: grid;
  min-height: 316px;
  place-items: center;
  border: 1px dashed #dce3df;
  border-radius: 13px;
  padding: 35px;
  background: #fafbf9;
  text-align: center;
}

.dashboard-empty-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  border-radius: 16px;
  background: var(--brand-soft);
}

.dashboard-empty-icon::before {
  position: absolute;
  top: 18px;
  left: 15px;
  width: 22px;
  height: 17px;
  border: 1.7px solid var(--brand);
  border-radius: 4px;
  content: "";
}

.dashboard-empty-icon::after {
  position: absolute;
  top: 14px;
  left: 22px;
  width: 8px;
  height: 5px;
  border: 1.7px solid var(--brand);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  content: "";
}

.dashboard-pipeline-empty h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.dashboard-pipeline-empty p {
  max-width: 330px;
  margin: 8px auto 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.dashboard-pipeline-empty .button {
  justify-self: center;
}

.dashboard-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 750;
}

.dashboard-ready-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-resume-preview {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 17px 0 15px;
  border-radius: 12px;
  padding: 13px;
  background: #f5f7f4;
}

.dashboard-resume-paper {
  width: 73px;
  height: 94px;
  flex: 0 0 auto;
  border: 1px solid #dce2df;
  border-radius: 3px;
  padding: 10px 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(25, 38, 34, 0.08);
}

.dashboard-resume-paper span {
  display: block;
  border-radius: 2px;
  background: #d9dfdc;
}

.dashboard-resume-paper .paper-name {
  width: 36px;
  height: 4px;
  background: #204f45;
}

.dashboard-resume-paper .paper-meta {
  width: 49px;
  height: 2px;
  margin-top: 4px;
  background: #aeb9b5;
}

.dashboard-resume-paper .paper-heading {
  width: 20px;
  height: 3px;
  margin-top: 10px;
  background: #4c776d;
}

.dashboard-resume-paper .paper-heading.second {
  margin-top: 8px;
}

.dashboard-resume-paper .paper-line {
  width: 42px;
  height: 2px;
  margin-top: 4px;
  background: #d6dcda;
}

.dashboard-resume-paper .paper-line.wide { width: 53px; }
.dashboard-resume-paper .paper-line.short { width: 30px; }

.dashboard-resume-details {
  min-width: 0;
}

.dashboard-resume-details > span {
  display: block;
  color: var(--subtle);
  font-size: 8px;
}

.dashboard-resume-details > strong {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 720;
}

.dashboard-checklist {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.dashboard-checklist span {
  color: var(--muted);
  font-size: 8px;
}

.dashboard-checklist i {
  display: inline-grid;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 7px;
  font-style: normal;
}

.dashboard-outline-button {
  width: 100%;
  border-color: #bfd1ca;
  background: #fff;
  color: var(--brand);
}

.dashboard-outline-button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dashboard-focus-panel {
  grid-column: 2;
}

.dashboard-focus-count {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
}

.dashboard-focus-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 15px;
}

.dashboard-focus-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px;
  background: #fbfcfa;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.dashboard-focus-list button:hover {
  border-color: #c9d7d2;
  background: #f7faf8;
}

.focus-check {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
}

.focus-check::before {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 8px;
  height: 5px;
  border-bottom: 1.6px solid var(--brand);
  border-left: 1.6px solid var(--brand);
  content: "";
  transform: rotate(-45deg);
}

.focus-check.is-accent { background: var(--violet-soft); }
.focus-check.is-accent::before { border-color: var(--violet); }
.focus-check.is-soft { background: var(--blue-soft); }
.focus-check.is-soft::before { border-color: var(--blue); }

.dashboard-focus-list strong,
.dashboard-focus-list small {
  display: block;
}

.dashboard-focus-list strong {
  font-size: 9px;
  font-weight: 720;
}

.dashboard-focus-list small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 8px;
  line-height: 1.35;
}

.dashboard-focus-list i {
  color: #9ba6a2;
  font-size: 12px;
  font-style: normal;
}

/* Application tracker */

.tracker-view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 44px 80px;
}

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat-card::after {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7b0ad;
  box-shadow: 0 0 0 5px #f0f2f1;
  content: "";
}

.stat-card.accent-blue::after { background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.stat-card.accent-violet::after { background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }
.stat-card.accent-green::after { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }

.stat-label,
.stat-helper {
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin: 10px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-helper {
  color: var(--subtle);
  font-size: 9px;
}

.tracker-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tracker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
}

.status-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.filter-chip {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 6px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.filter-chip:hover {
  background: #f4f6f4;
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.filter-chip span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(96, 109, 104, 0.09);
  font-size: 8px;
}

.filter-chip.is-active span {
  background: rgba(23, 107, 91, 0.11);
}

.search-box {
  position: relative;
  display: block;
  width: min(240px, 28vw);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px 7px 31px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 10px;
}

.search-box input::placeholder {
  color: #9ba4a1;
}

.search-icon {
  position: absolute;
  top: 9px;
  left: 11px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1.5px solid #7e8985;
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: #7e8985;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

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

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

.applications-table th,
.applications-table td {
  border-bottom: 1px solid #edf0ee;
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.applications-table th {
  background: #fafbf9;
  color: #7a8682;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.applications-table th:nth-child(1) { width: 29%; }
.applications-table th:nth-child(2) { width: 13%; }
.applications-table th:nth-child(3) { width: 12%; }
.applications-table th:nth-child(4) { width: 20%; }
.applications-table th:nth-child(5) { width: 18%; }
.applications-table th:last-child { width: 48px; }

.applications-table tbody tr {
  transition: background-color 120ms ease;
}

.applications-table tbody tr:hover {
  background: #fbfcfa;
}

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

.opportunity-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.company-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.company-avatar.tone-1 { background: var(--blue-soft); color: #305da9; }
.company-avatar.tone-2 { background: var(--violet-soft); color: #6b50b5; }
.company-avatar.tone-3 { background: var(--amber-soft); color: #8b601c; }

.opportunity-copy {
  min-width: 0;
}

.role-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.role-line strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-link {
  color: var(--subtle);
  font-size: 10px;
  text-decoration: none;
}

.job-link:hover { color: var(--brand); }

.company-line {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-status-select {
  min-height: 28px;
  max-width: 105px;
  border: 0;
  border-radius: 999px;
  padding: 5px 24px 5px 9px;
  color: #53615c;
  cursor: pointer;
  font-size: 9px;
  font-weight: 720;
}

.application-status-select.status-interested,
.application-status-select.status-withdrawn { background: #eff2f0; color: #5e6965; }
.application-status-select.status-applied { background: var(--blue-soft); color: #305da9; }
.application-status-select.status-interview { background: var(--violet-soft); color: #6b50b5; }
.application-status-select.status-offer { background: var(--green-soft); color: #1c744c; }
.application-status-select.status-rejected { background: var(--red-soft); color: #9e423c; }

.muted-cell {
  color: var(--muted);
  font-size: 9px;
}

.next-step,
.next-step-date {
  display: block;
}

.next-step {
  max-width: 190px;
  overflow: hidden;
  color: #3f4c48;
  font-size: 10px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-step.empty {
  color: var(--subtle);
  font-weight: 450;
}

.next-step-date {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 8px;
}

.next-step-date.due-soon { color: var(--amber); font-weight: 700; }
.next-step-date.overdue { color: var(--red); font-weight: 700; }

.resume-link {
  display: block;
  max-width: 155px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 9px;
  font-weight: 670;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-link:hover { text-decoration: underline; }

.row-actions {
  text-align: right !important;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.icon-button:hover {
  background: #f1f4f1;
  color: var(--ink);
}

.row-edit {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.applications-empty {
  display: grid;
  min-height: 390px;
  place-items: center;
  align-content: center;
  padding: 50px 20px;
  text-align: center;
}

.applications-empty.compact {
  min-height: 260px;
}

.applications-empty h2 {
  margin: 16px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.applications-empty p {
  max-width: 390px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.empty-illustration {
  position: relative;
  width: 66px;
  height: 54px;
  border: 1px solid #cad9d3;
  border-radius: 12px;
  background: linear-gradient(145deg, #f5faf7, #edf5f1);
  box-shadow: 10px 9px 0 -4px #f0f4f1, 10px 9px 0 -3px #dce5e1;
  transform: rotate(-2deg);
}

.empty-illustration::before {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: var(--brand-soft);
  content: "";
}

.empty-illustration span {
  position: absolute;
  right: 11px;
  height: 3px;
  border-radius: 3px;
  background: #b9cbc4;
}

.empty-illustration span:nth-child(1) { top: 14px; width: 21px; }
.empty-illustration span:nth-child(2) { top: 22px; width: 17px; }
.empty-illustration span:nth-child(3) { bottom: 11px; left: 12px; width: 41px; }

/* Application dialog */

.application-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(18, 30, 26, 0.28);
}

.application-dialog::backdrop {
  background: rgba(17, 28, 25, 0.42);
  backdrop-filter: blur(3px);
}

.application-dialog form {
  padding: 22px;
}

.version-history-dialog {
  width: min(620px, calc(100% - 32px));
}

.version-history-panel {
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 18px;
  background: var(--surface);
  padding: 24px;
}

.version-history-status {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.version-history-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.version-history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface-soft);
}

.version-history-list li > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.version-history-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-history-list span {
  color: var(--muted);
  font-size: 12px;
}

.profile-onboarding-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(920px, calc(100dvh - 32px));
  overflow: hidden;
}

.profile-onboarding-dialog form {
  max-height: min(920px, calc(100dvh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile-onboarding-intro {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.profile-onboarding-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.profile-onboarding-progress span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  padding: 0 2px 10px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 720;
}

.profile-onboarding-progress i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eef1ef;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.profile-onboarding-progress span.is-active,
.profile-onboarding-progress span.is-complete {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.profile-onboarding-progress span.is-active i,
.profile-onboarding-progress span.is-complete i {
  background: var(--brand);
  color: #fff;
}

.profile-step-copy {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.profile-section {
  position: relative;
  min-width: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: var(--surface-soft);
}

.profile-section > legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.profile-section > legend span {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 650;
}

.profile-add-experience {
  position: absolute;
  top: 11px;
  right: 14px;
}

.profile-section-help {
  max-width: calc(100% - 150px);
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.profile-experience-list {
  display: grid;
  gap: 11px;
}

.profile-experience-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface);
}

.profile-experience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-experience-heading h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 780;
}

.profile-experience-heading .button {
  min-height: 31px;
  padding: 6px 9px;
  font-size: 9px;
}

.profile-empty-state {
  margin: 12px 0 0;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  padding: 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.profile-onboarding-dialog .form-field > small {
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.4;
}

.profile-onboarding-status {
  min-height: 17px;
  margin: 0;
  color: var(--red);
  font-size: 10px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

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

.form-field > span {
  color: #53605c;
  font-size: 10px;
  font-weight: 720;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fcfdfb;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.form-field textarea {
  min-height: 84px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a2aba8;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.dialog-spacer {
  flex: 1;
}

.app-toast {
  position: fixed;
  right: 22px;
  bottom: 70px;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 13px;
  background: #1e2b27;
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 10px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Account settings */

.settings-view {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 44px 72px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 760px);
  align-items: start;
  gap: 24px;
}

.settings-nav-card,
.settings-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.settings-nav-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  border-radius: 14px;
}

.settings-account-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  background: var(--surface-soft);
}

.settings-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, #d7eee6, #edf5f1);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 850;
}

.settings-account-summary div {
  min-width: 0;
}

.settings-account-summary strong,
.settings-account-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-account-summary strong {
  font-size: 11px;
}

.settings-account-summary span {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 9px;
}

.settings-nav-card nav {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.settings-nav-card nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 9px 10px;
  color: #596661;
  font-size: 10px;
  font-weight: 680;
  text-decoration: none;
}

.settings-nav-card nav a:hover,
.settings-nav-card nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.settings-mini-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1.4px solid currentColor;
  border-radius: 4px;
}

.settings-mini-icon.profile::before {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 4px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.settings-mini-icon.profile::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 4px;
  border: 1.2px solid currentColor;
  border-radius: 5px 5px 2px 2px;
  content: "";
}

.settings-mini-icon.security::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 5px;
  border: 1.3px solid currentColor;
  border-radius: 5px 5px 0 0;
  content: "";
}

.settings-mini-icon.notifications::before {
  position: absolute;
  inset: 3px 4px;
  border-radius: 6px 6px 2px 2px;
  background: currentColor;
  content: "";
}

.settings-mini-icon.data::before,
.settings-mini-icon.data::after {
  position: absolute;
  right: 3px;
  left: 3px;
  height: 1.3px;
  background: currentColor;
  content: "";
}

.settings-mini-icon.data::before { top: 4px; }
.settings-mini-icon.data::after { bottom: 4px; }

.settings-plan {
  margin: 4px 10px 10px;
  border: 1px solid #dce8e3;
  border-radius: 9px;
  padding: 11px;
  background: #f4f9f6;
}

.settings-plan span,
.settings-plan strong,
.settings-plan small {
  display: block;
}

.settings-plan span {
  color: var(--brand);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-plan strong {
  margin-top: 5px;
  font-size: 10px;
}

.settings-plan small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.settings-content {
  display: grid;
  gap: 18px;
}

.settings-card {
  scroll-margin-top: 22px;
  border-radius: 14px;
  padding: 23px;
}

.settings-card:focus {
  outline: none;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.settings-card-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.settings-card-header p,
.settings-section-copy p,
.settings-avatar-row p,
.settings-action-row p,
.settings-danger-zone p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.settings-status-badge {
  flex: 0 0 auto;
  border: 1px solid #cfe5da;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-form {
  display: grid;
  max-width: 540px;
  gap: 15px;
}

.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.settings-profile-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.settings-avatar-row strong,
.settings-section-copy h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 760;
}

.settings-field {
  display: grid;
  gap: 6px;
}

.settings-field > span {
  color: #53605c;
  font-size: 10px;
  font-weight: 720;
}

.settings-field input {
  width: 100%;
  min-height: 41px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fcfdfb;
  color: var(--ink);
  font-size: 11px;
}

.settings-field input[readonly] {
  background: #f4f6f3;
  color: #64706c;
}

.settings-field small,
.settings-action-row small,
.settings-toggle-row small {
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.45;
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-form-status {
  min-height: 14px;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.settings-form-status[data-tone="success"] { color: var(--green); }
.settings-form-status[data-tone="error"] { color: var(--red); }

.settings-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.settings-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6d7af;
  border-radius: 9px;
  padding: 10px 11px;
  background: #fffaf0;
  color: var(--amber);
}

.settings-notice > span {
  font-size: 15px;
}

.settings-notice div {
  min-width: 0;
  flex: 1;
}

.settings-notice strong,
.settings-notice p {
  display: block;
  margin: 0;
  font-size: 9px;
}

.settings-notice p {
  margin-top: 2px;
  color: #776646;
}

.settings-text-button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #765d24;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.settings-action-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.settings-card-header + .settings-action-row {
  border-top: 0;
  padding-top: 0;
}

.settings-action-row strong,
.settings-toggle-row strong,
.settings-danger-zone strong {
  display: block;
  font-size: 10px;
  font-weight: 760;
}

.settings-action-row small {
  display: block;
  margin-top: 3px;
}

.settings-action-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.settings-action-icon.lock::before {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 12px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 0 0;
  content: "";
}

.settings-action-icon.lock::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 13px;
  border-radius: 3px;
  background: currentColor;
  content: "";
}

.settings-action-icon.sessions::before,
.settings-action-icon.download::before {
  position: absolute;
  inset: 9px 7px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.settings-action-icon.sessions::after {
  position: absolute;
  bottom: 6px;
  left: 14px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.settings-action-icon.download::after {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 6px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.settings-action-status {
  margin: -11px 0 2px 50px;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  cursor: pointer;
}

.settings-card-header + form .settings-toggle-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.settings-toggle-row small {
  display: block;
  margin-top: 4px;
}

.settings-toggle-row input {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #d5dbd8;
  cursor: pointer;
  appearance: none;
  transition: background-color 140ms ease;
}

.settings-toggle-row input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 32, 28, 0.2);
  content: "";
  transition: transform 140ms ease;
}

.settings-toggle-row input:checked {
  background: var(--brand);
}

.settings-toggle-row input:checked::after {
  transform: translateX(16px);
}

.settings-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  border: 1px solid #edd2ce;
  border-radius: 10px;
  padding: 15px;
  background: #fff9f8;
}

.settings-danger-zone strong {
  color: #842f2b;
}

.delete-account-dialog {
  width: min(520px, calc(100vw - 32px));
}

.delete-account-copy {
  max-width: 400px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.danger-eyebrow { color: var(--red); }

.danger-primary,
.danger-primary:hover {
  background: #9e3f39;
  color: #fff;
}

/* Public beta feedback */

.beta-feedback-button {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 24;
  min-height: 35px;
  border: 1px solid rgba(23, 107, 91, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.beta-feedback-button:hover {
  background: var(--brand-soft);
}

.beta-feedback-dialog {
  width: min(510px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(18, 30, 26, 0.28);
}

.beta-feedback-dialog::backdrop {
  background: rgba(17, 28, 25, 0.42);
  backdrop-filter: blur(3px);
}

.beta-feedback-dialog form {
  padding: 22px;
}

.beta-feedback-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.beta-feedback-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.beta-feedback-intro {
  margin: 9px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.beta-rating {
  display: flex;
  gap: 7px;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}

.beta-rating legend {
  width: 100%;
  margin-bottom: 7px;
  color: #53605c;
  font-size: 10px;
  font-weight: 720;
}

.beta-rating label {
  cursor: pointer;
}

.beta-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.beta-rating span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.beta-rating input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.beta-rating input:focus-visible + span {
  outline: 3px solid rgba(44, 103, 204, 0.2);
  outline-offset: 2px;
}

.beta-feedback-status {
  min-height: 16px;
  margin: 9px 0 0;
  color: var(--brand);
  font-size: 10px;
}

@media (max-width: 1320px) {
  .control-grid {
    flex-wrap: wrap;
  }

  .control-actions {
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .workspace-header,
  .resume-controls,
  .preview-label,
  .dashboard-view,
  .tracker-view,
  .settings-view {
    padding-right: 26px;
    padding-left: 26px;
  }

  .beta-data-banner {
    width: calc(100% - 52px);
  }

  .control-grid {
    flex-wrap: wrap;
  }

  .control-actions {
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .tracker-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .dashboard-hero {
    gap: 28px;
    padding: 32px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .settings-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand > span:last-child,
  .sidebar-footer {
    display: none;
  }

  .primary-nav {
    display: flex;
    gap: 4px;
    margin: 0;
  }

  .nav-item {
    width: auto;
    padding: 8px 10px;
  }

  .nav-item.is-active::before {
    top: auto;
    right: 10px;
    bottom: -10px;
    left: 10px;
    width: auto;
    height: 2px;
    border-radius: 2px 2px 0 0;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 25px;
  }

  .workspace-actions {
    width: 100%;
    justify-content: space-between;
  }

  .tracker-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .dashboard-pipeline-panel {
    grid-row: auto;
    min-height: 0;
  }

  .dashboard-focus-panel {
    grid-column: auto;
  }

  .applications-table th:nth-child(3),
  .applications-table td:nth-child(3),
  .applications-table th:nth-child(5),
  .applications-table td:nth-child(5) {
    display: none;
  }

  .applications-table th:nth-child(1) { width: 36%; }
  .applications-table th:nth-child(2) { width: 18%; }
  .applications-table th:nth-child(4) { width: auto; }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav-card {
    position: static;
  }

  .settings-nav-card nav {
    display: flex;
    overflow-x: auto;
  }

  .settings-nav-card nav a {
    flex: 0 0 auto;
  }

  .settings-plan {
    display: none;
  }
}

@media (max-width: 620px) {
  .sidebar {
    justify-content: space-between;
  }

  .brand {
    padding: 0;
  }

  .nav-icon {
    display: none;
  }

  .nav-item {
    gap: 6px;
    font-size: 11px;
  }

  .workspace-header,
  .resume-controls,
  .preview-label,
  .dashboard-view,
  .tracker-view,
  .settings-view {
    padding-right: 16px;
    padding-left: 16px;
  }

  .beta-data-banner {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
  }

  .beta-data-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-header {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .workspace-header h1 {
    font-size: 27px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    border-radius: 18px;
    padding: 28px 24px;
  }

  .dashboard-hero h2 {
    font-size: 36px;
  }

  .dashboard-readiness-card {
    max-width: 340px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-application-row {
    grid-template-columns: minmax(0, 1fr) auto 16px;
  }

  .dashboard-application-date {
    display: none;
  }

  .header-status {
    align-items: flex-start;
    justify-items: start;
  }

  .workspace-actions .button.primary {
    margin-left: auto;
  }

  .resume-import-main,
  .resume-import-review {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-import-main {
    padding: 14px;
  }

  .resume-import-icon {
    display: none;
  }

  .resume-import-actions {
    width: 100%;
    justify-items: stretch;
    margin-left: 0;
  }

  .resume-import-actions > span {
    text-align: center;
  }

  .resume-import-review-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .control-grid {
    align-items: stretch;
  }

  .field-control,
  .field-control select,
  .template-picker-button {
    width: 100%;
  }

  .field-control select,
  .field-control:first-child select {
    min-width: 0;
  }

  .density-meta {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

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

  .template-card {
    display: flex;
  }

  .template-preview-stage {
    height: 215px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .ai-editor > summary {
    align-items: flex-start;
  }

  .ai-summary-copy small {
    display: none;
  }

  .ai-summary-action {
    font-size: 0;
  }

  .ai-summary-action::after {
    font-size: 12px;
  }

  .ai-editor-body,
  .ai-editor-body.has-review {
    grid-template-columns: 1fr;
  }

  .preview-label span:last-child {
    display: none;
  }

  .page-wrapper {
    justify-content: flex-start;
    padding-right: 16px;
    padding-left: 16px;
  }

  .tracker-view {
    padding-bottom: 50px;
  }

  .tracker-stats {
    gap: 8px;
  }

  .stat-card {
    min-height: 108px;
    padding: 14px;
  }

  .stat-card strong {
    font-size: 27px;
  }

  .stat-helper {
    font-size: 8px;
  }

  .tracker-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .tracker-toolbar {
    position: sticky;
    top: 55px;
    z-index: 10;
    margin: 0 -16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 16px;
    background: rgba(245, 246, 242, 0.94);
    backdrop-filter: blur(14px);
  }

  .status-filters {
    margin-right: -16px;
    padding-right: 16px;
  }

  .applications-table-wrap {
    overflow: visible;
  }

  .applications-table,
  .applications-table tbody,
  .applications-table tr,
  .applications-table td {
    display: block;
    width: 100%;
  }

  .applications-table thead {
    display: none;
  }

  .applications-table tbody {
    display: grid;
    gap: 9px;
    margin-top: 12px;
  }

  .applications-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .applications-table td,
  .applications-table td:nth-child(3),
  .applications-table td:nth-child(5) {
    display: block;
    border: 0;
    padding: 0;
  }

  .applications-table td:first-child {
    grid-column: 1 / -1;
    padding-right: 30px;
  }

  .applications-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--subtle);
    content: attr(data-label);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .applications-table td:first-child::before,
  .applications-table .row-actions::before {
    display: none;
  }

  .row-actions {
    position: absolute;
    top: 10px;
    right: 8px;
    width: auto !important;
  }

  .next-step {
    max-width: 100%;
  }

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

  .form-field.full {
    grid-column: auto;
  }

  .application-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .profile-onboarding-dialog form {
    max-height: calc(100dvh - 20px);
  }

  .profile-section {
    padding: 14px;
  }

  .profile-add-experience {
    position: static;
    margin: 4px 0 11px;
  }

  .profile-section-help {
    max-width: none;
  }

  .application-dialog form {
    padding: 17px;
  }

  .dialog-actions {
    flex-wrap: wrap;
  }

  .dialog-actions .dialog-spacer {
    display: none;
  }

  #application-delete {
    margin-right: auto;
  }

  .settings-account-summary {
    display: none;
  }

  .settings-nav-card nav {
    padding: 7px;
  }

  .settings-card {
    padding: 18px;
  }

  .settings-card-header {
    margin-bottom: 19px;
  }

  .settings-status-badge {
    display: none;
  }

  .settings-action-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .settings-action-row .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .settings-action-status {
    margin-left: 0;
  }

  .settings-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
