/* ============================================================================
 *  dashboard.css  -  Consolidated stylesheet for the entire dashboard area.
 *  Sections (in cascade order):
 *    1. COMMON / SHARED          - applies to every dashboard page
 *    2. DASHBOARD             - only used on dashboard/dashboard.html
 *    3. JOB SEARCH            - only used on dashboard/job-search.html
 *    4. SAVED JOBS            - only used on dashboard/saved-jobs.html
 *    5. PREFERENCES           - only used on dashboard/preferences.html
 *    6. APPLICATION KITS      - application-kits.html (incl. create-kit modal)
 *    7. RESUMES               - only used on dashboard/resumes.html
 *    8. COVER LETTERS         - cover-letters.html, cover-letter-editor.html
 *    9. INTERVIEW BUDDY       - only used on dashboard/interview-buddy.html
 *    10. MOCK INTERVIEWS       - only used on dashboard/mock-interviews.html
 * ============================================================================ */















/* ========================================================================== */
/* ===== COMMON / SHARED 
/* ========================================================================== */
:root {
  --bg: #ebebeb;
  --white: #ffffff;
  --border: #ececf1;
  --line: #f2f2f6;
  --text: #0f1020;
  --muted: #70738a;
  --nav-inactive: #9ea4bb;
  --purple: #6254f3;
  --purple-soft: #f3f1ff;
}

* {
  box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  /* Outer “frame”: grey (--bg) shows around the rounded sidebar + main shell */
  padding: 14px;
}

.dash-shell {
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  position: relative;
  transition: grid-template-columns 0.3s ease;
}

.dash-shell.sidebar-collapsed {
  grid-template-columns: 80px 1fr;
}

.dash-sidebar {
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  transition: width 0.3s ease;
  overflow: hidden;
}

.sidebar-collapsed .dash-sidebar {
  width: 80px;
}

.dash-logo-row {
  height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  transition: padding 0.3s ease, justify-content 0.3s ease;
}

.sidebar-collapsed .dash-logo-row {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .dash-logo {
  opacity: 0;
  max-width: 0;
  margin: 0;
  pointer-events: none;
}

.dash-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--purple);
  display: flex;
  align-items: flex-start;
  transition: opacity 0.2s ease, max-width 0.3s ease, margin 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  max-width: 150px;
}

.dash-logo::after {
  content: "✦";
  font-size: 14px;
  margin-left: 2px;
  color: #8c7bff;
}

.dash-collapse {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dash-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
  background: #ffffff;
}

.dash-group + .dash-group {
  margin-top: 24px;
}

.dash-group-title {
  margin: 0 12px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1b2f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: opacity 0.2s ease, max-height 0.3s ease, margin 0.3s ease;
  overflow: hidden;
  max-height: 20px;
}

.sidebar-collapsed .dash-collapse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text);
}

.sidebar-collapsed .dash-group-title {
  opacity: 0;
  max-height: 0;
  margin: 0 12px 0;
  pointer-events: none;
}

.dash-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #131426;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, padding 0.3s, width 0.3s, justify-content 0.3s, gap 0.3s;
  white-space: nowrap;
  overflow: hidden;
}

.dash-link span,
.dash-link i:last-child:not(:first-child) {
  transition: opacity 0.2s ease, max-width 0.3s ease, margin 0.3s ease;
  opacity: 1;
  overflow: hidden;
  max-width: 150px;
}

.dash-link span {
  flex-grow: 1;
}

.sidebar-collapsed .dash-link {
  justify-content: center;
  padding: 0;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 12px;
  gap: 0;
}

.sidebar-collapsed .dash-link span,
.sidebar-collapsed .dash-link i:last-child:not(:first-child) {
  opacity: 0;
  max-width: 0;
  margin: 0 !important;
  pointer-events: none;
}

.dash-link:hover {
  background: var(--purple-soft);
}

.dash-link i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.dash-link-active {
  background: var(--purple-soft);
  font-weight: 600;
}

.dash-user {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: padding 0.3s ease, gap 0.3s ease;
}

.dash-user-meta,
#userSortIcon {
  transition: opacity 0.2s ease, max-width 0.3s ease, margin 0.3s ease;
  opacity: 1;
  overflow: hidden;
  max-width: 180px;
}

.sidebar-collapsed .dash-user {
  justify-content: center;
  padding: 16px 0;
  gap: 0;
}

.sidebar-collapsed .dash-user-meta,
.sidebar-collapsed #userSortIcon {
  opacity: 0;
  max-width: 0;
  margin: 0 !important;
  pointer-events: none;
}

.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.dash-user-meta {
  min-width: 0;
  flex-grow: 1;
}

.dash-user-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: visible;
}

.dash-user-name-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-name span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: #eef0f4;
  color: #555a71;
  line-height: 1.4;
}

.dash-main {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  height: calc(100vh - 28px);
  overflow: hidden;
}

.dash-main-head {
  padding: 16px 16px;
}

.dash-main-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.dash-main-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mobile-top-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal-overlay.active .custom-modal-content.aa-modal {
  transform: translateY(0) scale(1);
}

@keyframes aaPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--line);
  z-index: 1000;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-shadow: none;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--nav-inactive);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s;
}

.mobile-nav-item i {
  font-size: 20px;
}

.mobile-nav-item.active {
  color: var(--purple);
}

.mobile-more-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 60px;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  flex-direction: column;
  padding-top: 32px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-more-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.more-profile-section {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.more-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef0f4;
  color: #6f7388;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.more-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #eef0f4;
  color: #1a1b2f;
  padding: 4px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.more-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #131426;
}

.more-email {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.more-links {
  display: flex;
  flex-direction: column;
}

.more-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  color: #313346;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.more-links a i {
  font-size: 18px;
  color: #313346;
  width: 24px;
  text-align: center;
}

.more-links a.active {
  background: #f4f4f7;
  color: #131426;
}

.more-links .more-link-signout,
.more-links .more-link-signout i {
  color: #dc2626;
}

.more-links .more-link-signout:hover,
.more-links .more-link-signout:active {
  background: #fef2f2;
}

@media (max-width: 900px) {
  body {
    padding: 0;
  }

  .dash-shell,
  .dash-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
    border: none;
    border-radius: 0;
    margin: 0;
    min-height: 100vh;
    padding-bottom: 70px;
    box-shadow: none;
    gap: 0;
  }

  .dash-sidebar {
    display: none;
  }

  .mobile-top-header {
    display: none;
  }

  .dash-main {
    height: calc(100vh - 70px);
    border: none;
    border-radius: 0;
  }

  .dash-main-head {
    padding: 12px 12px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .dash-page-scroll {
    padding: 0 10px 24px;
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }

  .dash-sticky-head {
    padding: 12px 10px 10px;
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }

  .search-jobs-container {
    padding: 16px 12px 14px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .mobile-bottom-nav {
    display: flex;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

/* Fixed top bar + scrollable page body (no sticky slide) */
.dash-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 28px;
}

/* Pages without a split scroll region (legacy / empty) */
.dash-main:not(:has(.dash-page-scroll)) {
  overflow-y: auto;
}

@media (max-width: 650px) {
  .dash-page-scroll {
    padding-left: calc(8px + env(safe-area-inset-left, 0px));
    padding-right: calc(8px + env(safe-area-inset-right, 0px));
  }

  .dash-sticky-head {
    padding-left: calc(8px + env(safe-area-inset-left, 0px));
    padding-right: calc(8px + env(safe-area-inset-right, 0px));
  }
  .dash-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .dash-header-left h1 {
    font-size: 20px;
    margin-bottom: 4px;
  }
  .dash-header-left p {
    font-size: 12px;
  }
  .dash-header-right {
    gap: 0;
  }
  .dash-last-updated {
    display: none;
  }
  .btn-new-search {
    padding: 8px 12px;
    font-size: 13px;
  }
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dash-stat-card {
    padding: 16px;
    gap: 12px;
  }
  .stat-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-change {
    font-size: 11px;
  }
  .dash-col {
    display: contents;
  }
  .dash-card {
    padding: 16px;
  }
  .dash-card-header {
    margin-bottom: 16px;
  }
  .dash-card-header h3 {
    font-size: 14px;
  }
  .dash-card-link {
    font-size: 12px;
  }

  .status-feed-card {
    grid-column: 1 / -1;
    order: 1;
  }
  .top-companies-card {
    grid-column: 1 / -1;
    order: 2;
  }
  .bot-control-card {
    grid-column: 1 / -1;
    order: 3;
  }
  .overview-chart-card {
    grid-column: 1 / -1;
    order: 4;
  }

  .status-item {
    gap: 12px;
  }
  .status-text {
    font-size: 13px;
  }
  .status-subtext {
    font-size: 12px;
  }

  .companies-list {
    gap: 16px;
  }
  .company-item {
    gap: 12px;
  }
  .company-logo {
    width: 24px;
    height: 24px;
  }
  .company-name {
    width: 80px;
    font-size: 14px;
  }
  .company-count {
    width: 24px;
    font-size: 13px;
  }

  .bot-control-inner {
    padding: 16px;
  }
  .bot-control-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .btn-pause-bot {
    width: 100%;
    justify-content: center;
  }
  .bot-scan-tags p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .scan-tags-list {
    margin-bottom: 16px;
  }
  .scan-tag {
    padding: 4px 8px;
    font-size: 11px;
  }
  .bot-scan-meta {
    flex-direction: column;
    gap: 12px;
  }
  .meta-item {
    gap: 2px;
  }
  .meta-item.text-right {
    text-align: left;
  }
}

.pref-tab-content {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease-out;
}

.pref-tab-content.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  --db-accent: #2347e3;
  --db-line: #ececf1;
  --db-line-2: #f2f2f6;
  --db-muted-2: #8a8fa3;
}

.dash-content-wrapper .dash-header { margin-bottom: 24px; }

.dash-content-wrapper .dash-stats-grid { margin-bottom: 24px; }

.dash-content-wrapper .dash-card-link {
  color: var(--db-accent);
}

.dash-content-wrapper .btn-new-search {
  background: var(--db-accent);
}

.dash-content-wrapper .btn-new-search:hover {
  background: #1d3bbf;
}

@media (max-width: 650px) {
  .dash-content-wrapper .dash-stats-grid { margin-bottom: 16px; }

  .dash-stats-grid .dash-stat-card { padding: 16px; }
}

.docv2-btn-new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--db-accent, #2347e3);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.docv2-btn-new:hover { background: #1d3bbf; }

.docv2-btn-new i { font-size: 12px; }

.docv2-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.docv2-tab {
  position: relative;
  background: none;
  border: none;
  padding: 10px 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #8a8fa3;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.docv2-tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
}

.docv2-tab:hover { color: #131426; }

.docv2-tab.active {
  color: var(--db-accent, #2347e3);
}

.docv2-tab.active::after { background: var(--db-accent, #2347e3); }

.docv2-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.docv2-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #e2e4eb;
  border-radius: 999px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #5b5f78;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.docv2-pill:hover { border-color: #c5cee6; color: #131426; }

.docv2-pill.active {
  background: var(--db-accent, #2347e3);
  border-color: var(--db-accent, #2347e3);
  color: #ffffff;
}

@media (max-width: 768px) {
  .docv2-btn-new {
    align-self: flex-start;
    padding: 11px 18px;
  }
  .docv2-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #ececf1;
    padding-bottom: 0;
    gap: 0;
  }
  .docv2-tab {
    flex-shrink: 0;
    padding: 10px 14px 12px;
    font-size: 13px;
  }

  .docv2-status-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .docv2-pill { flex-shrink: 0; }
}

.mobile-top-header {
  background: #ffffff;
  border-bottom: 1px solid #ececf1;
  padding: 14px 18px;
  position: relative;
  justify-content: center;
}

.mobile-brand {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--purple, #6254f3);
  display: inline-flex;
  align-items: baseline;
}

.mobile-brand sup {
  font-size: 12px;
  color: var(--purple, #6254f3);
  margin-left: 2px;
  font-weight: 700;
}

.prefv2-tabs {
  flex-wrap: wrap;
  margin-bottom: -1px;
}

.prefv2-tabs .docv2-tab i { font-size: 13px; }

.prefv2-panel { display: none; }

.prefv2-panel.active { display: block; }

@media (max-width: 768px) {
  .prefv2-tabs {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }
  .prefv2-tabs .docv2-tab {
    flex-shrink: 0;
    padding: 10px 14px 12px;
    font-size: 13px;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&display=swap');

/* Fixed page header — stays put; only .dash-page-scroll moves */
.dash-sticky-head {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background: #ffffff;
  margin-bottom: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(15, 16, 32, 0.08);
  box-shadow: none;
}

.dash-sticky-head .search-jobs-container {
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  box-shadow: none;
  background: transparent;
}

.dash-sticky-head .aa-tabs-row {
  margin-bottom: 0;
}

.dash-sticky-head--tabs {
  padding-bottom: 10px;
}

.dash-sticky-head--acct {
  padding: 0 16px 10px;
}

.dash-sticky-head--acct .acct-page-head {
  padding: 16px 0 10px;
  margin: 0;
}

.dash-sticky-head--acct .acct-tabs-wrap {
  margin-bottom: 0;
}

.job-search-page .search-jobs-container.dash-sticky-head {
  padding-bottom: 12px;
}

.job-search-page .search-jobs-container.dash-sticky-head .search-jobs-intro {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.acct-page.dash-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.acct-page .dash-page-scroll {
  padding: 0 16px 28px;
}

.search-jobs-container {
  padding: 14px 16px 12px;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  box-shadow: none;
  margin-bottom: 22px;
}

/* Saved Jobs: subtle rule under header only (no search row in this block) */
.saved-jobs-page .search-jobs-container {
  border-bottom: 1px solid rgba(15, 16, 32, 0.08);
}

.search-jobs-title {
  color: #0f1020;
  font-size: 28px;
  font-weight:605;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.search-jobs-description {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 1050px;
  font-weight: 500;
  margin-bottom: 0;
}

/* Intro copy vs keyword/location/search row (Job Search) — sole divider; none under search row */
.job-search-page .search-jobs-intro {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(15, 16, 32, 0.14);
}

.job-search-page:not(.saved-jobs-page) .search-jobs-container {
  border-bottom: none;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

@media (max-width: 650px) {
  .search-jobs-container {
    margin-bottom: 20px;
    padding: 12px 8px 10px;
    padding-left: calc(8px + env(safe-area-inset-left, 0px));
    padding-right: calc(8px + env(safe-area-inset-right, 0px));
    border-radius: 0;
  }

  .search-jobs-title {
    font-size: 26px;
  }
}

.job-search-page.dash-main {
  background-color: #ffffff;
}

.job-search-page .dash-content-wrapper {
  background-color: #ffffff;
}

.job-search-page .dash-page-scroll {
  padding-top: 8px;
}

.job-search-page .search-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 0 4px 0;
  box-sizing: border-box;
}

.job-search-page .search-btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.job-search-page .input-wrapper {
  display: flex;
  align-items: center;

  border-radius: 50px;
  padding: 12px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow:1px 1px 3px #778899;

}

.job-search-page .input-wrapper:focus-within {
 box-shadow:1px 1px 8px #778899;
}

.job-search-page .keyword-wrapper {
  flex: 3;
}

.job-search-page .location-wrapper {
  flex: 2;
  position: relative;
}

.job-search-page .search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: #333;
  margin-left: 12px;
  background: transparent;
}

.job-search-page .search-input::placeholder {
  color: #94a3b8;
}

.job-search-page .search-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  flex-shrink: 0;
}

.job-search-page .filter-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: none;
  border: none;
  margin: 0 0 14px 0;
}

.job-search-page .filter-bar-container .dropdown-trigger:not(.text-only) {
  border: none;
}

.job-search-page .filter-bar-container .dropdown-trigger:hover:not(.text-only) {
  background: var(--purple-soft);
}

.job-search-page .left-controls {
  display: flex;
  align-items: center;
  min-width: 0;
}

.job-search-page .right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.job-search-page .custom-dropdown {
  position: relative;
  display: inline-block;
  font-size: 14px;
}

.job-search-page .dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 16, 32, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #0f1020;
  padding: 8px 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.job-search-page .dropdown-trigger.text-only {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.job-search-page .dropdown-trigger:hover:not(.text-only) {
  border-color: rgba(15, 16, 32, 0.14);
}

.job-search-page .dropdown-trigger svg {
  transition: transform 0.2s ease;
}

.job-search-page .dropdown-trigger.open svg {
  transform: rotate(180deg);
}

.job-search-page .dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 16, 32, 0.08);
  border: 1px solid rgba(15, 16, 32, 0.08);
  display: none;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}

.job-search-page .dropdown-menu.show {
  display: flex;
}

.job-search-page .right-controls .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 220px;
  max-width: calc(100vw - 40px);
}

.job-search-page .left-controls .dropdown-menu {
  left: 0;
  min-width: 220px;
  padding: 8px;
}

.job-search-page .dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #0f1020;
  transition: background-color 0.15s ease;
  user-select: none;
  gap: 10px;
}

.job-search-page .dropdown-item:hover {
  background-color: #f8f8fa;
}

.job-search-page .left-controls .dropdown-item {
  border-radius: 10px;
}

.job-search-page .dropdown-item.selected {
  background-color: rgba(98, 84, 243, 0.08);
}

.job-search-page .dropdown-item input[type="checkbox"] {
  display: none;
}

.job-search-page .custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(15, 16, 32, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
  flex-shrink: 0;
}

.job-search-page .dropdown-item input[type="checkbox"]:checked + .custom-checkbox {
  background: #0f1020;
  border-color: #0f1020;
}

.job-search-page .dropdown-item input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.job-search-page #skillsDropdown .dropdown-menu {
  width: 320px;
  max-width: calc(100vw - 40px);
}

.job-search-page .filter-search-container {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 16, 32, 0.06);
}

.job-search-page .filter-search-container svg {
  width: 18px;
  height: 18px;
  color: #8c939d;
  margin-right: 10px;
  flex-shrink: 0;
}

.job-search-page .filter-search-container input {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #0f1020;
  width: 100%;
  font-family: inherit;
  background: transparent;
}

.job-search-page .filter-search-container input::placeholder {
  color: #9ca3af;
}

.job-search-page .options-list {
  max-height: 210px;
  overflow-y: auto;
  padding: 8px 0;
}

.job-search-page .options-list::-webkit-scrollbar {
  width: 14px;
}

.job-search-page .options-list::-webkit-scrollbar-track {
  background: transparent;
}

.job-search-page .options-list::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 10px;
  border: 4px solid #ffffff;
}

.job-search-page .icon-container {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-search-page .dropdown-item:not(.selected) .check-icon {
  display: none;
}

@media (max-width: 768px) {
  .job-search-page .filter-bar-container {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 8px 8px;
    gap: 8px;
    scrollbar-width: none;
  }

  .job-search-page .filter-bar-container::-webkit-scrollbar {
    display: none;
  }

  .job-search-page .right-controls {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .job-search-page .dropdown-trigger {
    width: auto;
    justify-content: center;
    padding: 6px 10px;
    font-size: 12px;
  }

  .job-search-page .dropdown-trigger.text-only {
    padding: 6px 0;
    font-size: 12px;
  }

  .job-search-page .custom-dropdown {
    width: auto;
  }

  .job-search-page .input-wrapper {
    padding: 10px 14px;
  }

  .job-search-page #skillsDropdown .dropdown-menu {
    max-width: calc(100vw - 20px);
  }

  .job-search-page .search-container {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .job-search-page .keyword-wrapper,
  .job-search-page .location-wrapper,
  .job-search-page .search-btn {
    width: 100%;
    flex: none;
    box-sizing: border-box;
  }
}

.job-search-page .nl-job-card {
  background-color: #f4f6f8;
  width: 100%;
  border-radius: 18px;
  border: 1px solid #e6ebf0;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
 
}

.job-search-page .nl-job-card:last-child {
  margin-bottom: 0;
}

.job-search-page .nl-mobile-save-btn {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.job-search-page .nl-mobile-save-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.job-search-page .nl-job-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.job-search-page .nl-job-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.job-search-page .nl-job-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  display: block;
}

.job-search-page .nl-job-info {
  flex-grow: 1;
}

.job-search-page .nl-job-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.25;
}

.job-search-page .nl-job-meta {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-search-page .nl-job-meta span {
  display: inline;
  color: #d1d5db;
  margin: 0 4px;
  vertical-align: baseline;
}

.job-search-page .nl-job-posted {
  font-size: 12.5px;
  color: #6b7280;
  white-space: nowrap;
}

.job-search-page .nl-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-search-page .nl-tag {
  background: transparent;
  border: 1px solid rgba(15, 16, 32, 0.12);
  color: #4f5268;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}

.job-search-page .nl-job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.job-search-page .nl-action-group-left,
.job-search-page .nl-action-group-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-search-page .nl-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.job-search-page .nl-btn-primary {
  -webkit-appearance: none;
  appearance: none;
  background-color: #3b66cf;
  background-image: linear-gradient(180deg, #5b82e8 0%, #3b66cf 55%, #2d52b8 100%);
  color: #ffffff;
  min-width: 120px;
  padding-left: 22px;
  padding-right: 22px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid #2547a3;
  box-shadow: 0 4px 14px rgba(59, 102, 207, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.job-search-page .nl-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(59, 102, 207, 0.5);
  background-color: #3b66cf;
  background-image: linear-gradient(180deg, #6b8eef 0%, #4570d6 55%, #345cbd 100%);
}

.job-search-page .nl-btn-primary:active {
  transform: translateY(1px);
  filter: brightness(0.97);
  box-shadow: 0 2px 10px rgba(59, 102, 207, 0.32);
}

.job-search-page .nl-btn-link {
  background-color: transparent;
  color: #3b66cf;
  padding: 10px 12px;
}

.job-search-page .nl-btn-link:hover {
  color: #2f52a6;
  text-decoration: underline;
}

.job-search-page .nl-btn-outline {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.job-search-page .nl-btn-outline:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

@media (min-width: 601px) {
  .job-search-page .nl-desktop-save-btn {
    gap: 8px;
    border-radius: 999px;
    padding: 9px 18px;
    min-height: 40px;
  }

  .job-search-page .nl-desktop-save-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    font-size: 14px;
    line-height: 1;
  }

  .job-search-page .nl-desktop-save-btn-icon i {
    display: block;
    line-height: 1;
  }

  .saved-jobs-page .nl-desktop-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 9px 18px;
    min-height: 40px;
    font-size: 13.5px;
    font-weight: 600;
    color: #dc2626;
    border: 1px solid #fecaca;
    background: #fef2f2;
    transition: all 0.2s ease;
  }

  .saved-jobs-page .nl-desktop-remove-btn i {
    font-size: 13px;
    line-height: 1;
    color: #dc2626;
  }

  .saved-jobs-page .nl-desktop-remove-btn:hover {
    color: #b91c1c;
    border-color: #f87171;
    background-color: #fee2e2;
  }

  .saved-jobs-page .nl-desktop-remove-btn:hover i {
    color: #b91c1c;
  }
}

.saved-jobs-page .nl-mobile-remove-btn {
  color: #dc2626;
  font-size: 16px;
}

.saved-jobs-page .nl-mobile-remove-btn:hover {
  color: #b91c1c;
  background-color: #fee2e2;
}

.job-search-page .nl-text-desktop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-search-page .nl-icon-mobile {
  display: none;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .job-search-page .nl-job-card {
    padding: 12px;
    gap: 10px;
  }

  .job-search-page .nl-job-info {
    padding-right: 32px;
  }

  .job-search-page .nl-job-title {
    font-size: 16px;
  }

  .job-search-page .nl-mobile-save-btn {
    display: block;
    top: 16px;
    right: 16px;
  }

  .job-search-page .nl-job-posted,
  .job-search-page .nl-desktop-save-btn,
  .job-search-page .nl-desktop-remove-btn,
  .job-search-page .nl-text-desktop {
    display: none;
  }

  .job-search-page .nl-icon-mobile {
    display: flex;
  }

  .job-search-page .nl-job-actions {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .job-search-page .nl-action-group-left,
  .job-search-page .nl-action-group-right {
    display: contents;
  }

  .job-search-page .nl-btn {
    flex: 1;
    padding: 10px 0;
  }
  .job-search-page .nl-btn-primary {
    min-width: 0;
  }

  .job-search-page .nl-btn-link {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #eef3ff;
    color: #3b66cf;
    box-shadow: inset 0 0 0 1px rgba(59, 102, 207, 0.1);
  }

  .job-search-page .nl-btn-link:hover {
    text-decoration: none;
    background-color: #e3ebff;
    color: #2547a3;
    transform: translateY(-1px);
  }

  .job-search-page .nl-icon-mobile i {
    font-size: 14px;
    line-height: 1;
  }

  .job-search-page .nl-action-group-left .nl-btn-primary {
    order: 1;
  }
  .job-search-page .nl-action-group-right .nl-btn-outline {
    order: 2;
  }
  .job-search-page .nl-action-group-left .nl-btn-link {
    order: 3;
  }

  /* Saved Jobs cards: compact Show Details + written Go to Listing on mobile */
  .saved-jobs-page .nl-job-actions {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  .saved-jobs-page .js-show-job-details.nl-btn-primary {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(59, 102, 207, 0.35);
  }

  .saved-jobs-page .nl-btn-link--text-mobile {
    flex: 0 0 auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 0;
    border: none;
    background: transparent;
    color: #3b66cf;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .saved-jobs-page .nl-btn-link--text-mobile:hover {
    background: transparent;
    text-decoration: underline;
  }

  .saved-jobs-page .nl-btn-link--text-mobile i {
    font-size: 11px;
  }

  .saved-jobs-page .nl-action-group-left .nl-btn-link--text-mobile {
    order: 3;
    margin-left: 0;
  }
}





















/* ========================================================================== */
/* ===== DASHBOARD CSS 
/* ========================================================================== */

/* --- Page background --- */
.dashboard-page.dash-main {
  background-color: #ffffff;
}

.dashboard-page .dash-content-wrapper {
  background-color: #ffffff;
}

.dashboard-page .search-jobs-container {
  border-bottom: none;
  margin-bottom: 16px;
}

.dashboard-page .ak-hero-intro {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* --- Tabs row (Quick Review / Your Jobs) --- */
.aa-tabs-row {
  display: flex;
  align-items: stretch;
  gap: 32px;
  border-bottom: 1px solid rgba(15, 16, 32, 0.08);
  margin-bottom: 22px;
  padding: 0 4px;
}

.aa-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  padding: 12px 4px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.2s ease;
}

.aa-tab i {
  font-size: 14px;
}

.aa-tab:hover {
  color: #4b5563;
}

.aa-tab--active {
  color: #6254f3;
}

.aa-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #6254f3;
  border-radius: 2px;
}

/* --- Stat cards --- */
.aa-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.aa-stat-card {
  background: #f3f4f6;
  border: none;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.aa-stat-card:hover {
  background: #eceef2;
}

.aa-stat-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.aa-stat-value {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0f1020;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.aa-stat-trend {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aa-stat-trend--up {
  color: #16a34a;
}

.aa-stat-trend i {
  font-size: 11px;
}

/* --- Filter pills + search/sort/refresh row --- */
.aa-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 16, 32, 0.06);
}

.aa-filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.aa-pill {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.aa-pill:hover {
  background: rgba(15, 16, 32, 0.04);
  color: #1a1a1a;
}

.aa-pill--active {
  background: rgba(98, 84, 243, 0.1);
  color: #6254f3;
}

.aa-pill--active:hover {
  background: rgba(98, 84, 243, 0.14);
  color: #6254f3;
}

.aa-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aa-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 16, 32, 0.1);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aa-search-input:focus-within {
  border-color: rgba(98, 84, 243, 0.45);
  box-shadow: 0 0 0 2px rgba(98, 84, 243, 0.12);
}

.aa-search-input i {
  color: #94a3b8;
  font-size: 13px;
}

.aa-search-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a1a;
}

.aa-search-input input::placeholder {
  color: #94a3b8;
}

.aa-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 16, 32, 0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.aa-control-btn:hover {
  background: #f9fafb;
  border-color: rgba(15, 16, 32, 0.18);
}

.aa-control-btn .aa-chevron {
  font-size: 10px;
  color: #94a3b8;
}

.aa-control-btn i {
  font-size: 12px;
}

.aa-sort-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.aa-sort-trigger .aa-chevron {
  transition: transform 0.2s ease;
}

.aa-sort-wrap--open .aa-sort-trigger .aa-chevron {
  transform: rotate(180deg);
}

.aa-sort-wrap--open .aa-sort-trigger {
  border-color: rgba(98, 84, 243, 0.45);
  background: rgba(98, 84, 243, 0.04);
}

.aa-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 228px;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(15, 16, 32, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 16, 32, 0.14);
  z-index: 60;
}

.aa-sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.aa-sort-option:hover {
  background: rgba(98, 84, 243, 0.08);
  color: #6254f3;
}

.aa-sort-option--active {
  background: rgba(98, 84, 243, 0.1);
  color: #6254f3;
}

/* --- Jobs table --- */
.aa-jobs-table {
  background: transparent;
}

.aa-jobs-thead {
  border-bottom: 1px solid rgba(15, 16, 32, 0.08);
}

.aa-jobs-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 1.2fr;
  gap: 16px;
  align-items: center;
  padding: 14px 12px;
}

.aa-jobs-row--head {
  padding: 10px 12px;
}

.aa-th {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: none;
  letter-spacing: 0;
}

.aa-th--action {
  text-align: right;
}

.aa-jobs-tbody {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-jobs-tbody .aa-jobs-row {
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  transition: background-color 0.18s ease;
}

.aa-jobs-tbody .aa-jobs-row:hover {
  background: #eceef2;
}

.aa-cell {
  font-size: 13.5px;
  color: #1f2937;
  min-width: 0;
}

/* Company cell: logo + name */
.aa-cell--company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aa-row-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.aa-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  display: block;
}

.aa-row-logo--text {
  font-weight: 700;
  font-size: 14px;
}

.aa-row-company-name {
  font-weight: 600;
  color: #0f1020;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Job cell: title + tag line */
.aa-cell--job {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.aa-row-job-title {
  font-weight: 600;
  color: #0f1020;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-row-job-tag {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* Date cell */
.aa-cell--date {
  color: #6b7280;
  font-size: 13px;
}

.aa-mobile-label {
  display: none;
}

/* Action cell: status pill + menu button */
.aa-cell--action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.aa-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.aa-status i {
  font-size: 10.5px;
}

.aa-status--applied {
  background: #dcfce7;
  color: #166534;
}

.aa-status--applying {
  background: #dbeafe;
  color: #1d4ed8;
}

.aa-status--review {
  background: #fef3c7;
  color: #92400e;
}

.aa-status--declined {
  background: #fee2e2;
  color: #991b1b;
}

.aa-row-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aa-row-menu:hover {
  background: rgba(15, 16, 32, 0.06);
  color: #0f1020;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .aa-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    overflow: visible;
    padding: 0;
  }

  .aa-stats-grid .aa-stat-card {
    min-width: 0;
    padding: 12px 10px;
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    box-shadow: none;
  }

  .aa-stats-grid .aa-stat-card:hover {
    background: #eceef2;
    box-shadow: none;
  }

  .aa-stats-grid .aa-stat-label {
    font-size: 10px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .aa-stats-grid .aa-stat-value {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .aa-stats-grid .aa-stat-trend {
    font-size: 10px;
    flex-wrap: wrap;
    line-height: 1.2;
  }

  .aa-stats-grid .aa-stat-trend i {
    font-size: 9px;
  }

  .aa-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .aa-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0 -4px;
    padding: 0 4px;
    scrollbar-width: none;
  }

  .aa-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .aa-pill {
    flex-shrink: 0;
  }

  .aa-controls-right {
    width: 100%;
  }

  .aa-search-input {
    flex: 1;
    width: auto;
  }

  .aa-jobs-thead {
    display: none;
  }

  /* --- Mobile job card --- */
  .aa-jobs-tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .aa-jobs-row,
  .aa-jobs-tbody .aa-jobs-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "company action"
      "job     job"
      "date    date";
    column-gap: 10px;
    row-gap: 8px;
    padding: 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 14px;
    margin-bottom: 0;
    box-shadow: none;
    overflow: hidden;
    transition: background-color 0.2s ease;
  }

  .aa-jobs-tbody .aa-jobs-row:hover {
    background: #eceef2;
    box-shadow: none;
  }

  .aa-cell--company {
    grid-area: company;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    min-width: 0;
  }

  .aa-cell--company .aa-row-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: none;
    flex-shrink: 0;
  }

  .aa-cell--company .aa-row-company-name {
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
  }

  .aa-jobs-tbody .aa-jobs-row > .aa-cell--action {
    grid-area: action;
    padding: 0;
  }

  .aa-jobs-tbody .aa-jobs-row > .aa-cell--job {
    grid-area: job;
    padding: 0;
  }

  .aa-jobs-tbody .aa-jobs-row > .aa-cell--date {
    grid-area: date;
    padding: 0;
  }

  .aa-cell--job {
    grid-area: job;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .aa-row-job-title {
    white-space: normal;
    font-size: 14.5px;
    line-height: 1.35;
    font-weight: 600;
  }

  .aa-row-job-tag {
    font-size: 12px;
  }

  .aa-cell--date {
    grid-area: date;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: none;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 500;
  }

  .aa-mobile-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .aa-mobile-label::before {
    content: "\f017"; /* fa-clock */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #9ca3af;
  }

  .aa-cell--action {
    align-self: start;
    justify-self: end;
    justify-content: flex-end;
    margin-top: 0;
    gap: 6px;
  }

  .aa-status {
    padding: 5px 10px;
    font-size: 11px;
  }

  .aa-row-menu {
    width: 28px;
    height: 28px;
  }

  .aa-tabs-row {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .aa-stats-grid {
    gap: 6px;
  }

  .aa-stats-grid .aa-stat-card {
    padding: 10px 8px;
    border-radius: 10px;
  }

  .aa-stats-grid .aa-stat-label {
    font-size: 9px;
  }

  .aa-stats-grid .aa-stat-value {
    font-size: 17px;
  }

  .aa-stats-grid .aa-stat-trend {
    font-size: 9px;
  }

  .aa-jobs-row,
  .aa-jobs-tbody .aa-jobs-row {
    padding: 10px;
    border-radius: 12px;
  }

  .aa-cell--company {
    gap: 10px;
  }

  .aa-cell--company .aa-row-logo {
    width: 36px;
    height: 36px;
  }

  .aa-cell--company .aa-row-company-name {
    font-size: 13.5px;
  }

  .aa-row-job-title {
    font-size: 14px;
  }
}

.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 0%, rgba(98, 84, 243, 0.18) 0%, rgba(15, 16, 32, 0.55) 60%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-content.aa-modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  padding: 20px 24px 24px;
  position: relative;
  text-align: left;
  box-shadow:
    0 30px 60px -20px rgba(15, 16, 32, 0.35),
    0 0 0 1px rgba(98, 84, 243, 0.06);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.custom-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f4f7;
  border: none;
  font-size: 14px;
  color: #6b7080;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 5;
}

.custom-modal-close:hover {
  background: #ececf1;
  color: #0f1020;
  transform: rotate(90deg);
}

.aa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(98, 84, 243, 0.08), rgba(98, 84, 243, 0.04));
  border: 1px solid rgba(98, 84, 243, 0.18);
  color: #4a3fd1;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.1px;
}

.aa-status-badge strong {
  color: #2b2280;
  font-weight: 700;
}

.aa-status-sep { opacity: 0.5; }

.aa-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: aaPulse 1.8s ease-out infinite;
}

.aa-hero {
  position: relative;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #000000;
  border: 1px solid rgba(15, 16, 32, 0.08);
}

.aa-hero-blank {
  background: #000000;
}

.aa-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f1020;
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -0.4px;
}

.aa-subtitle {
  font-size: 14px;
  color: #646a81;
  line-height: 1.55;
  margin: 0 0 18px 0;
}

.aa-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8fa;
  border: 1px solid #ececf1;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.aa-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.aa-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #6254f3;
  color: #6254f3;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aa-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #0f1020;
  white-space: nowrap;
}

.aa-step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #d8d4ff, #ececf1);
  border-radius: 2px;
  min-width: 8px;
}

.aa-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.aa-btn {
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, filter 0.22s ease;
}

.aa-btn:hover {
  transform: translateY(-2px);
}

.aa-btn:active {
  transform: translateY(1px);
}

.aa-btn-28 {
  background: #22C55E;
  color: #fff;
  border: 1px solid #15803D;
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.25),
    inset 0 -4px 6px rgba(0, 0, 0, 0.18),
    0 6px 14px rgba(34, 197, 94, 0.28);
  flex: 1 1 auto;
}

.aa-btn-28:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.25),
    inset 0 -4px 6px rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(34, 197, 94, 0.38);
}

.aa-btn-29 {
  background: transparent;
  color: #2563EB;
  border: 1px solid transparent;
  flex: 0 0 auto;
}

.aa-btn-29:hover {
  background: #EFF6FF;
}

.aa-cta-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.aa-btn-28:hover .aa-cta-arrow {
  transform: translateX(3px);
}

.aa-btn-29 i {
  font-size: 11px;
}

.aa-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8f8fa;
  border-radius: 14px;
  border: 1px solid #ececf1;
}

.aa-avatars {
  display: flex;
  flex-shrink: 0;
}

.aa-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  margin-left: -8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.aa-avatar:first-child { margin-left: 0; }

.aa-proof-text {
  flex: 1;
  min-width: 0;
}

.aa-proof-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: #f8b623;
  font-size: 11px;
}

.aa-proof-rating span {
  color: #0f1020;
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.aa-proof-rating i { font-size: 10px; }

.aa-proof-quote {
  font-size: 12px;
  color: #646a81;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-proof-quote span {
  color: #9095a8;
  font-weight: 500;
}

@media (max-width: 560px) {
  .custom-modal-overlay { padding: 12px; }

  .custom-modal-content.aa-modal {
    padding: 18px 18px 20px;
    border-radius: 20px;
  }

  .aa-status-badge { font-size: 11px; padding: 5px 10px; }

  .aa-hero { height: 160px; border-radius: 14px; }

  .aa-title { font-size: 20px; }
  .aa-subtitle { font-size: 13px; margin-bottom: 14px; }

  .aa-steps { padding: 10px 12px; gap: 6px; }
  .aa-step-label { font-size: 11px; }

  .aa-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .aa-btn { height: 46px; font-size: 13.5px; width: 100%; }
  .aa-btn-29 { justify-content: center; }

  .aa-social-proof { padding: 10px 12px; gap: 10px; }
  .aa-proof-quote { font-size: 11px; }
  .aa-proof-rating span { font-size: 11px; }
}

@media (max-width: 380px) {
  .aa-steps { flex-wrap: wrap; justify-content: center; }
  .aa-step-line { display: none; }
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #131426;
  margin-bottom: 4px;
  line-height: 1;
}

.status-text {
  font-size: 14px;
  font-weight: 600;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.dash-header-left h1 {
  font-size: 24px;
  font-weight: 700;
  color: #131426;
  margin: 0 0 8px 0;
}

.dash-header-left p {
  font-size: 14px;
  color: #666a82;
  margin: 0;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dash-last-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666a82;
  font-size: 13px;
}

.btn-new-search {
  background: #6254f3;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-new-search:hover {
  background: #5044d4;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  color: #666a82;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #131426;
  margin: 0 0 8px 0;
  line-height: 1;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.text-green { color: #10b981; }

.text-blue { color: #3b82f6; }

.text-orange { color: #f59e0b; }

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-card {
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 24px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #131426;
  margin: 0;
}

.dash-card-link {
  font-size: 13px;
  color: #6254f3;
  text-decoration: none;
  font-weight: 600;
}

.status-feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-icon.success { background: #10b981; }

.status-icon.applying { background: #3b82f6; }

.status-icon.action { background: #f59e0b; }

.status-icon.failed { background: #ef4444; }

.status-info {
  flex: 1;
}

.status-text {
  font-size: 14px;
  color: #131426;
  margin: 0;
  line-height: 1.4;
}

.status-text span {
  font-weight: 600;
}

.status-subtext {
  font-size: 13px;
  color: #666a82;
  margin: 4px 0 0 0;
}

.status-time {
  font-size: 12px;
  color: #666a82;
  white-space: nowrap;
}

.bot-control-inner {
  background: #f8f8fa;
  border-radius: 8px;
  padding: 20px;
}

.bot-control-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ececf1;
}

.bot-status-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: #10b981;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background-color 0.2s ease;
}

.toggle-knob {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: right 0.2s ease, left 0.2s ease;
}

.toggle-switch.is-off {
  background: #cbd5e1;
}

.toggle-switch.is-off .toggle-knob {
  left: 2px;
  right: auto;
}

.bot-status-text {
  display: flex;
  flex-direction: column;
}

.bot-status-label {
  font-size: 12px;
  color: #666a82;
}

.bot-status-state {
  font-size: 15px;
  font-weight: 700;
}

.bot-status-state.running { color: #10b981; }

.bot-status-state.stopped { color: #64748b; }

.btn-pause-bot {
  background: #fff;
  border: 1px solid #ececf1;
  color: #131426;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.bot-scan-tags p {
  font-size: 13px;
  color: #666a82;
  margin: 0 0 12px 0;
}

.scan-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.scan-tag {
  background: #fff;
  border: 1px solid #ececf1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #131426;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.scan-tag.more-tag {
  color: #6254f3;
  background: #f3f1ff;
  border-color: #e0ddff;
}

.bot-scan-meta {
  display: flex;
  justify-content: space-between;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item.text-right {
  text-align: right;
}

.meta-label {
  font-size: 12px;
  color: #666a82;
}

.meta-value {
  font-size: 13px;
  font-weight: 600;
  color: #131426;
}

.companies-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-name {
  width: 80px;
  font-size: 14px;
  font-weight: 500;
  color: #131426;
}

.company-progress-bar {
  flex: 1;
  height: 4px;
  background: #f4f4f7;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #6254f3;
  border-radius: 2px;
}

.company-count {
  font-size: 13px;
  font-weight: 600;
  color: #666a82;
  width: 24px;
  text-align: right;
}

.dash-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #131426;
  border: 1px solid #ececf1;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.overview-chart-wrap {
  margin-top: 10px;
}

.overview-line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-axis-text {
  font-size: 10px;
  fill: #a0a4b8;
}

.chart-grid-line {
  stroke: #f4f4f7;
  stroke-width: 1;
}

.overview-chart-x-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 30px;
  margin-top: 8px;
  font-size: 11px;
  color: #a0a4b8;
}

@media (max-width: 1024px) {
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.desktop-search-input .input-box i.fa-xmark {
  color: #a0a4b8;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 768px) {
  .desktop-search-input .input-box .fa-xmark {
    background: rgba(0,0,0,0.06);
    color: #666a82;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 8px;
    cursor: pointer;
  }
}

.dash-stats-grid .dash-stat-card {
  border: 1px solid var(--db-line);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-stats-grid .dash-stat-card:hover {
  border-color: #d9deea;
  box-shadow: 0 2px 6px rgba(15, 16, 32, 0.04);
}

.dash-stats-grid .stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
}

.dash-stat-card.stat-card-alert {
  border-color: #fde6c4;
  position: relative;
  cursor: pointer;
}

.dash-stat-card.stat-card-alert:hover {
  border-color: #fbcf85;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.dash-stat-card.stat-card-alert::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.status-feed-card .status-item {
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--db-line-2);
}

.status-feed-card .status-item:first-child { padding-top: 0; }

.status-feed-card .status-item:last-child { border-bottom: none; padding-bottom: 0; }

.status-feed-card .status-icon { width: 28px; height: 28px; font-size: 12px; }

.status-icon.applying { background: var(--db-accent); }

.top-companies-card .progress-fill {
  background: var(--db-accent);
}

.overview-chart-card .chart-axis-text { fill: var(--db-muted-2); }
































/* ========================================================================== */
/* ===== JOB SEARCH CSS ===== */
/* ========================================================================== */

/* Hero search submit — matches dashboard/button-samples.html ".btn.btn-2" (Apply Now) */
.job-search-page .search-btn .job-search-submit {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #15803d;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  /* Solid base so the gradient never looks greyed out by OS / disabled styles */
  background-color: #16a34a;
  background-image: linear-gradient(#2ad66d, #16a34a);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  /* Outer glow only — inset white highlights often read as a “milky” layer on green */
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.job-search-page .search-btn .job-search-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.job-search-page .search-btn .job-search-submit:active {
  transform: translateY(1px);
  filter: brightness(0.97);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.32);
}

.job-search-page .search-btn .job-search-submit:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  filter: brightness(0.88) saturate(0.95);
}

.job-search-page .search-btn .job-search-submit i {
  font-size: 15px;
  color: #fff;
}

.job-search-page .location-action {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  padding: 0 14px;
  white-space: nowrap;
}

.job-search-page .location-action:hover {
  opacity: 0.5;
  color: #16a34a;
}

/* ──────────────────────────────────────────────────────────────────────────
 * Mobile bottom sheet for job filter dropdowns
 *
 * On ≤768px the existing .dropdown-menu is moved (by job-search.html script)
 * into .job-search-filter-sheet__body. The sheet root carries
 * .job-search-page so every .job-search-page .dropdown-item / checkbox /
 * filter-search-container / options-list rule cascades into the moved
 * content - that is why the inner items look identical to desktop.
 *
 * Only the actual dropdown content is moved. The header title is taken from
 * each .custom-dropdown[data-filter-sheet-label].
 * ────────────────────────────────────────────────────────────────────────── */

body.job-search-filter-sheet-open {
  overflow: hidden;
}

.job-search-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: inherit;
}

.job-search-filter-sheet[hidden] {
  display: none;
}

.job-search-filter-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 32, 0.45);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.job-search-filter-sheet.is-open .job-search-filter-sheet__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.job-search-filter-sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 640px);
  background: var(--white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 16, 32, 0.16);
  transform: translateY(105%);
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.job-search-filter-sheet.is-open .job-search-filter-sheet__panel {
  transform: translateY(0);
  pointer-events: auto;
}

.job-search-filter-sheet__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.job-search-filter-sheet__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.job-search-filter-sheet__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-family: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}

.job-search-filter-sheet__close:hover {
  background-color: var(--purple-soft);
}

.job-search-filter-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px));
}

/* Lay the relocated .dropdown-menu out as a plain full-width column inside
   the sheet (overrides the desktop absolute / fixed-width / bordered style). */
.job-search-filter-sheet__body .dropdown-menu {
  position: static;
  display: flex;
  flex-direction: column;
  inset: auto;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  z-index: auto;
}

/* Larger touch target for filter rows on mobile */
.job-search-filter-sheet__body .dropdown-item {
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
}

.job-search-filter-sheet__body .filter-search-container {
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.job-search-filter-sheet__body .options-list {
  max-height: min(44vh, 320px);
}

@media (min-width: 769px) {
  .job-search-filter-sheet {
    display: none;
  }
}

/* --- Job details popup (Show Details) --- */
.job-details-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

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

.job-details-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.job-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 32, 0.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.job-details-modal.is-open .job-details-modal__backdrop {
  opacity: 1;
}

/* Desktop: blur/dim is instant on open; only the card + backdrop fade on close */
@media (min-width: 601px) {
  .job-details-modal {
    opacity: 1;
    transition: visibility 0.34s ease;
  }

  .job-details-modal:not([hidden]) .job-details-modal__backdrop {
    opacity: 1;
    transition: none;
  }

  .job-details-modal.is-closing .job-details-modal__backdrop {
    opacity: 0;
    transition: opacity 0.34s ease;
  }
}

.job-details-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.28s ease;
}

.job-details-modal.is-open .job-details-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.job-details-modal .job-details-modal__card.nl-job-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e6ebf0;
  padding: 16px 18px 18px;
  margin: 0;
  box-shadow:
    0 24px 48px rgba(15, 16, 32, 0.14),
    0 0 0 1px rgba(15, 16, 32, 0.04);
}

.job-details-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f4f6f8;
  color: #6b7280;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.job-details-modal__close:hover {
  background: #ececf1;
  color: #1a1a1a;
  transform: rotate(90deg);
}

.job-details-modal .nl-job-header {
  padding-right: 36px;
}

.job-details-modal .nl-job-posted {
  display: block;
}

.job-details-modal .nl-job-description--modal {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  margin: 2px 0 4px;
}

.job-details-modal .job-details-modal__actions {
  margin-top: 4px;
  justify-content: flex-end;
}

.job-details-modal .job-details-modal__actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.job-details-modal .job-details-modal__actions .nl-text-desktop {
  display: inline-flex;
}

body.job-details-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .job-details-modal {
    align-items: flex-end;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .job-details-modal__dialog {
    max-width: none;
    max-height: min(92vh, 720px);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .job-details-modal.is-open .job-details-modal__dialog {
    transform: translateY(0);
  }

  .job-details-modal .job-details-modal__card.nl-job-card {
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  /* Override job-search list-card mobile button layout inside the popup */
  .job-details-modal.job-search-page .nl-text-desktop {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }

  .job-details-modal .job-details-modal__actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
  }

  .job-details-modal .job-details-modal__actions-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    margin-left: 0;
  }

  .job-details-modal .job-details-modal__actions-right .nl-btn,
  .job-details-modal .job-details-modal__actions-right .nl-btn-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 8px 0;
  }

  .job-details-modal .job-details-modal__actions-right .nl-btn-link {
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .job-details-modal .job-details-modal__actions-right .nl-btn-link:hover {
    background: transparent;
    text-decoration: underline;
  }

  .job-details-modal .job-details-modal__actions-right .job-details-modal__ai-submit {
    white-space: nowrap;
  }

  .job-details-modal .nl-job-posted {
    display: block;
    font-size: 12.5px;
    white-space: nowrap;
  }
}

/* ========================================================================== */
/* ===== SAVED JOBS CSS 
/* ========================================================================== */

/* ========================================================================== */
/* ===== PREFERENCES CSS  -
/* ========================================================================== */

.preferences-page.dash-main {
  background-color: #ffffff;
}

.preferences-page .dash-content-wrapper {
  background-color: #ffffff;
  max-width: none;
  margin: 0;
  width: 100%;
}

@media (max-width: 900px) {
  .preferences-page .dash-sticky-head {
    padding: 14px 18px 12px;
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
  }

  .preferences-page .dash-page-scroll {
    padding: 0 18px 32px;
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .preferences-page .pref-head.dash-sticky-head {
    padding-bottom: 12px;
  }
}

/* --- Header + tabs --- */
.preferences-page .pref-head.dash-sticky-head {
  border-bottom: 1px solid rgba(15, 16, 32, 0.08);
  padding-bottom: 0;
}

.pref-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.preferences-page .pref-head .search-jobs-title {
  margin-bottom: 0;
}

.pref-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: -1px;
}

.pref-tabs::-webkit-scrollbar { display: none; }

.pref-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #8a8fa3;
  padding: 12px 16px 14px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.pref-tab i {
  font-size: 13px;
  opacity: 0.9;
}

.pref-tab::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: background 0.18s ease;
}

.pref-tab:hover { color: #131426; }

.pref-tab.active {
  color: #2347e3;
}

.pref-tab.active::after {
  background: #2347e3;
}

/* --- Panels --- */
.pref-panel { display: none; }
.pref-panel.pref-panel--active { display: block; }

/* --- Section --- */
.pref-section {
  background: #f4f6f8;
  border-radius: 18px;
  padding: 22px 22px;
  margin-bottom: 18px;
}

.pref-jobs-intro,
.pref-role-label {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: #374151;
  letter-spacing: -0.01em;
}

.pref-jobs-intro {
  margin: 0 0 20px 0;
  max-width: 920px;
}

/* --- Role & experience (clean row layout, jobs panel) --- */
.pref-role-block {
  background: #ffffff;
  margin-bottom: 28px;
}

.pref-role-heading {
  margin: 0;
  padding: 0 0 18px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f1020;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #e6e9ef;
}

.pref-role-rows {
  display: flex;
  flex-direction: column;
}

.pref-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px 40px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e6e9ef;
}

.pref-role-row--last {
  border-bottom: none;
  padding-bottom: 0;
}

.pref-role-row--titles {
  align-items: start;
}

.pref-role-label {
  margin: 0;
  cursor: default;
}

.pref-role-control {
  min-width: 0;
}

.pref-role-row--titles .pref-role-control,
.pref-role-control:has(.pref-title-add-btn) {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pref-select--outline select {
  border: 1px solid #d5dae3;
  border-radius: 10px;
  box-shadow: none;
  min-height: 48px;
  padding: 12px 40px 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2440;
  background: #ffffff;
}

.pref-select--outline select:focus {
  border-color: #9aa3b2;
  box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.08);
}

.pref-title-input {
  border: 1px solid #d5dae3;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}

.pref-title-input-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}

.pref-title-input .pref-chip-field {
  flex: 1 1 120px;
  min-width: 100px;
  padding: 4px 2px;
  font-size: 14px;
}

.pref-role-block .pref-chip {
  background: #f3f0ff;
  color: #5c4dae;
  border-radius: 6px;
  padding: 5px 8px 5px 10px;
  font-size: 13px;
  font-weight: 600;
}

.pref-role-block .pref-chip-x {
  background: rgba(92, 77, 174, 0.14);
  color: #5c4dae;
}

.pref-role-block .pref-chip-x:hover {
  background: #5c4dae;
  color: #ffffff;
}

.pref-title-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #eef0f4;
  color: #5b5f78;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.pref-title-add-btn:hover {
  background: #e4e7ed;
  color: #1f2440;
}

.pref-title-add-btn i {
  font-size: 12px;
}

.pref-title-add-btn--compact {
  width: auto;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
}

.pref-role-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e9ef;
}

.pref-role-block-head .pref-role-heading {
  padding-bottom: 0;
  border-bottom: none;
}

.pref-role-rows--nested .pref-role-row:first-child {
  padding-top: 0;
}

.pref-role-rows--nested .pref-role-row--last {
  border-bottom: none;
}

.pref-role-label-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
}

.pref-role-row--stack .pref-role-label-line + .pref-role-control {
  grid-column: 1 / -1;
}

.pref-role-row--stack:has(.pref-role-label-line) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.pref-role-meta {
  font-size: 13px;
  font-weight: 600;
  color: #8a8fa3;
  flex-shrink: 0;
}

.pref-role-help {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7080;
}

.pref-role-control--split {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pref-select--grow {
  flex: 1;
  min-width: 0;
}

.pref-input--outline {
  border: 1px solid #d5dae3;
  border-radius: 10px;
  box-shadow: none;
  min-height: 48px;
  padding: 12px 14px;
}

.pref-input--outline:focus {
  border-color: #9aa3b2;
  box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.08);
}

.pref-input-icon--outline {
  border: 1px solid #d5dae3;
  border-radius: 10px;
  box-shadow: none;
  padding-right: 14px;
  min-height: 48px;
}

.pref-input-icon--outline:focus-within {
  border-color: #9aa3b2;
  box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.08);
}

.pref-input-icon--outline .pref-input {
  min-height: 44px;
  padding: 12px 14px 12px 8px;
}

.pref-salary-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #d5dae3;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.pref-salary-prefix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #6b7080;
  background: #f8f9fb;
  border-right: 1px solid #e6e9ef;
}

.pref-salary-input .pref-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 48px;
}

.pref-salary-input .pref-input:focus {
  box-shadow: none;
}

.pref-select--currency {
  flex-shrink: 0;
  border-left: 1px solid #e6e9ef;
}

.pref-select--currency select {
  border: none;
  border-radius: 0;
  min-height: 48px;
  min-width: 88px;
  padding-right: 34px;
  background: #f8f9fb;
  font-weight: 600;
}

.pref-role-intro {
  margin: -8px 0 6px 0;
  max-width: 920px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: #6b7080;
}

.pref-upload--clean {
  border: 1px dashed #c8ced8;
  border-radius: 10px;
  box-shadow: none;
  background: #fafbfc;
}

.pref-upload--clean:hover {
  border-color: #b8bec9;
  background: #f8f9fb;
}

.pref-upload-action {
  font-size: 13px;
  font-weight: 600;
  color: #1f2440;
  padding: 6px 12px;
  border-radius: 8px;
  background: #eef0f4;
}

.pref-section-head {
  margin-bottom: 16px;
}

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

.pref-section-title {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f1020;
  letter-spacing: -0.01em;
}

.pref-section-sub {
  margin: 0;
  font-size: 13.5px;
  color: #5b5f78;
  line-height: 1.55;
  max-width: 720px;
}

.pref-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2347e3;
  text-decoration: none;
}

.pref-link i { font-size: 11px; }

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

/* --- Buttons (rectangular, matches job-search .nl-btn) --- */
.pref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pref-btn--primary {
  background-color: #3b66cf;
  background-image: linear-gradient(180deg, #5b82e8 0%, #3b66cf 55%, #2d52b8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 102, 207, 0.32);
}

.pref-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 102, 207, 0.42);
}

/* Matches job-search .job-search-submit green pill — desktop wider, mobile compact */
.pref-btn--save {
  box-sizing: border-box;
  flex-shrink: 0;
  height: 46px;
  min-width: 156px;
  padding: 0 36px;
  border: 1px solid #15803d;
  border-radius: 999px;
  background-color: #16a34a;
  background-image: linear-gradient(#2ad66d, #16a34a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.pref-btn--save:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.pref-btn--save:active {
  transform: translateY(1px);
  filter: brightness(0.97);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.32);
}

.pref-btn--ghost {
  background: #ffffff;
  color: #1f2440;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.06);
}

.pref-btn--ghost:hover {
  background: #ffffff;
  color: #0f1020;
  box-shadow: 0 2px 8px rgba(15, 16, 32, 0.08);
}

.pref-btn--lg {
  padding: 12px 22px;
  font-size: 14px;
}

.pref-btn--full {
  width: 100%;
}

/* --- Application mode (compact list, color-only selection) --- */
.pref-mode-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pref-mode-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.18s ease;
  box-shadow: none;
}

.pref-mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.pref-mode-card:hover:not(.is-selected) {
  background: #f8fafc;
}

.pref-mode-card.is-selected {
  background: #e8eef9;
  box-shadow: none;
}

.pref-mode-radio {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eef0f4;
  transition: background 0.18s ease;
}

.pref-mode-card.is-selected .pref-mode-radio {
  background: #3b66cf;
}

.pref-mode-card.is-selected .pref-mode-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.pref-mode-body {
  flex: 1;
  min-width: 0;
}

.pref-mode-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.pref-mode-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f1020;
  line-height: 1.3;
}

.pref-mode-card.is-selected .pref-mode-title {
  color: #1e3a8a;
}

.pref-mode-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
}

.pref-mode-tag--green { background: #ecfdf3; color: #047857; }
.pref-mode-tag--blue { background: #dbeafe; color: #1d4ed8; }
.pref-mode-tag--purple { background: #ede9fe; color: #5b21b6; }

.pref-mode-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #5b5f78;
}

.pref-mode-card.is-selected .pref-mode-desc {
  color: #4b5563;
}

/* --- Fields --- */
.pref-field { margin-bottom: 16px; }
.pref-field:last-child { margin-bottom: 0; }

.pref-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.pref-field-row--top-gap { margin-top: 6px; }

.pref-field-row .pref-field { margin-bottom: 0; }

.pref-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pref-label {
  display: block;
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2440;
}

.pref-field-head .pref-label { margin: 0; }

.pref-help {
  margin: -4px 0 8px 0;
  font-size: 12px;
  color: #5b5f78;
}

.pref-counter {
  font-size: 12px;
  font-weight: 600;
  color: #6b7080;
}

.pref-input,
.pref-select select {
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #0f1020;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: box-shadow 0.18s ease;
}

.pref-input::placeholder { color: #9aa0b3; }

.pref-input:focus,
.pref-select select:focus {
  box-shadow: 0 0 0 2px rgba(59, 102, 207, 0.28);
}

.pref-input[type="number"]::-webkit-outer-spin-button,
.pref-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pref-select {
  position: relative;
}

.pref-select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.pref-select-chev {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0b3;
  font-size: 11px;
  pointer-events: none;
}

.pref-select--inline {
  width: auto;
  min-width: 92px;
  flex-shrink: 0;
}

.pref-select--inline select {
  background: transparent;
  box-shadow: none;
  padding: 10px 30px 10px 10px;
  font-weight: 600;
  color: #1f2440;
}

.pref-input-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding-left: 14px;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: box-shadow 0.18s ease;
}

.pref-input-icon:focus-within {
  box-shadow: 0 0 0 2px rgba(59, 102, 207, 0.28);
}

.pref-input-icon .pref-input {
  background: transparent;
  box-shadow: none;
  padding-left: 8px;
}

.pref-input-icon .pref-input:focus {
  box-shadow: none;
}

.pref-input-icon--prefix {
  padding-left: 0;
}

.pref-input-leading {
  color: #6b7080;
  font-size: 14px;
  flex-shrink: 0;
}

.pref-input-prefix {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 100%;
  font-size: 15px;
  font-weight: 700;
  color: #6b7080;
  flex-shrink: 0;
}

/* --- Chip input --- */
.pref-chip-input {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
}

.pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pref-chips:empty { display: none; }

.pref-chips:not(:empty) + .pref-chip-add { margin-top: 10px; }

.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef4ff;
  color: #2347e3;
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.pref-chip-x {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(35, 71, 227, 0.12);
  color: #2347e3;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}

.pref-chip-x:hover {
  background: #2347e3;
  color: #ffffff;
}

.pref-chip-add {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pref-chip-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: #0f1020;
  padding: 8px 6px;
  min-width: 0;
}

.pref-chip-field::placeholder { color: #9aa0b3; }

/* --- Pills (single/multi select) --- */
.pref-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pref-pill {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #4f5268;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pref-pill:hover {
  color: #3b66cf;
  transform: translateY(-1px);
}

.pref-pill.is-selected {
  background: #eef0f4;
  color: #0f1020;
  box-shadow: inset 0 0 0 1px #d5dae3;
}

/* Jobs panel: neutral controls (no blue pills/focus on leftover sections) */
.preferences-page [data-pref-panel="jobs"] .pref-pill.is-selected {
  background: #eef0f4;
  color: #0f1020;
  box-shadow: inset 0 0 0 1px #d5dae3;
}

.preferences-page [data-pref-panel="jobs"] .pref-pill:hover {
  color: #0f1020;
}

.preferences-page [data-pref-panel="jobs"] .pref-input:focus,
.preferences-page [data-pref-panel="jobs"] .pref-select select:focus {
  box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.08);
}

.preferences-page [data-pref-panel="jobs"] .pref-checkbox-row input:checked + .pref-checkbox-box {
  background: #1f2440;
  box-shadow: inset 0 0 0 1.5px #1f2440;
}

/* --- Checkbox row (inline) --- */
.pref-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #4f5268;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.pref-checkbox-row input { display: none; }

.pref-checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #ffffff;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 10px;
  box-shadow: inset 0 0 0 1.5px rgba(15, 16, 32, 0.18);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pref-checkbox-row input:checked + .pref-checkbox-box {
  background: #3b66cf;
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px #3b66cf;
}

/* --- Resume list --- */
.pref-resume-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pref-resume-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pref-resume-row:hover {
  box-shadow: 0 4px 14px rgba(15, 16, 32, 0.08);
}

.pref-resume-row--empty {
  cursor: default;
  background: #ffffff;
}

.pref-resume-row--loaded {
  cursor: default;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.pref-resume-row--loaded:hover {
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
}

.pref-resume-row--loaded.is-active {
  background: #f4f5f7;
  box-shadow: inset 0 0 0 1px #d5dae3;
}

.pref-resume-row--loaded.is-active:hover {
  box-shadow: inset 0 0 0 1px #d5dae3;
}

.pref-resume-row--loaded .pref-resume-icon {
  background: #eef0f4;
  color: #4f5563;
}

.pref-resume-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.pref-resume-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pref-resume-row--loaded .pref-resume-actions-secondary {
  order: -1;
}

.pref-resume-actions-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pref-resume-action-btn {
  padding: 7px 12px;
  font-size: 13px;
}

.pref-resume-action-btn--icon {
  width: 36px;
  padding: 7px 0;
  justify-content: center;
}

.pref-resume-action-btn--icon i {
  font-size: 14px;
}

.pref-resume-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2347e3;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.pref-resume-icon--ghost {
  background: #eef0f4;
  color: #8a8fa3;
}

.pref-resume-info {
  flex: 1;
  min-width: 0;
}

.pref-resume-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f1020;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pref-resume-sub {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: #5b5f78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Toggle row --- */
.pref-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
}

.pref-toggle-row--soft {
  margin-top: 12px;
}

.pref-toggle-row-text {
  flex: 1;
  min-width: 0;
}

.pref-toggle-row-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f1020;
  margin-bottom: 2px;
}

.pref-toggle-row-sub {
  display: block;
  font-size: 12.5px;
  color: #5b5f78;
}

/* --- Work authorization list --- */
.pref-auth-list {
  border: 1px solid #d5dae3;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.pref-auth-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  border-bottom: 1px solid #e6e9ef;
  transition: background 0.18s ease;
}

.pref-auth-option:last-child {
  border-bottom: none;
}

.pref-auth-option:hover {
  background: #f8f9fb;
}

.pref-auth-option:has(input:checked) {
  background: #f4f5f7;
}

.pref-auth-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pref-auth-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #c8ced8;
  background: #ffffff;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pref-auth-option input:checked + .pref-auth-box {
  background: #1f2440;
  border-color: #1f2440;
  color: #ffffff;
}

.pref-auth-label {
  font-size: 14px;
  font-weight: 500;
  color: #1f2440;
  line-height: 1.35;
}

/* --- Background profile sections list --- */
.pref-bg-list {
  border: 1px solid #d5dae3;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.pref-bg-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #e6e9ef;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.18s ease;
}

.pref-bg-item:last-child {
  border-bottom: none;
}

.pref-bg-item:hover {
  background: #f8f9fb;
}

.pref-bg-item:focus-visible {
  outline: none;
  background: #f4f5f7;
  box-shadow: inset 0 0 0 2px rgba(15, 16, 32, 0.12);
}

.pref-bg-item-icon {
  width: 20px;
  flex-shrink: 0;
  color: #6b7080;
  font-size: 15px;
  text-align: center;
}

.pref-bg-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pref-bg-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f1020;
  line-height: 1.35;
}

.pref-bg-item-desc {
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7080;
  line-height: 1.4;
}

.pref-bg-item-go {
  flex-shrink: 0;
  color: #9aa0b3;
  font-size: 12px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.pref-bg-item:hover .pref-bg-item-go {
  color: #4f5563;
  transform: translateX(2px);
}

/* --- Upload --- */
.pref-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pref-upload:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 16, 32, 0.08);
}

.pref-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eef4ff;
  color: #2347e3;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.pref-upload-icon--lg { font-size: 20px; }

.pref-upload-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2440;
}

.pref-upload-meta {
  font-size: 12px;
  color: #8a8fa3;
}

.pref-upload--inline {
  flex-direction: row;
  justify-content: flex-start;
  padding: 14px 16px;
  text-align: left;
}

.pref-upload--inline .pref-upload-icon { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }

.pref-upload--inline .pref-upload-text { flex: 1; }

/* --- Location groups (jobs panel) --- */
.pref-locations {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid #e6e9ef;
  margin-bottom: 0;
}

.pref-location-card {
  padding: 4px 0 8px;
  border-bottom: 1px solid #e6e9ef;
}

.pref-location-card:last-child {
  border-bottom: none;
}

.pref-location-remove {
  background: #f8f9fb;
  color: #6b7080;
  border: 1px solid #d5dae3;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pref-location-remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* --- Answer library --- */
.pref-answers-panel {
  margin-bottom: 28px;
}

.pref-answers-panel .pref-role-block-head {
  margin-bottom: 16px;
}

.pref-answers-search-row {
  margin-bottom: 20px;
}

.pref-answers-search {
  width: 100%;
}

.pref-answers-search .pref-input {
  width: 100%;
}

.pref-answers-intro {
  margin: 0 0 18px 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: #374151;
  letter-spacing: -0.01em;
}

.pref-answer-empty {
  padding: 4px 0 0 0;
}

.pref-answer-empty > .pref-title-add-btn {
  max-width: 320px;
}

.pref-answer-steps {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  border: 1px solid #d5dae3;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.pref-answer-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6e9ef;
}

.pref-answer-step:last-child {
  border-bottom: none;
}

.pref-answer-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef0f4;
  color: #4f5563;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pref-answer-step-body {
  flex: 1;
  min-width: 0;
}

.pref-answer-step-title {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f1020;
}

.pref-answer-step-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #6b7080;
  line-height: 1.55;
}

/* --- Saved answer cards (filled state) --- */
.pref-answer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #d5dae3;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.pref-answer-card {
  padding: 16px 18px;
  border-bottom: 1px solid #e6e9ef;
  background: #ffffff;
}

.pref-answer-card:last-child {
  border-bottom: none;
}

.pref-answer-card-q {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f1020;
}

.pref-answer-card-a {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  color: #4f5268;
  line-height: 1.55;
}

.pref-answer-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pref-answer-card-btn {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2440;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: background 0.18s ease;
}

.pref-answer-card-btn:hover { background: #eef0f4; }

.pref-answer-card-btn--danger {
  color: #dc2626;
  background: #fef2f2;
}

.pref-answer-card-btn--danger:hover { background: #fee2e2; }

/* --- Mobile tweaks --- */
@media (max-width: 768px) {
  .pref-field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .preferences-page .pref-section {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .preferences-page .pref-section-head {
    margin-bottom: 14px;
  }

  .pref-jobs-intro,
  .pref-role-intro,
  .pref-role-label {
    font-size: 15px;
    line-height: 1.6;
  }

  .pref-jobs-intro {
    margin-bottom: 20px;
    max-width: none;
  }

  .pref-role-block {
    margin-bottom: 26px;
  }

  .pref-role-heading {
    font-size: 17px;
    padding-bottom: 16px;
  }

  .pref-role-block-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
  }

  .pref-title-add-btn--compact {
    width: 100%;
  }

  .pref-role-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .pref-role-row--stack:has(.pref-role-label-line) {
    gap: 12px;
  }

  .pref-role-control--split {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pref-location-remove {
    width: 100%;
    height: 44px;
  }

  .pref-select--outline select,
  .pref-input--outline {
    min-height: 44px;
    font-size: 14px;
  }

  .pref-tabs {
    margin-left: 0;
    margin-right: 0;
  }

  .pref-tab {
    padding: 10px 14px 12px;
  }

  .pref-answers-intro {
    font-size: 15px;
    line-height: 1.6;
  }

  .pref-answer-empty > .pref-title-add-btn {
    max-width: none;
    width: 100%;
  }

  .pref-section-head--row {
    flex-direction: column;
    align-items: stretch;
  }

  .pref-section-head--row .pref-section-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .preferences-page .dash-content-wrapper {
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    overflow-x: visible;
  }

  .preferences-page .dash-page-scroll {
    overflow-x: hidden;
  }

  .preferences-page .pref-head.dash-sticky-head {
    padding-top: 18px;
    padding-bottom: 12px;
    overflow: visible;
    max-width: 100%;
  }

  .pref-head-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 14px;
    padding-top: 4px;
  }

  .pref-head-top .search-jobs-title {
    font-size: 20px;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
  }

  .pref-head-top .pref-btn--save {
    flex-shrink: 0;
    height: 34px;
    min-width: 0;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.32);
  }

  .pref-head-top .pref-btn--save:hover {
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.38);
  }

  .preferences-page .pref-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 12px;
    padding-right: 8px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .preferences-page .pref-tab {
    padding: 10px 10px 12px;
    font-size: 12.5px;
    gap: 6px;
    flex-shrink: 0;
  }

  .preferences-page .pref-tab i {
    font-size: 12px;
  }

  .preferences-page .pref-tab span {
    white-space: nowrap;
  }

  .pref-tab {
    padding: 10px 12px 12px;
    font-size: 13px;
  }

  .pref-tab span { white-space: nowrap; }

  .pref-mode-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .pref-mode-title { font-size: 13.5px; }

  .pref-mode-desc { font-size: 12px; }

  .pref-resume-row--loaded {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .pref-resume-row--loaded .pref-resume-body {
    width: 100%;
    align-items: flex-start;
  }

  .pref-resume-row--loaded .pref-resume-title {
    white-space: normal;
  }

  .pref-resume-row--loaded .pref-resume-sub {
    white-space: normal;
    word-break: break-word;
  }

  .pref-resume-row--loaded .pref-resume-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pref-resume-row--loaded .pref-resume-actions-secondary {
    order: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
  }

  .pref-resume-row--loaded [data-resume-use] {
    order: -1;
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
  }

  .pref-resume-row--loaded [data-resume-edit] {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  .pref-resume-row--loaded .pref-resume-action-btn--icon {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .pref-role-row {
    padding: 16px 0;
  }

  .pref-bg-item {
    padding: 13px 14px;
  }
}

/* ========================================================================== */
/* ===== APPLICATION KITS CSS  
/* ========================================================================== */

.application-kits-page.dash-main {
  background-color: #ffffff;
}

.application-kits-page .dash-content-wrapper {
  background-color: #ffffff;
}

/* --- Hero --- */
.application-kits-page .ak-hero {
  border-bottom: none;
  margin-bottom: 22px;
}

.ak-hero-intro {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(15, 16, 32, 0.14);
}

.ak-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --- Search input (inside hero) --- */
.ak-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: #ffffff;
  border-radius: 50px;
  padding: 12px 24px;
  box-shadow: 1px 1px 3px #778899;
  transition: box-shadow 0.2s ease;
}

.ak-search-input:focus-within {
  box-shadow: 1px 1px 8px #778899;
}

.ak-search-input i {
  color: #64748b;
  font-size: 16px;
  flex-shrink: 0;
}

.ak-search-input input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #333333;
  font-size: 16px;
  font-family: inherit;
}

.ak-search-input input::placeholder {
  color: #94a3b8;
}

/* --- Create New Kit button (btn-2 gradient green style) --- */
.ak-create-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(#2AD66D, #16A34A);
  color: #fff;
  border: 1px solid #15803D;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  flex-shrink: 0;
}

.ak-create-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.18), 0 6px 16px rgba(34,197,94,.35);
}

.ak-create-btn:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

/* --- Card list --- */
.ak-kit-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Card --- */
.ak-kit-card {
  --ak-logo-size: 44px;
  --ak-header-gap: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #f4f6f8;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.ak-kit-card:hover {
  border-color: #d0d5dd;
}

/* --- Card header (logo + info) --- */
.ak-kit-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--ak-header-gap);
}

.ak-kit-card__info {
  flex: 1;
  min-width: 0;
}

.ak-kit-card__logo {
  width: var(--ak-logo-size);
  height: var(--ak-logo-size);
  border-radius: 12px;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3b66cf;
  font-size: 18px;
}

.ak-kit-card__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.ak-kit-card__meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ak-kit-card__meta span {
  color: #d1d5db;
  margin: 0 4px;
}

/* --- Actions row (desktop: right-aligned) --- */
.ak-kit-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
}

/* --- Shared button base --- */
.ak-kit-card__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  transition: all 0.22s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/* Resume — dark gradient (btn-4 style) */
.ak-kit-card__btn--resume {
  background: linear-gradient(#1F2937, #030712);
  color: #fff;
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 -2px 0 rgba(0,0,0,.5);
}

.ak-kit-card__btn--resume:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 -2px 0 rgba(0,0,0,.5), 0 6px 16px rgba(0,0,0,.18);
}

.ak-kit-card__btn--resume:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

/* Cover Letter + Open Kit — gray gradient with inset (btn-22 style) */
.ak-kit-card__btn--open {
  background: linear-gradient(#F9FAFB, #E5E7EB);
  color: #374151;
  border: 1px solid #D1D5DB;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08);
}

.ak-kit-card__btn--open:hover {
  transform: translateY(-2px);
  background: linear-gradient(#FFFFFF, #ECEEF1);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08);
}

.ak-kit-card__btn--open:active {
  transform: translateY(1px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .ak-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ak-create-btn {
    width: 100%;
    min-width: 0;
  }

  .ak-kit-card {
    padding: 12px;
    gap: 10px;
  }

  .ak-kit-card__title {
    font-size: 16px;
  }

  .ak-kit-card__actions {
    align-self: stretch;
    margin-left: 0;
    width: 100%;
    max-width: none;
    justify-content: stretch;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .ak-kit-card__btn--desktop-only {
    display: none;
  }

  .ak-kit-card__btn {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }

}

/* Cover letter action (desktop) — same look as open, separate class */
.ak-kit-card__btn--cover {
  background: linear-gradient(#F9FAFB, #E5E7EB);
  color: #374151;
  border: 1px solid #D1D5DB;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.ak-kit-card__btn--cover:hover {
  transform: translateY(-2px);
  background: linear-gradient(#FFFFFF, #ECEEF1);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Open kit drawer (desktop: right panel / mobile: bottom sheet) --- */
body.ak-kit-drawer-open {
  overflow: hidden;
}

.ak-kit-drawer[hidden] {
  display: none;
}

.ak-kit-drawer {
  position: fixed;
  inset: 0;
  z-index: 4050;
  pointer-events: none;
}

.ak-kit-drawer.is-open {
  pointer-events: auto;
}

.ak-kit-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 32, 0.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.ak-kit-drawer.is-open .ak-kit-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.ak-kit-drawer__panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.ak-kit-drawer.is-open .ak-kit-drawer__panel {
  pointer-events: auto;
}

.ak-kit-drawer__handle {
  flex-shrink: 0;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #d5dae3;
}

.ak-kit-drawer__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
  background: #ffffff;
}

/* Same typography as Application Kits page hero */
.ak-kit-drawer__intro {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(15, 16, 32, 0.14);
}

.ak-kit-drawer__intro .search-jobs-title {
  margin: 0 0 8px;
}

.ak-kit-drawer__intro .search-jobs-description {
  margin: 0 0 10px;
  max-width: none;
}

.ak-kit-drawer__status {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ak-kit-drawer__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  background: #f4f6f8;
  color: #4f5268;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ak-kit-drawer__close:hover {
  background: #eef0f4;
  color: #0f1020;
}

.ak-kit-drawer__tabs {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 14px;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #ffffff;
}

.ak-kit-drawer__tabs::-webkit-scrollbar {
  display: none;
}

.ak-kit-drawer__tab {
  position: relative;
  flex-shrink: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #8a8fa3;
  padding: 12px 14px 14px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.ak-kit-drawer__tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: background 0.18s ease;
}

.ak-kit-drawer__tab:hover {
  color: #131426;
}

.ak-kit-drawer__tab.active {
  color: #2347e3;
}

.ak-kit-drawer__tab.active::after {
  background: #2347e3;
}

.ak-kit-drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 20px;
  background: #f4f6f8;
}

.ak-kit-drawer__pane {
  display: none;
}

.ak-kit-drawer__pane.active {
  display: block;
}

.ak-kit-drawer__placeholder {
  margin: 0;
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
}

/* Overview tab */
.ak-kit-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ak-kit-overview__summary {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
}

.ak-kit-overview__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  color: #1f2440;
}

.ak-kit-overview__text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.ak-kit-overview__more {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #3b66cf;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.ak-kit-overview__more:hover {
  color: #2547a3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ak-kit-overview__skills-label {
  margin: 0;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #9aa3b2;
  letter-spacing: 0.02em;
}

.ak-kit-overview__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ak-kit-overview__skill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef0f4;
  color: #1f2440;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

/* Notes tab */
.ak-kit-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.ak-kit-notes__input {
  width: 100%;
  min-height: 220px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #d5dae3;
  border-radius: 16px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2440;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ak-kit-notes__input::placeholder {
  color: #9aa3b2;
}

.ak-kit-notes__input:focus {
  outline: none;
  border-color: #b8c0ce;
  background: #ffffff;
}

.ak-kit-notes__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 2px 4px 0;
}

.ak-kit-notes__count {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
}

.ak-kit-notes__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
}

.ak-kit-notes__status i {
  font-size: 14px;
  color: #16a34a;
}

.ak-kit-notes__status.is-saving {
  color: #9aa3b2;
}

.ak-kit-notes__status.is-saving i {
  color: #9aa3b2;
}

/* Mobile: bottom sheet */
@media (max-width: 768px) {
  .ak-kit-drawer__panel {
    left: 10px;
    right: 10px;
    bottom: 0;
    width: auto;
    max-height: min(92vh, 720px);
    border-radius: 24px;
    box-shadow: 0 -12px 40px rgba(15, 16, 32, 0.16);
    transform: translateY(calc(105% + 20px));
  }

  .ak-kit-drawer.is-open .ak-kit-drawer__panel {
    transform: translateY(0);
  }
}

/* Desktop: right side panel */
@media (min-width: 769px) {
  .ak-kit-drawer__handle {
    display: none;
  }

  .ak-kit-drawer:not([hidden]) .ak-kit-drawer__backdrop {
    opacity: 1;
    transition: none;
  }

  .ak-kit-drawer__panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(440px, 42vw);
    max-height: 100vh;
    border-radius: 0;
    box-shadow: -16px 0 48px rgba(15, 16, 32, 0.14);
    transform: translateX(100%);
  }

  .ak-kit-drawer.is-open .ak-kit-drawer__panel {
    transform: translateX(0);
  }

  .ak-kit-drawer__head {
    padding: 18px 20px 0;
  }

  .ak-kit-drawer__tabs {
    padding: 0 16px;
  }

  .ak-kit-drawer__body {
    padding: 18px 20px 24px;
  }
}

/* --- Create application kit (bottom sheet mobile / centered desktop) --- */
body.ak-create-sheet-open,
body.ak-picker-sheet-open {
  overflow: hidden;
}

.ak-create-sheet,
.ak-picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: inherit;
}

.ak-create-sheet[hidden],
.ak-picker-sheet[hidden] {
  display: none;
}

/* Backdrop matches job-details-modal (Show Details blur) */
.ak-create-sheet__backdrop,
.ak-picker-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 32, 0.32);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.ak-create-sheet.is-open .ak-create-sheet__backdrop,
.ak-picker-sheet.is-open .ak-picker-sheet__backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 601px) {
  .ak-create-sheet:not([hidden]) .ak-create-sheet__backdrop,
  .ak-picker-sheet:not([hidden]) .ak-picker-sheet__backdrop {
    opacity: 1;
    transition: none;
  }
}

.ak-create-sheet__panel,
.ak-picker-sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - 20px);
  max-width: 480px;
  max-height: min(92vh, 720px);
  margin: 0 auto calc(12px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(15, 16, 32, 0.16);
  transform: translateY(calc(105% + 24px));
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.ak-create-sheet.is-open .ak-create-sheet__panel,
.ak-picker-sheet.is-open .ak-picker-sheet__panel {
  transform: translateY(0);
  pointer-events: auto;
}

.ak-create-sheet__handle {
  flex-shrink: 0;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #d5dae3;
}

.ak-create-sheet__head,
.ak-picker-sheet__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  background: #ffffff;
}

.ak-create-sheet__title,
.ak-picker-sheet__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f1020;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-right: 8px;
}

.ak-create-sheet__close,
.ak-picker-sheet__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  background: #f4f6f8;
  color: #4f5268;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ak-create-sheet__close:hover,
.ak-picker-sheet__close:hover {
  background: #eef0f4;
  color: #0f1020;
}

.ak-create-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 12px;
  background: #f4f6f8;
  scroll-padding-bottom: 16px;
  scrollbar-width: none;
}

.ak-create-sheet__body::-webkit-scrollbar {
  display: none;
}

.ak-create-sheet__intro {
  margin: 0 0 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: none;
  border-radius: 18px;
}

.ak-create-sheet__footer {
  flex-shrink: 0;
  padding: 14px 14px 16px;
  border: none;
  background: #eef0f4;
  border-radius: 0 0 24px 24px;
}

.ak-create-sheet__submit {
  width: 100%;
  min-width: 0;
  height: 48px;
}

.ak-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ak-create-form [hidden],
.ak-field[hidden] {
  display: none !important;
}

/* Section cards — color only, no divider borders */
.ak-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: none;
}

.ak-field-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.ak-field-hint {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.45;
}

.ak-field-alt {
  margin: 6px 0 0;
  padding-top: 4px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  border: none;
}

.ak-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #3b66cf;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ak-link-btn:hover {
  color: #2547a3;
}

.ak-doc-select {
  width: 100%;
}

.ak-field .pref-select--outline select,
.ak-field .pref-input--outline,
.ak-field .ak-paste-area {
  background: #f4f6f8;
  border: none;
  border-radius: 14px;
  box-shadow: none;
}

.ak-field .pref-select--outline select:focus,
.ak-field .pref-input--outline:focus,
.ak-field .ak-paste-area:focus {
  background: #eef0f4;
  outline: none;
  box-shadow: none;
}

.ak-paste-area {
  width: 100%;
  resize: none;
  min-height: 72px;
  overflow: hidden;
  font-family: inherit;
  line-height: 1.55;
}

.ak-job-picker {
  position: relative;
}

.ak-job-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: none;
  border-radius: 16px;
  background: #f4f6f8;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.18s ease;
}

.ak-job-picker__trigger:hover {
  background: #eef0f4;
}

.ak-job-picker__trigger[aria-expanded="true"] {
  background: #eef0f4;
  box-shadow: none;
}

.ak-job-picker__logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ak-job-picker__logo--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ak-job-picker__logo--initials {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.ak-job-picker__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ak-job-picker__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f1020;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ak-job-picker__company {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.25;
}

.ak-job-picker__chev {
  flex-shrink: 0;
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.ak-job-picker__trigger[aria-expanded="true"] .ak-job-picker__chev {
  transform: rotate(180deg);
}

.ak-job-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 16, 32, 0.14);
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
}

.ak-job-picker__menu:not([hidden]) {
  display: block;
}

.ak-job-picker__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border: none;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.ak-job-picker__option:hover,
.ak-job-picker__option.is-selected {
  background: #f4f6f8;
}

.ak-advanced {
  border: none;
  border-radius: 18px;
  background: #ffffff;
  overflow: visible;
  box-shadow: none;
}

.ak-advanced__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #1f2440;
  list-style: none;
  user-select: none;
  background: #ffffff;
}

.ak-advanced__summary::-webkit-details-marker {
  display: none;
}

.ak-advanced__chev {
  font-size: 11px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.ak-advanced[open] .ak-advanced__chev {
  transform: rotate(180deg);
}

.ak-advanced__body {
  padding: 4px 16px 16px;
  border: none;
  background: #f4f6f8;
  border-radius: 0 0 18px 18px;
}

.ak-advanced__body .ak-field-label {
  margin-top: 12px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 6px;
}

.ak-advanced__body .ak-field-hint {
  margin-bottom: 8px;
}

.ak-advanced__body .ak-paste-area {
  background: #ffffff;
  border: none;
  border-radius: 14px;
  overflow: auto;
  min-height: 96px;
  max-height: 140px;
}

/* Job picker: inline menu on desktop, bottom sheet on mobile */
.ak-picker-sheet {
  z-index: 4100;
}

.ak-picker-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #f4f6f8;
}

.ak-picker-sheet__body .ak-job-picker__option {
  margin-bottom: 10px;
  padding: 14px;
  background: #ffffff;
  border: none;
  border-radius: 18px;
}

.ak-picker-sheet__body .ak-job-picker__option:hover,
.ak-picker-sheet__body .ak-job-picker__option.is-selected {
  background: #eef0f4;
}

.ak-picker-sheet__body .ak-job-picker__option.is-selected {
  background: #e8ecf4;
  box-shadow: none;
}

@media (min-width: 769px) {
  .ak-create-sheet {
    justify-content: center;
    align-items: center;
    padding: 24px;
  }

  .ak-create-sheet__handle {
    display: none;
  }

  .ak-create-sheet__panel {
    width: 100%;
    max-width: 480px;
    max-height: min(88vh, 680px);
    margin: 0;
    border-radius: 24px;
    box-shadow: 0 24px 48px -16px rgba(15, 16, 32, 0.28);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition:
      transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.26s ease;
  }

  .ak-create-sheet.is-open .ak-create-sheet__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  /* Scroll form when Advanced opens — was overflow:visible and clipped content */
  .ak-create-sheet__body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c5cad3 transparent;
  }

  .ak-create-sheet__body::-webkit-scrollbar {
    display: block;
    width: 8px;
  }

  .ak-create-sheet__body::-webkit-scrollbar-thumb {
    background: #c5cad3;
    border-radius: 999px;
  }

  .ak-create-sheet__body::-webkit-scrollbar-track {
    background: transparent;
  }

  .ak-job-picker__menu:not([hidden]) {
    display: block;
  }

  .ak-picker-sheet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ak-job-picker__menu {
    display: none !important;
  }
}

/* ========================================================================== */
/* ===== RESUMES CSS  -  styles used only on dashboard/resumes.html ===== */
/* ========================================================================== */

.resumes-page.dash-main {
  background-color: #ffffff;
}

.resumes-page .dash-content-wrapper {
  background-color: #ffffff;
}

.resumes-page .search-jobs-container {
  border-bottom: none;
  margin-bottom: 22px;
}

/* --- New Resume button (green gradient — matches Create New Kit / Search) --- */
.rc-create-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(#2AD66D, #16A34A);
  color: #fff;
  border: 1px solid #15803D;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  flex-shrink: 0;
}

.rc-create-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 6px 16px rgba(34, 197, 94, 0.35);
}

.rc-create-btn:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

/* --- Card list --- */
.rc-resume-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Card --- */
.rc-resume-card {
  --rc-logo-size: 44px;
  --rc-header-gap: 12px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #f4f6f8;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  box-shadow: none;
  transition: border-color 0.2s ease;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.rc-resume-card:hover {
  border-color: #d0d5dd;
}

/* --- Header (logo + info) --- */
.rc-resume-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--rc-header-gap);
  padding-right: 36px;
}

.rc-resume-card__logo {
  width: var(--rc-logo-size);
  height: var(--rc-logo-size);
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #DC2626;
  font-size: 22px;
}

.rc-resume-card__logo--docx {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #2563EB;
}

.rc-resume-card__info {
  flex: 1;
  min-width: 0;
}

.rc-resume-card__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.rc-resume-card__meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rc-resume-card__meta span {
  color: #d1d5db;
  margin: 0 4px;
}

/* --- File info row (PDF · 2.4 MB · 2 pages) --- */
.rc-resume-card__file-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rc-resume-card__file-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid rgba(15, 16, 32, 0.1);
  color: #4f5268;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}

.rc-resume-card__file-pill i {
  font-size: 10.5px;
  color: #6b7280;
}

/* --- Actions row (desktop: right-aligned) --- */
.rc-resume-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
}

/* --- Shared button base --- */
.rc-resume-card__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  transition: all 0.22s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
}

/* Download PDF — gray gradient with inset (btn-22 style) */
.rc-resume-card__btn--download {
  background: linear-gradient(#F9FAFB, #E5E7EB);
  color: #374151;
  border: 1px solid #D1D5DB;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.rc-resume-card__btn--download:hover {
  transform: translateY(-2px);
  background: linear-gradient(#FFFFFF, #ECEEF1);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rc-resume-card__btn--download:active {
  transform: translateY(1px);
}

/* Edit Resume — blue gradient with 3D lift (matches Job Search Details) */
.rc-resume-card__btn--edit {
  -webkit-appearance: none;
  appearance: none;
  background-color: #3b66cf;
  background-image: linear-gradient(180deg, #5b82e8 0%, #3b66cf 55%, #2d52b8 100%);
  color: #ffffff;
  border: 1px solid #2547a3;
  box-shadow: 0 4px 14px rgba(59, 102, 207, 0.42);
}

.rc-resume-card__btn--edit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(59, 102, 207, 0.5);
}

.rc-resume-card__btn--edit:active {
  transform: translateY(1px);
  filter: brightness(0.97);
  box-shadow: 0 2px 10px rgba(59, 102, 207, 0.32);
}

/* --- Menu (3-dot) — top-right of card --- */
.rc-menu-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.rc-menu-trigger {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rc-menu-trigger:hover {
  background-color: rgba(15, 16, 32, 0.06);
  color: #1a1a1a;
}

.rc-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 16, 32, 0.12);
  min-width: 200px;
  z-index: 20;
  display: none;
  overflow: hidden;
}

.rc-dropdown-menu.rc-show {
  display: block;
}

.rc-dropdown-menu ul {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.rc-dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.rc-dropdown-menu li a:hover {
  background-color: #f8fafc;
}

.rc-dropdown-menu li.rc-danger-action a {
  color: #dc2626;
}

.rc-dropdown-menu li.rc-danger-action a:hover {
  background-color: #fef2f2;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .rc-resume-card {
    padding: 12px;
    gap: 10px;
  }

  .rc-resume-card__title {
    font-size: 15px;
    word-break: break-all;
  }

  .rc-resume-card__file-info {
    gap: 5px;
  }

  .rc-resume-card__file-pill {
    font-size: 11px;
    padding: 3px 9px;
  }

  .rc-resume-card__actions {
    align-self: stretch;
    width: 100%;
    max-width: none;
    justify-content: stretch;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .rc-resume-card__btn--desktop-only {
    display: none;
  }

  .rc-resume-card__btn {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }
}
/* ========================================================================== */
/* ===== COVER LETTERS CSS  -  styles used only on dashboard/cover-letters.html ===== */
/* ========================================================================== */

.cover-letters-page.dash-main {
  background-color: #ffffff;
}

.cover-letters-page .dash-content-wrapper {
  background-color: #ffffff;
}

.cover-letters-page .search-jobs-container {
  border-bottom: none;
  margin-bottom: 22px;
}

/* --- New Cover Letter button (green gradient) --- */
.cl-create-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(#2AD66D, #16A34A);
  color: #fff;
  border: 1px solid #15803D;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  flex-shrink: 0;
}

.cl-create-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 6px 16px rgba(34, 197, 94, 0.35);
}

.cl-create-btn:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

/* --- Card list --- */
.cl-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Card --- */
.cl-card {
  --cl-logo-size: 44px;
  --cl-header-gap: 12px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #f4f6f8;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  box-shadow: none;
  transition: border-color 0.2s ease;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.cl-card:hover {
  border-color: #d0d5dd;
}

/* --- Delete button (top-right) --- */
.cl-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 5;
}

.cl-delete-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* --- Header (logo + info) --- */
.cl-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--cl-header-gap);
  padding-right: 36px;
}

.cl-card__logo {
  width: var(--cl-logo-size);
  height: var(--cl-logo-size);
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #DC2626;
  font-size: 22px;
}

.cl-card__logo--docx {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #2563EB;
}

.cl-card__info {
  flex: 1;
  min-width: 0;
}

.cl-card__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.cl-card__meta {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* --- File info row (PDF · 1.1 MB · 1 page) --- */
.cl-card__file-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cl-card__file-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid rgba(15, 16, 32, 0.1);
  color: #4f5268;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}

.cl-card__file-pill i {
  font-size: 10.5px;
  color: #6b7280;
}

/* --- Actions row (right-aligned on desktop) --- */
.cl-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
}

/* --- Shared button base --- */
.cl-card__btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  transition: all 0.22s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
}

/* Download — gray gradient with inset (btn-22 style) */
.cl-card__btn--download {
  background: linear-gradient(#F9FAFB, #E5E7EB);
  color: #374151;
  border: 1px solid #D1D5DB;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.cl-card__btn--download:hover {
  transform: translateY(-2px);
  background: linear-gradient(#FFFFFF, #ECEEF1);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cl-card__btn--download:active {
  transform: translateY(1px);
}

/* Open — blue gradient with 3D lift */
a.cl-card__btn {
  text-decoration: none;
}

.cl-card__btn--open {
  -webkit-appearance: none;
  appearance: none;
  background-color: #3b66cf;
  background-image: linear-gradient(180deg, #5b82e8 0%, #3b66cf 55%, #2d52b8 100%);
  color: #ffffff;
  border: 1px solid #2547a3;
  box-shadow: 0 4px 14px rgba(59, 102, 207, 0.42);
}

.cl-card__btn--open:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(59, 102, 207, 0.5);
}

.cl-card__btn--open:active {
  transform: translateY(1px);
  filter: brightness(0.97);
  box-shadow: 0 2px 10px rgba(59, 102, 207, 0.32);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cl-card {
    padding: 12px;
    gap: 10px;
  }

  .cl-card__title {
    font-size: 15px;
    word-break: break-all;
  }

  .cl-card__file-info {
    gap: 5px;
  }

  .cl-card__file-pill {
    font-size: 11px;
    padding: 3px 9px;
  }

  .cl-card__actions {
    align-self: stretch;
    width: 100%;
    max-width: none;
    justify-content: stretch;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .cl-card__btn {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* --- Cover letter editor (cover-letter-editor.html) --- */
.cl-editor-page.dash-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  font-family: inherit;
}

.cl-editor-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* Header — color zones like Application Kits / kit drawer */
.cl-editor-page .cl-editor-head.dash-sticky-head {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-bottom: none;
  background: #ffffff;
}

.cl-editor-head-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f4f6f8;
}

.cl-editor-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3b66cf;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cl-editor-back:hover {
  color: #2547a3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cl-editor-head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cl-editor-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px 14px;
  margin-bottom: 0;
  background: #ffffff;
}

.cl-editor-intro .search-jobs-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.cl-editor-intro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cl-editor-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #4f5268;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.cl-editor-icon-btn:hover:not(:disabled) {
  background: #eef0f4;
  color: #1f2440;
}

.cl-editor-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cl-editor-download {
  min-width: 0;
  height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

.cl-editor-download i {
  font-size: 13px;
}

.cl-editor-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.cl-editor-canvas {
  flex: 1;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #f4f6f8;
  padding: 24px 20px 32px;
  scrollbar-width: none;
}

.cl-editor-canvas::-webkit-scrollbar {
  display: none;
}

.cl-editor-doc {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 16, 32, 0.06);
  padding: 48px 52px 56px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.65;
  color: #1f2440;
  outline: none;
}

.cl-editor-doc:focus {
  box-shadow: 0 8px 28px rgba(15, 16, 32, 0.08), 0 0 0 3px rgba(59, 102, 207, 0.1);
}

.cl-editor-doc-head {
  margin-bottom: 22px;
}

.cl-editor-doc-name {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0f1020;
  line-height: 1.2;
}

.cl-editor-doc-contact {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.cl-editor-doc-date {
  margin: 0 0 20px;
  font-size: 14px;
  color: #4f5268;
}

.cl-editor-doc p {
  margin: 0 0 16px;
}

.cl-editor-mobile-bar,
.cl-editor-mobile-menu,
.cl-editor-float-tools,
.cl-editor-mobile-sheet {
  display: none;
}

.cl-editor-head--desktop {
  display: flex;
}

.cl-editor-canvas-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cl-editor-canvas-scaler {
  transform-origin: top center;
  transition: transform 0.2s ease;
}

.cl-editor-doc-body p {
  margin: 0 0 16px;
}

.cl-editor-ai {
  width: min(420px, 42vw);
  min-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  background: #ffffff;
  border-left: 1px solid #eef0f4;
}

.cl-editor-ai-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e8eaef;
  background: #ffffff;
}

.cl-editor-ai-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.cl-editor-ai-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f1020;
  letter-spacing: -0.02em;
}

.cl-editor-ai-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0f1020;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cl-editor-ai-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #4f5268;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cl-editor-ai-close:hover {
  background: #f4f6f8;
  color: #1f2440;
}

.cl-editor-page.cl-editor-ai-hidden .cl-editor-ai {
  display: none;
}

.cl-editor-ai-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: none;
}

.cl-editor-ai-body::-webkit-scrollbar {
  display: none;
}

.cl-editor-ai-intro {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #374151;
}

.cl-editor-ai-thread {
  flex: 1;
  min-height: 120px;
  background: #ffffff;
}

.cl-editor-ai-foot {
  flex-shrink: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e8eaef;
  background: #ffffff;
}

.cl-editor-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.cl-editor-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cl-editor-chip:hover {
  background: #e8eaef;
  color: #1f2440;
}

.cl-editor-ai-compose {
  margin: 0;
}

.cl-editor-ai-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  border: 1px solid #c5cad3;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cl-editor-ai-input-wrap:focus-within {
  border-color: #9aa3b2;
  box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.06);
}

.cl-editor-prompt {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  max-height: 120px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 2px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1f2440;
  outline: none;
  overflow-y: auto;
  scrollbar-width: none;
}

.cl-editor-prompt::-webkit-scrollbar {
  display: none;
}

.cl-editor-prompt::placeholder {
  color: #9aa3b2;
}

.cl-editor-send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cl-editor-send:hover {
  background: #d1d5db;
  color: #374151;
}

/* --- Cover letter editor: mobile (preview + bottom sheet) --- */
body.cl-editor-mobile-active .dash-shell {
  padding-bottom: 0;
}

body.cl-editor-mobile-active .mobile-bottom-nav {
  display: none;
}

@media (max-width: 960px) {
  .cl-editor-page ~ .mobile-bottom-nav {
    display: none;
  }

  .cl-editor-page,
  .cl-editor-page .cl-editor-mobile-title,
  .cl-editor-page .cl-editor-sheet-tab,
  .cl-editor-page .cl-editor-field-label,
  .cl-editor-page .cl-editor-field-input,
  .cl-editor-page .cl-editor-field-textarea,
  .cl-editor-page .cl-editor-ai-intro,
  .cl-editor-page .cl-editor-prompt,
  .cl-editor-page .cl-editor-zoom-btn,
  .cl-editor-page .cl-editor-mobile-menu-item {
    font-family: inherit;
  }

  .cl-editor-page.dash-main {
    height: 100vh;
    height: 100dvh;
  }

  .cl-editor-head--desktop {
    display: none;
  }

  .cl-editor-intro-actions #clEditorDownload,
  .cl-editor-head--desktop .cl-editor-download {
    display: none !important;
  }

  .cl-editor-mobile-bar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    background: #ffffff;
    border-bottom: 1px solid #e8eaef;
  }

  .cl-editor-mobile-back {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #1f2440;
    font-size: 18px;
    text-decoration: none;
  }

  .cl-editor-mobile-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f1020;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cl-editor-mobile-more {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #1f2440;
    font-size: 18px;
    cursor: pointer;
  }

  .cl-editor-mobile-menu {
    position: absolute;
    top: calc(56px + env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 20;
    min-width: 180px;
    padding: 6px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 16, 32, 0.14);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .cl-editor-mobile-menu[hidden] {
    display: none !important;
  }

  .cl-editor-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1f2440;
    cursor: pointer;
    text-align: left;
  }

  .cl-editor-mobile-menu-item:hover:not(:disabled) {
    background: #f4f6f8;
  }

  .cl-editor-mobile-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .cl-editor-layout {
    position: relative;
  }

  .cl-editor-workspace {
    flex-direction: column;
  }

  .cl-editor-ai--desktop {
    display: none;
  }

  .cl-editor-canvas-wrap {
    flex: 1;
    min-height: 0;
  }

  .cl-editor-canvas {
    padding: 16px 16px 120px;
    scrollbar-width: none;
  }

  .cl-editor-doc {
    padding: 28px 22px 36px;
    pointer-events: none;
    user-select: none;
  }

  .cl-editor-doc[contenteditable="true"] {
    -webkit-user-modify: read-only;
  }

  .cl-editor-doc:focus {
    box-shadow: 0 8px 28px rgba(15, 16, 32, 0.06);
  }

  .cl-editor-float-tools {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    pointer-events: none;
    z-index: 5;
  }

  .cl-editor-float-tools > * {
    pointer-events: auto;
  }

  .cl-editor-zoom {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(15, 16, 32, 0.1);
  }

  .cl-editor-zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #1f2440;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
  }

  .cl-editor-zoom-btn:hover {
    background: #f4f6f8;
  }

  .cl-editor-float-tools .pref-btn--save.cl-editor-float-download {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0;
    letter-spacing: 0;
  }

  .cl-editor-float-download i {
    font-size: 16px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
  }

  .cl-editor-float-download span {
    display: none;
  }

  .cl-editor-mobile-sheet {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 16, 32, 0.1);
    z-index: 10;
    max-height: min(78vh, 620px);
    transition: max-height 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .cl-editor-mobile-sheet[data-sheet-state="peek"] {
    max-height: 118px;
  }

  .cl-editor-mobile-sheet[data-sheet-state="expanded"] {
    max-height: min(78vh, 620px);
  }

  .cl-editor-sheet-handle {
    flex-shrink: 0;
    width: 100%;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
  }

  .cl-editor-sheet-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 999px;
    background: #d5dae3;
  }

  .cl-editor-sheet-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px 12px;
    flex-shrink: 0;
  }

  .cl-editor-sheet-tab {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #9aa3b2;
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.15s ease;
  }

  .cl-editor-sheet-tab.is-active {
    color: #0f1020;
    padding: 8px 22px;
    border: 1.5px solid #0f1020;
    border-radius: 999px;
    background: #ffffff;
  }

  .cl-editor-mobile-sheet[data-sheet-state="peek"] .cl-editor-sheet-tab[data-tab="ai"]:not(.is-active) {
    padding: 8px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    color: #374151;
  }

  .cl-editor-mobile-sheet[data-sheet-state="peek"] .cl-editor-sheet-panels,
  .cl-editor-mobile-sheet[data-sheet-state="peek"] .cl-editor-sheet-collapse {
    display: none;
  }

  .cl-editor-sheet-panels {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }

  .cl-editor-sheet-panels::-webkit-scrollbar {
    display: none;
  }

  .cl-editor-sheet-pane[hidden] {
    display: none;
  }

  .cl-editor-details-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 8px;
  }

  .cl-editor-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f1020;
  }

  .cl-editor-field-input,
  .cl-editor-field-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: #1f2440;
    padding: 14px 16px;
    border: 1px solid #e0e4eb;
    border-radius: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    scrollbar-width: none;
  }

  .cl-editor-field-input:focus,
  .cl-editor-field-textarea:focus {
    border-color: #9aa3b2;
    box-shadow: 0 0 0 3px rgba(15, 16, 32, 0.05);
  }

  .cl-editor-field-textarea {
    min-height: 200px;
    resize: vertical;
  }

  .cl-editor-field-textarea::-webkit-scrollbar {
    display: none;
  }

  .cl-editor-ai-intro--mobile {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
  }

  .cl-editor-ai-compose--mobile .cl-editor-ai-input-wrap {
    min-height: 120px;
    align-items: stretch;
    padding: 12px 12px 12px 14px;
  }

  .cl-editor-ai-compose--mobile .cl-editor-prompt {
    min-height: 88px;
    max-height: none;
  }

  .cl-editor-sheet-collapse {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 40px);
    height: 44px;
    margin: 8px auto calc(12px + env(safe-area-inset-bottom, 0px));
    border: 1px solid #e0e4eb;
    border-radius: 999px;
    background: #ffffff;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
  }

  .cl-editor-sheet-collapse:hover {
    background: #f9fafb;
  }
}
/* ========================================================================== */
/* ===== INTERVIEW BUDDY CSS  -  styles used only on dashboard/interview-buddy.html ===== */
/* ========================================================================== */
.interview-buddy-page .dash-page-scroll {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.ibuddy-body {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

.ibuddy-video-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ibuddy-video-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000000;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ibuddy-video-play {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ibuddy-video-play i {
  line-height: 1;
}

.ibuddy-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 48px;
  padding: 0 28px;
  font-family: inherit;
  cursor: pointer;
}

.ibuddy-unlock-btn i {
  font-size: 14px;
}

@media (max-width: 600px) {
  .ibuddy-body {
    padding: 4px 12px 24px;
  }

  .ibuddy-video-screen {
    border-radius: 18px;
  }

  .ibuddy-video-play {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .ibuddy-unlock-btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}
/* ========================================================================== */
/* ===== MOCK INTERVIEWS CSS  -  styles used only on dashboard/mock-interviews.html ===== */
/* ========================================================================== */
.mock-interviews-page .dash-page-scroll {
  position: relative;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}

.mock-empty {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 48px 24px 40px 32px;
  font-family: inherit;
}

.mock-empty::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: min(55vw, 520px);
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 70% at 100% 45%,
    rgba(22, 163, 74, 0.1) 0%,
    rgba(22, 163, 74, 0.04) 42%,
    transparent 72%
  );
  z-index: 0;
}

.mock-empty__title {
  margin-bottom: 8px;
}

.mock-empty__desc {
  margin-bottom: 24px;
}

.mock-empty__btn {
  font-family: inherit;
}

@media (max-width: 600px) {
  .mock-empty {
    padding: 32px 20px 32px 20px;
  }

  .mock-empty__desc {
    margin-bottom: 20px;
  }

  .mock-interviews-page .mock-empty__btn.pref-btn--save {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }
}

/* ========================================================================== */
/* ===== USER ACCOUNT POPOVER (sidebar) ===== */
/* ========================================================================== */
.dash-user {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.dash-user:hover {
  background: #fafafd;
}

.user-popover {
  position: fixed;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 16px 40px -12px rgba(15, 16, 32, 0.22),
    0 4px 12px rgba(15, 16, 32, 0.08);
  padding: 8px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.user-popover--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-popover-email {
  display: block;
  padding: 10px 12px 12px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7080;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-popover-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  margin: 4px 0 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1f2533;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.user-popover-link i {
  width: 18px;
  font-size: 14px;
  color: #6b7080;
  text-align: center;
}

.user-popover-link:hover {
  background: #f5f5f9;
}

.user-popover-link--danger,
.user-popover-link--danger i {
  color: #dc2626;
}

.user-popover-link--danger:hover {
  background: #fef2f2;
}


/* ========================================================================== */
/* ===== ACCOUNT SETTINGS PAGE  -  dashboard/settings.html ===== */
/* ========================================================================== */
.acct-page {
  --acct-purple: #8b7cf8;
  --acct-purple-hover: #9d8ff9;
  --acct-purple-deep: #7c6ef7;
  --acct-purple-border: #c4b5fd;
  --acct-purple-soft: #f5f3ff;
  --acct-purple-glow: rgba(139, 124, 248, 0.32);
  padding: 24px 28px 40px;
  background: #ffffff;
}

.acct-page-head {
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.acct-page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f1020;
  letter-spacing: -0.02em;
}

.acct-tabs-wrap {
  margin-bottom: 28px;
}

.acct-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.acct-tabs::-webkit-scrollbar { display: none; }

.acct-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7080;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.acct-tab:hover {
  color: #1f2533;
}

.acct-tab--active {
  background: #ffffff;
  color: var(--acct-purple);
  box-shadow: 0 1px 3px var(--acct-purple-glow);
}

.acct-tab--active:hover {
  color: var(--acct-purple-deep);
}

.acct-tab--danger {
  color: #dc2626;
}

.acct-tab--danger:hover {
  color: #b91c1c;
}

.acct-tab--danger.acct-tab--active {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}

.acct-panel {
  display: none;
  animation: acctFade 0.18s ease;
}

.acct-panel--active {
  display: block;
}

@keyframes acctFade {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.acct-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 12px;
}

.acct-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f1020;
  letter-spacing: -0.01em;
}

/* Save — lighter purple CTA */
.acct-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--acct-purple);
  background-image: linear-gradient(180deg, var(--acct-purple-hover) 0%, var(--acct-purple) 55%, var(--acct-purple-deep) 100%);
  color: #ffffff;
  border: 1px solid var(--acct-purple-border);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--acct-purple-glow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.acct-save-btn i {
  font-size: 11px;
  color: #ffffff;
  opacity: 0.95;
}

.acct-save-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(157, 143, 249, 0.45);
  background-image: linear-gradient(180deg, #b4a6fc 0%, var(--acct-purple-hover) 55%, var(--acct-purple) 100%);
}

.acct-save-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px var(--acct-purple-glow);
}

.acct-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.acct-field {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr);
  align-items: center;
  gap: 24px;
  padding: 16px 18px;
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  transition: background-color 0.18s ease;
}

.acct-field:hover {
  background: #eceef2;
}

.acct-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2533;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.acct-help {
  font-size: 13px;
  color: #b8bcc7;
  cursor: help;
}

.acct-control {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.acct-control--toggle {
  justify-content: flex-end;
}

.acct-input,
.acct-select {
  width: 100%;
  max-width: 360px;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1f2533;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(15, 16, 32, 0.04);
  transition: box-shadow 0.18s ease;
}

.acct-input {
  outline: none;
}

.acct-input:focus,
.acct-select:focus {
  box-shadow:
    0 1px 2px rgba(15, 16, 32, 0.04),
    0 0 0 3px rgba(139, 124, 248, 0.22);
}

.acct-select {
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.acct-select-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.acct-select-value--muted {
  color: #4b5563;
  font-weight: 500;
}

.acct-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.acct-select-icon {
  color: var(--acct-purple);
  font-size: 13px;
}

.acct-select-chev {
  color: #9ca3af;
  font-size: 11px;
  margin-left: 8px;
}

.acct-toggle {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.acct-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.acct-toggle-track {
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background-color 0.18s ease;
}

.acct-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 16, 32, 0.25);
  transition: transform 0.2s ease;
}

.acct-toggle input:checked + .acct-toggle-track {
  background: var(--acct-purple);
  box-shadow: 0 2px 8px var(--acct-purple-glow);
}

.acct-toggle input:checked + .acct-toggle-track .acct-toggle-thumb {
  transform: translateX(20px);
}

.acct-empty {
  text-align: center;
  padding: 48px 24px 32px;
}

.acct-empty-icon {
  font-size: 36px;
  color: var(--acct-purple);
  opacity: 0.5;
  margin-bottom: 14px;
}

.acct-empty-icon--danger {
  color: #dc2626;
  opacity: 1;
}

.acct-empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f1020;
}

.acct-empty-sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: #6b7080;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.acct-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.acct-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.acct-cta-btn:active {
  transform: translateY(1px);
}

/* Primary CTA — lighter purple */
.acct-cta-btn--upgrade {
  background-color: var(--acct-purple);
  background-image: linear-gradient(180deg, var(--acct-purple-hover) 0%, var(--acct-purple) 55%, var(--acct-purple-deep) 100%);
  color: #ffffff;
  border: 1px solid var(--acct-purple-border);
  box-shadow: 0 4px 14px var(--acct-purple-glow);
}

.acct-cta-btn--upgrade:hover {
  background-image: linear-gradient(180deg, #b4a6fc 0%, var(--acct-purple-hover) 55%, var(--acct-purple) 100%);
  box-shadow: 0 6px 18px rgba(157, 143, 249, 0.45);
}

/* Sign out — outline only (no orange); red text for meaning */
.acct-cta-btn--danger {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
  box-shadow: none;
}

.acct-cta-btn--danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  box-shadow: none;
  filter: none;
}

/* Support — outline like job-search secondary buttons */
.acct-cta-btn--ghost {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.acct-cta-btn--ghost:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: none;
  filter: none;
}

/* === Profile strip (top of Preferences) === */
.acct-profile-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--acct-purple-soft);
  border: none;
  border-radius: 14px;
}

.acct-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ede9fe;
  color: var(--acct-purple);
  border: 1px solid rgba(196, 181, 253, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px var(--acct-purple-glow);
}

.acct-profile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.acct-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f1020;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-profile-email {
  font-size: 12.5px;
  color: #6b7080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-plan-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  background: #ffffff;
  color: var(--acct-purple-deep);
  border: 1px solid var(--acct-purple-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .acct-page {
    padding: 18px 16px 28px;
  }

  .acct-page-head h1 {
    font-size: 20px;
  }

  .acct-tabs-wrap {
    margin-bottom: 20px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }

  .acct-tabs {
    display: flex;
    width: 100%;
  }

  .acct-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .acct-panel-head {
    padding-bottom: 12px;
    margin-bottom: 0;
  }

  .acct-panel-title {
    font-size: 16px;
  }

  .acct-save-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .acct-profile-strip {
    padding: 12px;
    gap: 10px;
    margin-bottom: 14px;
  }

  .acct-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .acct-profile-name {
    font-size: 13.5px;
  }

  .acct-profile-email {
    font-size: 12px;
  }

  .acct-plan-badge {
    padding: 4px 8px;
    font-size: 10px;
  }

  .acct-cta-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .acct-field {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .acct-control {
    justify-content: flex-start;
  }

  .acct-input,
  .acct-select {
    max-width: 100%;
    height: 42px;
    font-size: 13.5px;
  }
}
