:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --ink: #0d0f1a;
  --muted: #6b7280;
  --panel: #ffffff;
  --line: #d9dee4;
  --green: #20a464;
  --green-soft: #eafbf1;
  --red: #dfe3e8;
  --red-soft: #f2f4f7;
  --blue: #5b2cff;
  --cyan: #8a2be2;
  --violet: #5b2cff;
  --lime: #ff8a00;
  --orange: #ff5722;
  --solid-action: #5b2cff;
  --accent-grad: linear-gradient(135deg, #5b2cff 0%, #8a2be2 48%, #ff5722 100%);
  --accent-soft: #f4efff;
  --linkedin-dark: #313335;
  --linkedin-blue: #0a66c2;
  --linkedin-light: #cacCCE;
  --indeed: #2557a7;
  --indeed-soft: #eef4ff;
  --glassdoor: #0caa41;
  --glassdoor-soft: #ecfdf3;
  --ats: #0f766e;
  --ats-soft: #ecfdf5;
  --amber: #a66b16;
  --shadow: 0 18px 42px rgba(22, 31, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 260px);
  color: var(--ink);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="home"] .app-shell,
body[data-page="home"] .legal-page,
body[data-page="home"] .account-page,
body[data-page="app"] .landing-page,
body[data-page="app"] .legal-page,
body[data-page="app"] .account-page,
body[data-page="privacy"] .landing-page,
body[data-page="privacy"] .app-shell,
body[data-page="privacy"] .account-page,
body[data-page="privacy"] #termsPage,
body[data-page="privacy"] #contactPage,
body[data-page="terms"] .landing-page,
body[data-page="terms"] .app-shell,
body[data-page="terms"] .account-page,
body[data-page="terms"] #privacyPage,
body[data-page="terms"] #contactPage,
body[data-page="contact"] .landing-page,
body[data-page="contact"] .app-shell,
body[data-page="contact"] .account-page,
body[data-page="contact"] #privacyPage,
body[data-page="contact"] #termsPage,
body[data-page="account"] .landing-page,
body[data-page="account"] .app-shell,
body[data-page="account"] .legal-page {
  display: none;
}

html {
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 12px 0 44px;
}

.site-nav {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 10px 0;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-brand,
.site-link,
.account-button,
.account-dropdown button {
  background: transparent;
  color: var(--ink);
}

.site-brand {
  font-size: 1.12rem;
  font-weight: 950;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  min-height: 54px;
  overflow: visible;
  padding: 2px 0;
}

.brand-lockup img {
  display: block;
  width: 216px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: normal;
}

.brand-wordmark {
  color: #050b20;
  font-size: 1.24rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark strong,
.landing-hero h1 span {
  color: var(--orange);
}

.site-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-link {
  min-height: 30px;
  border-radius: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
}

.site-link.active {
  background: transparent;
  color: var(--orange);
}

.site-auth {
  display: flex;
  justify-content: flex-end;
}

.google-login,
.bypass-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.google-login {
  background: var(--solid-action);
  color: white;
}

.bypass-login {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.bypass-login.disabled-login,
.bypass-login:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  border-color: #d8dee8;
  color: #8b95a5;
  background: #f4f6f9;
}

button.bypass-login {
  border-style: solid;
  font: inherit;
}

.small-login {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.account-menu {
  position: relative;
  z-index: 130;
}

.account-button {
  min-height: 30px;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 10px;
}

.account-dropdown.open {
  display: grid;
  gap: 8px;
}

.account-dropdown span {
  color: var(--muted);
  font-size: 0.84rem;
  word-break: break-word;
}

.account-dropdown button {
  min-height: 36px;
  border-radius: 8px;
  background: #f1f3f5;
  font-weight: 850;
}

.landing-page {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
}

.landing-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: -12px auto 18px;
}

.landing-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
}

.landing-kicker {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.8rem);
  font-weight: 950;
}

.landing-copy {
  width: min(760px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.auth-error {
  margin: 0;
  color: #b91c1c;
  font-weight: 750;
}

.landing-graphic {
  margin: 0 auto;
  width: min(1240px, 100%);
}

.landing-graphic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(22, 31, 43, 0.08);
}

.workflow-benefits {
  width: min(1120px, 100%);
  margin: 32px auto 0;
  padding: 32px 0 6px;
  border-top: 1px solid rgba(98, 46, 255, 0.14);
}

.workflow-benefits-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin: 0 auto 20px;
}

.workflow-benefits-copy span {
  border: 1px solid rgba(98, 46, 255, 0.18);
  border-radius: 999px;
  background: rgba(98, 46, 255, 0.08);
  color: var(--solid-start);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  padding: 7px 13px;
  text-transform: uppercase;
}

.workflow-benefits-copy h2 {
  width: min(860px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: 1;
}

.workflow-benefits-copy h2::after {
  content: "";
  display: block;
  width: 148px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b2cff, #f72585, #ff5a1f);
}

.workflow-benefits-copy p {
  width: min(900px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

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

.workflow-benefits-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(22, 31, 43, 0.05);
}

.workflow-benefits-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff5a1f, #f72585, #ff8a2a);
}

.workflow-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5a1f, #f72585 62%, #5b2cff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 90, 31, 0.24);
}

.workflow-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.workflow-benefits-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.workflow-benefits-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.38;
}

.landing-slide-section {
  width: min(1240px, 100%);
  margin: 34px auto 0;
  padding: 30px 0 6px;
  border-top: 1px solid rgba(98, 46, 255, 0.14);
}

.landing-slide-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin: 0 auto 18px;
}

.landing-slide-copy span {
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.08);
  color: #f04b12;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  padding: 7px 13px;
  text-transform: uppercase;
}

.landing-slide-copy h2 {
  width: min(860px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: 1;
}

.landing-slide-copy p {
  width: min(820px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.landing-slide-graphic {
  margin: 0;
}

.landing-slide-graphic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #050711;
  box-shadow: 0 22px 70px rgba(22, 31, 43, 0.16);
}

.pricing-section {
  width: min(1120px, 100%);
  margin: 28px auto 0;
  scroll-margin-top: 22px;
}

.pricing-intro {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  margin: 0 auto 18px;
}

.pricing-intro span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: 1;
}

.pricing-intro p {
  width: min(780px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.feature-strip div,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-strip div {
  padding: 14px;
}

.feature-strip strong {
  display: block;
  margin-bottom: 5px;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.pricing-card.featured {
  border-color: rgba(26, 60, 255, 0.18);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--accent-grad) border-box;
  border: 1px solid transparent;
}

.pricing-card span {
  color: var(--orange);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.pricing-card h3 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
}

.pricing-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 950;
}

.pricing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 170px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 900;
  padding: 0 18px;
}

.pricing-card.featured .pricing-button {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.instagram-section {
  display: grid;
  gap: 12px;
  width: min(990px, 100%);
  margin: 30px auto 0;
}

.instagram-head {
  display: block;
}

.instagram-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 950;
}

.instagram-head a {
  color: var(--solid-action);
  text-decoration: none;
}

.instagram-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.instagram-empty a {
  color: var(--orange);
}

.instagram-frame {
  max-height: min(530px, 68vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dbe2eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  padding: 10px;
}

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

.instagram-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f8fafc;
  text-decoration: none;
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px auto 0;
  padding-bottom: 10px;
}

.landing-footer button,
.legal-back {
  min-height: 32px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-weight: 800;
}

.landing-footer button:hover,
.legal-back:hover {
  color: var(--orange);
}

.legal-page {
  width: min(860px, calc(100vw - 32px));
  margin: 34px auto 60px;
}

.account-page {
  width: min(1180px, calc(100vw - 32px));
  margin: 34px auto 90px;
}

.account-stage {
  display: grid;
  gap: 18px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.account-hero span,
.account-card span {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-hero h1,
.account-card h2 {
  margin: 5px 0 3px;
}

.account-hero p,
.account-card p {
  margin: 0;
  color: var(--muted);
}

.account-grid,
.account-metrics {
  display: grid;
  gap: 12px;
}

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

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

.account-daily-usage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.daily-limit-card {
  padding: 18px 20px;
}

.daily-limit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.daily-limit-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-limit-head strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
}

.daily-limit-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
  margin-top: 12px;
}

.daily-limit-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 0.25s ease;
}

.cover-budget-card .daily-limit-track span {
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.daily-limit-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.account-card,
.account-metric {
  padding: 20px;
}

.account-metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.account-metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.account-panel {
  padding: 22px 24px;
}

.account-panel-top {
  display: grid;
  gap: 12px;
}

.tiny-reset {
  justify-self: start;
  min-height: 26px;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #687386;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 10px;
  cursor: pointer;
}

.tiny-reset:hover {
  border-color: #ff8b6d;
  color: #ff4d22;
  background: #fff7f3;
}

.account-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-series-panel {
  overflow: hidden;
}

.search-series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 14px;
  margin-top: 20px;
}

.search-series-column,
.search-series-control {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.search-series-column.is-queue {
  position: relative;
  border: 2px solid rgba(91, 44, 255, 0.55);
  padding: 15px;
}

.search-series-column.is-queue .search-series-column-head strong {
  font-size: 1rem;
}

.search-series-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.search-series-column-head strong,
.search-series-control strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 950;
}

.search-series-column-head span,
.search-series-control span,
.search-series-item-meta,
.search-series-item div > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.search-series-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 260px;
  max-height: 380px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.search-series-list.is-dropzone {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.search-series-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  padding: 10px 10px 9px;
  cursor: grab;
}

.search-series-item:active {
  cursor: grabbing;
}

.search-series-item.is-queued {
  border-color: #dfe5ee;
  background: #fff;
}

.search-series-item div {
  min-width: 0;
}

.search-series-item strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-series-item-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.search-series-item-meta span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 8px;
}

.search-series-item button {
  justify-self: end;
  min-width: 58px;
  min-height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef1f6;
  color: #606b7e;
  font-size: 0.64rem;
  font-weight: 950;
  padding: 0 9px;
  cursor: pointer;
}

.search-series-item button:not(:disabled):hover {
  transform: translateY(-1px);
}

.search-series-item button:disabled {
  cursor: default;
  opacity: 1;
}

.search-series-item .series-add {
  border-color: rgba(91, 44, 255, 0.32);
  background: #fff;
  color: var(--violet);
}

.search-series-item .series-add:hover {
  border-color: rgba(91, 44, 255, 0.5);
  background: #f6f3ff;
  color: #4f24dc;
}

.search-series-item .series-queued {
  border-color: rgba(22, 121, 63, 0.24);
  background: #f1faf4;
  color: #16793f;
}

.search-series-item .series-remove {
  border-color: rgba(230, 81, 46, 0.3);
  background: #fff;
  color: #d94b2e;
}

.search-series-item .series-remove:hover {
  border-color: rgba(230, 81, 46, 0.45);
  background: #fff6f1;
  color: #c84227;
}

.search-series-control {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border-color: var(--line);
  background: #fff;
  padding: 18px 18px 16px;
}

.search-series-control strong {
  display: block;
  max-width: 15ch;
  margin-top: 4px;
  font-size: 1.2rem;
  line-height: 1.1;
}

.search-series-control p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.42;
}

.search-series-control .search-series-counts {
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px 10px;
}

.search-series-control .search-series-counts strong {
  display: inline;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
}

.search-series-control .primary,
.search-series-control .secondary {
  width: 100%;
}

.search-series-control .series-clear {
  border: 1px solid rgba(230, 81, 46, 0.34);
  background: #fff;
  color: #d94b2e;
}

.search-series-control .series-clear:hover {
  border-color: rgba(230, 81, 46, 0.48);
  background: #fff6f1;
}

.account-scroll-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.account-scroll-list.applied {
  max-height: 280px;
}

.account-search-row,
.account-applied-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px 12px;
}

.account-search-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.account-search-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.account-search-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.account-search-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-search-line span,
.account-search-stats,
.account-applied-row > span,
.account-applied-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.account-search-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #eef1f6;
  color: #687384;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0 8px;
}

.account-search-stats {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.account-search-actions {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.account-search-delete {
  min-height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d71f1f;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0 6px;
  text-transform: uppercase;
  cursor: pointer;
}

.account-search-delete:hover {
  color: #a70f0f;
  text-decoration: underline;
}

.account-relaunch {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #ff5a1f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: none;
}

.account-relaunch:hover {
  background: #f04b12;
}

.account-applied-row {
  grid-template-columns: minmax(0, 1.25fr) minmax(120px, 0.7fr) auto;
}

.account-applied-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-applied-row strong,
.account-applied-row div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-applied-row div span {
  color: var(--muted);
  font-size: 0.82rem;
}

.account-applied-meta {
  justify-items: end;
  text-align: right;
}

.account-applied-meta a {
  font-weight: 900;
  text-decoration: none;
}

.account-applied-meta a:hover {
  text-decoration: underline;
}

.account-applied-delete {
  min-height: 24px;
  border: 1px solid #ffd0bf;
  border-radius: 999px;
  background: #fff6f2;
  color: #e03c16;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 950;
  cursor: pointer;
}

.account-applied-delete:hover {
  background: #ff5a1f;
  border-color: #ff5a1f;
  color: #fff;
}

.account-applied-delete:disabled {
  cursor: wait;
  opacity: 0.72;
}

.account-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  padding: 12px 14px;
}

.account-detail summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
}

.account-detail summary::-webkit-details-marker {
  display: none;
}

.account-detail summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.account-detail-grid div {
  border-top: 1px solid #edf1f6;
  padding-top: 10px;
}

.account-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.account-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.account-danger h2,
.account-danger p {
  margin: 0;
}

.account-danger p {
  color: var(--muted);
  margin-top: 4px;
}

.account-danger-actions {
  display: flex;
  gap: 10px;
}

.legal-panel {
  padding: 30px;
}

.legal-panel h1 {
  margin: 10px 0 14px;
  font-size: 2rem;
}

.legal-panel h2 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.legal-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 9px 0 10px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(214, 221, 231, 0.86);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.app-brand-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
}

.app-brand-button.brand-lockup img {
  width: 242px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
}

.app-brand-button .brand-wordmark {
  font-size: 1.34rem;
}

.brand-block h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-top-links {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  grid-column: 2;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 31, 43, 0.05);
}

.tab {
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
}

.tab.active {
  background: var(--solid-action);
  color: white;
}

.source-switch {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  padding-left: 0;
}

.source-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f5f7;
  color: var(--muted);
  padding: 0 12px 0 8px;
  font-size: 0.84rem;
  font-weight: 850;
}

.source-button[data-source="ats"] {
  display: none !important;
}

.source-button:not(.active) .source-logo {
  background: #c2c8d0;
  color: #fff;
}

.source-button:not(.active) .source-logo-image {
  background: transparent;
}

.source-button.active {
  border-color: rgba(10, 102, 194, 0.24);
  background: #eef6ff;
  color: var(--linkedin-blue);
}

body[data-source="indeed"] .source-button.active {
  border-color: rgba(37, 87, 167, 0.26);
  background: var(--indeed-soft);
  color: var(--indeed);
}

body[data-source="glassdoor"] .source-button.active {
  border-color: rgba(12, 170, 65, 0.28);
  background: var(--glassdoor-soft);
  color: var(--glassdoor);
}

body[data-source="all"] .source-button.active {
  border-color: rgba(91, 44, 255, 0.28);
  background: var(--accent-soft);
  color: var(--solid-action);
}

body[data-source="ats"] .source-button.active {
  border-color: rgba(15, 118, 110, 0.26);
  background: var(--ats-soft);
  color: var(--ats);
}

.source-logo {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.source-logo-image {
  overflow: hidden;
  background: transparent;
}

.source-logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.linkedin-logo {
  background: var(--linkedin-blue);
}

.linkedin-logo.source-logo-image,
.indeed-logo.source-logo-image,
.glassdoor-logo.source-logo-image {
  background: transparent;
}

.indeed-logo {
  border-radius: 50%;
  background: var(--indeed);
  font-family: Georgia, serif;
  font-style: italic;
}

.glassdoor-logo {
  background: var(--glassdoor);
}

.all-logo {
  background: var(--solid-action);
}

.ats-logo {
  width: 30px;
  background: var(--ats);
  font-size: 0.66rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.center-stage,
.jobs-stage {
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.center-stage {
  width: min(760px, 100%);
}

.search-workbench {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: 6px;
  width: 100%;
  margin: 0 auto;
}

body[data-page="app"] .shell {
  width: min(1540px, calc(100vw - 48px));
  padding-top: 0;
}

body[data-page="app"] > .site-nav {
  display: none;
}

body[data-page="app"] .topbar {
  grid-template-columns: 318px minmax(0, 1fr) 116px;
  gap: 16px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 6px;
  min-height: 82px;
  padding: 8px max(28px, calc((100vw - 1540px) / 2)) 8px;
}

body[data-page="app"] .brand-block #appTitle {
  position: static;
  width: auto;
  min-height: 58px;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1;
  padding: 5px 0 7px 28px;
}

body[data-page="app"] .brand-block #appTitle img {
  width: 250px;
  height: 58px;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
  object-fit: contain;
  object-position: left center;
}

body[data-page="app"] .header-actions {
  grid-column: 2;
  justify-self: center;
}

body[data-page="app"] .app-top-links {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.utility-button,
.profile-button,
.mobile-preview-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #3b4660;
  padding: 0;
  cursor: pointer;
}

.utility-button {
  width: 30px;
  height: 30px;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.utility-button.active {
  color: var(--solid-action);
}

.mobile-preview-button {
  position: relative;
  width: 28px;
  height: 30px;
}

.mobile-preview-button::before {
  content: "";
  width: 14px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.mobile-preview-button::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-preview-button.active {
  color: var(--solid-action);
}

.profile-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--solid-action);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
}

body.night-vision {
  color-scheme: dark;
  --bg: #111827;
  --ink: #f8fafc;
  --muted: #a9b2c3;
  --panel: #172033;
  --line: #334155;
  --accent-soft: rgba(91, 44, 255, 0.2);
  background: linear-gradient(180deg, #0b1020 0, #111827 260px);
}

body.night-vision .topbar,
body.night-vision .panel,
body.night-vision .job-card,
body.night-vision .status-panel,
body.night-vision .portal-progress-row,
body.night-vision input,
body.night-vision select,
body.night-vision textarea {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

body.night-vision .tabs,
body.night-vision .source-button,
body.night-vision .secondary,
body.night-vision .search-history-drawer {
  background: #111827;
  border-color: var(--line);
}

body.night-vision .brand-wordmark,
body.night-vision .job-title,
body.night-vision .portal-progress-main strong {
  color: var(--ink);
}

body.night-vision .brand-lockup img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

body.night-vision .brand-wordmark strong {
  color: var(--orange);
}

/* Mobile app polish: make the preview behave like a real phone layout. */
body.mobile-preview-mode[data-page="app"] {
  overflow-x: hidden;
}

body.mobile-preview-mode[data-page="app"] .shell {
  width: min(430px, calc(100vw - 16px));
  padding: 0 0 28px;
}

body.mobile-preview-mode[data-page="app"] .topbar {
  position: sticky;
  top: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  width: 100%;
  min-height: 0;
  margin: 0 0 12px;
  padding: 10px 10px 12px;
}

body.mobile-preview-mode[data-page="app"] .brand-block #appTitle {
  min-height: 46px;
  padding: 0;
}

body.mobile-preview-mode[data-page="app"] .brand-block #appTitle img {
  width: 178px;
  height: 46px;
  object-position: left center;
}

body.mobile-preview-mode[data-page="app"] .app-top-links {
  grid-column: 2;
  gap: 8px;
}

body.mobile-preview-mode[data-page="app"] .header-actions {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

body.mobile-preview-mode[data-page="app"] .tabs {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

body.mobile-preview-mode[data-page="app"] .tabs::-webkit-scrollbar,
body.mobile-preview-mode[data-page="app"] .source-switch::-webkit-scrollbar {
  display: none;
}

body.mobile-preview-mode[data-page="app"] .tab {
  min-width: auto;
  flex: 0 0 auto;
  padding: 9px 15px;
}

body.mobile-preview-mode[data-page="app"] .keyword-buttons {
  gap: 12px;
  overflow-x: auto;
  padding: 0 2px 8px;
  scrollbar-width: none;
}

body.mobile-preview-mode[data-page="app"] .keyword-buttons::-webkit-scrollbar {
  display: none;
}

body.mobile-preview-mode[data-page="app"] #searchView .center-stage,
body.mobile-preview-mode[data-page="app"] .jobs-stage,
body.mobile-preview-mode[data-page="app"] #jobsView .review-panel {
  width: 100%;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

body.mobile-preview-mode[data-page="app"] .search-source-rail {
  position: static;
  margin: 0 0 14px;
}

body.mobile-preview-mode[data-page="app"] .search-source-rail .source-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

body.mobile-preview-mode[data-page="app"] .search-source-rail .source-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

body.mobile-preview-mode[data-page="app"] #searchView .search-panel,
body.mobile-preview-mode[data-page="app"] #searchView .status-panel {
  position: relative;
  top: auto;
  width: 100%;
  min-width: 0;
}

body.mobile-preview-mode[data-page="app"] #searchView .search-panel {
  padding: 16px;
}

body.mobile-preview-mode[data-page="app"] .search-history-handle {
  top: 12px;
  right: 12px;
  left: auto;
  height: 30px;
}

body.mobile-preview-mode[data-page="app"] #searchView .panel-head {
  padding-right: 62px;
}

body.mobile-preview-mode[data-page="app"] .field-grid,
body.mobile-preview-mode[data-page="app"] .location-remote-grid {
  grid-template-columns: 1fr;
}

body.mobile-preview-mode[data-page="app"] #searchView .status-panel .metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mobile-preview-mode[data-page="app"] #searchView .status-panel .metrics div:nth-child(2n + 1) {
  border-left: 0;
}

body.mobile-preview-mode[data-page="app"] #searchView .status-panel .metrics div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

body.mobile-preview-mode[data-page="app"] .portal-progress {
  width: 100%;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-main-column {
  order: 1;
  width: 100%;
  grid-column: 1;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-sidebar {
  order: 2;
  grid-column: 1;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-panel > .panel-head {
  display: none;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-card-scroll {
  min-height: min(46vh, 360px);
  min-height: min(46dvh, 360px);
  max-height: min(46vh, 360px);
  max-height: min(46dvh, 360px);
  padding: 18px 16px 10px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-card-head {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-company-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-title {
  font-size: 1.12rem;
  line-height: 1.16;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-tags {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .requirements {
  padding: 16px 0 0;
  font-size: 0.94rem;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-actions {
  min-height: 56px;
  gap: 16px;
  padding: 0 16px;
  overflow-x: auto;
}

body.mobile-preview-mode[data-page="app"] #jobsView .decision-row {
  position: sticky;
  bottom: 8px;
  width: 100%;
  gap: 10px;
  margin-top: 10px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .decision-row button {
  min-width: 0;
  min-height: 52px;
  padding: 0 12px;
}

@media (max-width: 640px) {
  body[data-page="app"] {
    overflow-x: hidden;
  }

  body[data-page="app"] .shell {
    width: 100%;
    padding: 0 10px 28px;
  }

  body[data-page="app"] .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    width: calc(100% + 20px);
    min-height: 0;
    margin: 0 -10px 12px;
    padding: 10px 10px 12px;
  }

  body[data-page="app"] .brand-block #appTitle {
    min-height: 46px;
    padding: 0;
  }

  body[data-page="app"] .brand-block #appTitle img {
    width: min(178px, 52vw);
    height: 46px;
  }

  body[data-page="app"] .header-actions {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  body[data-page="app"] .app-top-links {
    grid-column: 2;
    gap: 8px;
  }

  body[data-page="app"] .tabs {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-page="app"] .tabs::-webkit-scrollbar,
  body[data-page="app"] .keyword-buttons::-webkit-scrollbar,
  body[data-page="app"] .source-switch::-webkit-scrollbar {
    display: none;
  }

  body[data-page="app"] .tab {
    min-width: auto;
    flex: 0 0 auto;
    padding: 9px 15px;
  }

  body[data-page="app"] .keyword-buttons {
    gap: 12px;
    overflow-x: auto;
    padding: 0 2px 8px;
    scrollbar-width: none;
  }

  body[data-page="app"] #searchView .center-stage,
  body[data-page="app"] .jobs-stage,
  body[data-page="app"] #jobsView .review-panel {
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  body[data-page="app"] .search-source-rail {
    position: static;
    margin: 0 0 14px;
  }

  body[data-page="app"] .search-source-rail .source-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  body[data-page="app"] .search-source-rail .source-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  body[data-page="app"] #searchView .search-panel,
  body[data-page="app"] #searchView .status-panel {
    position: relative;
    top: auto;
    width: 100%;
    min-width: 0;
  }

  body[data-page="app"] #searchView .search-panel {
    padding: 16px;
  }

  body[data-page="app"] .search-history-handle {
    top: 12px;
    right: 12px;
    left: auto;
    height: 30px;
  }

  body[data-page="app"] #searchView .panel-head {
    padding-right: 62px;
  }

  body[data-page="app"] .field-grid,
  body[data-page="app"] .location-remote-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="app"] #searchView .status-panel .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="app"] #searchView .status-panel .metrics div:nth-child(2n + 1) {
    border-left: 0;
  }

  body[data-page="app"] #searchView .status-panel .metrics div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  body[data-page="app"] .portal-progress {
    width: 100%;
  }

  body[data-page="app"] #jobsView .review-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-page="app"] #jobsView .review-main-column {
    order: 1;
    width: 100%;
    grid-column: 1;
  }

  body[data-page="app"] #jobsView .review-sidebar {
    order: 2;
    grid-column: 1;
  }

  body[data-page="app"] #jobsView .review-panel > .panel-head {
    display: none;
  }

  body[data-page="app"] #jobsView .job-card-scroll {
    min-height: min(46vh, 360px);
    min-height: min(46dvh, 360px);
    max-height: min(46vh, 360px);
    max-height: min(46dvh, 360px);
    padding: 18px 16px 10px;
  }

  body[data-page="app"] #jobsView .job-card-head {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 14px;
  }

  body[data-page="app"] #jobsView .job-company-logo {
    width: 54px;
    height: 54px;
    border-radius: 10px;
  }

  body[data-page="app"] #jobsView .job-title {
    font-size: 1.12rem;
    line-height: 1.16;
  }

  body[data-page="app"] #jobsView .job-tags {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 6px;
  }

  body[data-page="app"] #jobsView .requirements {
    padding: 16px 0 0;
    font-size: 0.94rem;
  }

  body[data-page="app"] #jobsView .job-actions {
    min-height: 56px;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
  }

  body[data-page="app"] #jobsView .decision-row {
    position: sticky;
    bottom: 8px;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  body[data-page="app"] #jobsView .decision-row button {
    min-width: 0;
    min-height: 52px;
    padding: 0 12px;
  }
}

body[data-page="app"] .tab {
  min-width: 92px;
  padding: 10px 13px;
  font-size: 0.88rem;
}

body[data-page="app"] *,
body[data-page="app"] *::before,
body[data-page="app"] *::after {
  box-shadow: none !important;
}

body[data-page="app"] {
  overflow-x: hidden;
}

body[data-page="app"] button:focus-visible,
body[data-page="app"] a:focus-visible,
body[data-page="app"] input:focus-visible,
body[data-page="app"] select:focus-visible,
body[data-page="app"] textarea:focus-visible {
  outline: 2px solid rgba(98, 46, 255, 0.45);
  outline-offset: 2px;
}

body[data-page="app"] .source-button {
  min-height: 30px;
  padding-right: 10px;
}

body[data-page="app"] .source-logo {
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
}

#searchView .search-workbench {
  grid-template-columns: minmax(0, 1450px);
  gap: 8px;
}

#searchView .keyword-buttons {
  width: min(1110px, 100%);
  margin: 0 clamp(42px, 7vw, 120px) 0 auto;
}

#searchView .center-stage {
  width: min(1110px, 100%);
  margin-top: -14px;
  margin-left: auto;
  margin-right: clamp(42px, 7vw, 120px);
}

.search-source-rail {
  position: absolute;
  top: 42px;
  left: -190px;
  z-index: 118;
}

.search-source-rail .source-switch {
  display: grid;
  gap: 8px;
}

.search-source-rail .source-button {
  width: 126px;
  justify-content: flex-start;
  border-color: #dce2ea;
  background: #f5f6f8;
  color: #747d8d;
}

.search-source-rail .source-button .source-logo {
  width: 22px;
  height: 22px;
  opacity: 0.76;
}

.search-source-rail .source-button.active {
  border-color: rgba(91, 44, 255, 0.32);
  background: #f3efff;
  color: var(--solid-action);
}

.search-source-rail .source-button.active .source-logo {
  opacity: 1;
}

@media (max-width: 1119px) {
  .search-source-rail {
    position: static;
    margin: 0 0 14px;
  }

  .search-source-rail .source-switch {
    display: flex;
    flex-wrap: wrap;
  }

  .search-source-rail .source-button {
    width: auto;
  }
}

@media (min-width: 1120px) {
  #searchView .center-stage {
    width: min(1110px, calc(100vw - 300px));
    margin-left: clamp(214px, 17vw, 250px);
    margin-right: auto;
  }

  #searchView .center-stage {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas: "form status";
    align-items: start;
    gap: 18px;
  }

  body.stats-panel-open #searchView .center-stage,
  body.search-history-open #searchView .center-stage {
    width: min(1110px, calc(100vw - 430px));
    margin-left: 360px;
    margin-right: auto;
    grid-template-columns: minmax(0, 650px) minmax(340px, 380px);
  }

  body.extension-panel-open #searchView .center-stage {
    width: min(1040px, calc(100vw - 430px));
    margin-left: 360px;
    margin-right: auto;
    grid-template-columns: minmax(0, 610px) minmax(310px, 360px);
  }

  #searchView .search-panel {
    grid-area: form;
  }

  #searchView .status-panel {
    position: sticky;
    top: 76px;
    grid-area: status;
    overflow: visible;
  }
}

.keyword-sidebar {
  position: static;
  width: 100%;
  display: grid;
  gap: 6px;
  min-height: 36px;
  align-self: start;
  z-index: 5;
}

.keyword-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  min-height: 30px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-panel,
.status-panel,
.review-panel,
.list-panel,
.tech-stack-panel {
  padding: 24px;
}

#searchView .search-panel {
  position: relative;
  padding: 16px 20px;
}

#searchView .status-panel {
  padding: 14px 14px 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

#searchView .panel-head {
  margin-bottom: 14px;
}

.search-panel-head > div {
  min-width: 0;
}

.search-panel-head .search-history-handle {
  margin-left: auto;
}

.panel-head h2 {
  margin-bottom: 3px;
  font-size: 1.18rem;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-dot {
  display: inline-grid;
  min-width: 34px;
  padding: 0 10px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--solid-action);
  color: white;
  font-weight: 850;
}

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

#searchView .field,
#searchView .location-remote-grid .field,
#searchView .remote-toggle-field {
  margin-bottom: 10px;
}

label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.info-popover {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  cursor: help;
}

.info-popover-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 80;
  width: min(320px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.info-popover:hover .info-popover-card,
.info-popover:focus .info-popover-card,
.info-popover:focus-within .info-popover-card {
  opacity: 1;
  transform: translate(-50%, 0);
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

#searchView input,
#searchView select,
#searchView .remote-toggle-field {
  min-height: 42px;
}

input:focus,
select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109, 43, 217, 0.14);
}

.location-remote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: end;
  gap: 12px;
}

.location-remote-grid .field {
  margin-bottom: 16px;
}

.workplace-hidden {
  display: none;
}

.remote-toggle-field {
  min-height: 48px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
  padding: 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.remote-toggle-field > span:first-child {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
}

.remote-toggle-field input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.remote-toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d7dce3;
  transition: background 0.16s ease;
}

.remote-toggle-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.16s ease;
}

.remote-toggle-field input:checked + .remote-toggle-switch {
  background: var(--solid-action);
}

.remote-toggle-field input:checked + .remote-toggle-switch span {
  transform: translateX(18px);
}

.remote-toggle-field:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(109, 43, 217, 0.14);
}

.indeed-only,
.glassdoor-only {
  display: none;
}

body[data-source="indeed"] .linkedin-only {
  display: none;
}

body[data-source="ats"] .linkedin-only {
  display: none;
}

body[data-source="glassdoor"] .linkedin-only {
  display: none;
}

body[data-source="all"] .linkedin-only {
  display: grid;
}

body[data-source="indeed"] .indeed-only {
  display: grid;
}

body[data-source="all"] .indeed-only {
  display: grid;
}

body[data-source="glassdoor"] .glassdoor-only {
  display: grid;
}

body[data-source="all"] .glassdoor-only {
  display: grid;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 12px;
}

.actions,
.decision-row,
.review-meta,
.list-title,
.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

#searchView .status-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

#searchView #statusMessage {
  color: var(--muted);
  font-size: 0;
  font-weight: 760;
  line-height: 1.26;
  text-wrap: balance;
}

.actions {
  justify-content: stretch;
  padding-top: 2px;
}

.primary,
.secondary,
.danger,
.success,
.ghost {
  min-height: 46px;
  border-radius: 9px;
  padding: 0 16px;
  font-weight: 800;
}

.actions button {
  flex: 1;
}

.primary {
  background: var(--solid-action);
  color: white;
}

.search-panel .actions .primary {
  background: var(--accent-grad);
}

.secondary,
.ghost {
  background: #edf0f3;
  color: var(--ink);
}

.danger {
  background: #e2e6ec;
  color: var(--ink);
}

.success {
  background: var(--orange);
  color: #fff;
}

.compact {
  min-height: 36px;
  padding: 0 12px;
}

.badge {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.badge.idle {
  background: #eef1f4;
  color: var(--muted);
}

.badge.running {
  background: var(--accent-soft);
  color: var(--violet);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

#searchView .status-panel .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: #fbfcfd;
}

#searchView .status-panel .metrics div {
  display: block;
  min-height: 66px;
  padding: 14px 10px;
  border: 0;
  border-radius: 0;
  text-align: center;
}

#searchView .status-panel .metrics div + div {
  border-left: 1px solid var(--line);
}

.metrics strong {
  display: block;
  min-width: 4ch;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

#searchView .status-panel .metrics strong {
  font-size: 1.35rem;
  min-width: 0;
}

#searchView .status-panel .metrics span {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.metrics span,
.metrics small,
.completion,
.error-list {
  color: var(--muted);
  font-size: 0.9rem;
}

.metrics small {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.portal-progress {
  display: grid;
  gap: 8px;
  margin: -4px 0 16px;
}

#searchView .status-panel .portal-progress {
  margin: 8px 0 12px;
}

.portal-progress[hidden] {
  display: none;
}

.portal-progress-row {
  display: grid;
  grid-template-columns: 96px 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 9px 11px;
}

#searchView .status-panel .portal-progress-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #fff;
}

.portal-progress-main {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.portal-source-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 0.72rem;
}

.portal-progress-main .source-logo-image {
  width: 32px;
  height: 32px;
  background: transparent;
  opacity: 1;
}

.portal-progress-main .source-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-progress-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-progress-row strong {
  font-size: 0.82rem;
  font-weight: 850;
}

.portal-progress-row > span {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef1f4;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.portal-progress-row > span.running {
  background: var(--accent-soft);
  color: var(--violet);
}

.portal-progress-row > span.waiting {
  background: #eef1f4;
  color: var(--muted);
}

.portal-progress-row > span.action {
  background: #fff3d8;
  color: #9a5a00;
}

.portal-progress-row > span.error {
  background: #fff1e8;
  color: #9a3412;
}

.portal-progress-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#searchView .status-panel .portal-progress-row small {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#searchView .status-panel .portal-progress-row em {
  grid-column: 1 / -1;
  min-width: 0;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#searchView .status-panel .portal-progress-row em strong {
  color: var(--violet);
  font-weight: 900;
}

#searchView .status-panel .portal-progress-row em span {
  color: var(--violet);
  font-weight: 500;
}

.completion {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

#searchView .status-panel .completion {
  padding-top: 12px;
}

#searchView .status-panel .completion .primary {
  width: 100%;
}

.completion.ready {
  display: block;
}

.error-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.error-list:empty {
  display: none;
}

.error-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  padding: 9px 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.error-dismiss {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.08);
  color: #9a3412;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.error-dismiss:hover {
  background: rgba(154, 52, 18, 0.16);
}

.tutorial-stage {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: -12px auto 0;
}

.tutorial-hero {
  padding: 24px;
}

.tutorial-hero > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.tutorial-hero h2 {
  margin: 0;
  font-size: 1.6rem;
}

.tutorial-hero p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

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

.tutorial-card,
.tutorial-flow {
  padding: 22px;
}

.tutorial-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tutorial-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-card-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tutorial-card-head h3 {
  margin: 2px 0 0;
  font-size: 1.2rem;
}

.tutorial-card p,
.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.copy-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 850;
}

.copy-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.tutorial-review-demo {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(22, 31, 43, 0.05);
}

.tutorial-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-review-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.15;
}

.tutorial-review-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: none;
}

.tutorial-review-head mark {
  align-self: start;
  border: 1px solid rgba(214, 40, 40, 0.22);
  border-radius: 999px;
  background: #fee2e2;
  color: #b42318;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 900;
}

.tutorial-review-found {
  margin: 0;
}

.tutorial-review-requirements {
  display: grid;
  gap: 8px;
}

.tutorial-review-requirements h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.tutorial-review-requirements ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.4;
}

.tutorial-review-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin: 2px -14px -14px;
  padding: 10px 14px;
}

.tutorial-review-actions span {
  color: var(--linkedin);
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: none;
}

.tutorial-review-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.tutorial-review-actions a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
}

.mini-window,
.mini-system,
.mock-card,
.mock-stats {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfd;
  box-shadow: 0 10px 24px rgba(22, 31, 43, 0.05);
}

.mini-window {
  overflow: hidden;
}

.mini-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.mini-window-head span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #edf0f3;
  color: var(--ink);
  font-weight: 900;
}

.mini-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
}

.filter-mode,
.mock-filter-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.filter-mode label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  cursor: pointer;
}

.filter-mode input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.filter-mode span,
.mock-filter-mode span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.filter-mode input:checked + span,
.mock-filter-mode .selected {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(22, 31, 43, 0.08);
}

.mock-filter-mode {
  margin: 12px 14px 0;
}

.red-tag,
.mock-card mark {
  border-radius: 999px;
  background: #fee2e2;
  color: #b42318;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.15;
}

.mini-tag-list .red-tag {
  font-size: 0.68rem;
  font-weight: 500;
}

.copy-block {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  white-space: pre-wrap;
  font: 0.9rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 14px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.flow-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, 100%);
  gap: 74px;
  margin: 34px auto 0;
}

.flow-step {
  display: grid;
  grid-template-rows: auto auto minmax(44px, auto) 1fr;
  align-content: stretch;
  gap: 10px;
}

.flow-step > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--solid-action);
  color: white;
  font-weight: 900;
}

.flow-step h4 {
  margin: 0;
  font-size: 1rem;
}

.flow-step p {
  font-size: 0.94rem;
  line-height: 1.35;
}

.flow-grid:not(.flow-grid-secondary) .flow-step > p {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mock-card,
.mock-stats {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  font-size: 0.82rem;
}

.mock-search-card,
.mock-job-card,
.mock-cover-card {
  min-height: 242px;
  height: 242px;
}

.mock-job-card,
.mock-cover-card {
  position: relative;
  overflow: hidden;
}

.mock-actions-card {
  min-height: 170px;
}

.mock-job-company,
.mock-source-label {
  color: var(--indeed);
  font-weight: 950;
}

.mock-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mock-source-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  font-weight: 850;
}

.mock-source-row b {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
}

.mock-job-card h5,
.mock-actions-card h5 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
}

.mock-job-card p,
.mock-actions-card p {
  margin: 0;
  color: var(--muted);
}

.mock-requirements {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-right: 120px;
}

.mock-skill-tags {
  position: absolute;
  top: 58px;
  right: 14px;
  display: grid;
  gap: 3px;
  width: 92px;
}

.mock-skill-tags mark {
  display: block;
  text-align: center;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.15;
}

.mock-job-card ul {
  margin: 0;
  padding-left: 18px;
}

.mock-decision-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.mock-decision-row button {
  min-height: 42px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.mock-decision-row .mock-no {
  border: 1px solid var(--line);
  background: #8b8d8f;
  color: #fff;
}

.mock-decision-row .mock-yes {
  background: var(--solid-action);
  color: #fff;
}

.mock-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin: -4px -4px 2px;
  padding: 0 0 6px;
}

.mock-chat-head button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 0 9px;
  font-size: 0.72rem;
}

.mock-chat-head span {
  color: var(--muted);
  font-size: 0.72rem;
}

.mock-letter-lines {
  display: grid;
  gap: 6px;
  padding: 8px 0;
}

.mock-letter-lines span {
  height: 8px;
  border-radius: 999px;
  background: #e3defa;
}

.mock-letter-lines span:nth-child(2) {
  width: 88%;
}

.mock-letter-lines span:nth-child(3) {
  width: 72%;
}

.mock-letter-lines span:nth-child(4) {
  width: 55%;
}

.mock-input {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  color: var(--muted);
}

.mock-card button,
.mock-stats button {
  min-height: 30px;
  border-radius: 7px;
  background: var(--solid-action);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.mock-buttons,
.mock-actions,
.mock-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.mock-buttons button:first-child,
.mock-actions button,
.mock-icons span,
.mock-list-actions button,
.mock-stats button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.mock-icons span,
.mock-list-actions button,
.mock-applied-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.74rem;
  font-weight: 900;
}

.mock-icons span {
  border-radius: 6px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mock-preview-button {
  color: var(--blue) !important;
}

.mock-applied-button {
  background: #ecfdf3 !important;
  color: #2f9e44 !important;
  border-color: #b7e4c7 !important;
}

.mock-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  min-height: 34px;
  padding: 5px 6px 5px 12px;
}

.mock-chat-input span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-chat-input b {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--solid-action);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
}

.mock-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.mock-preview-layout .mock-actions-card {
  min-height: 170px;
}

.mock-preview-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(22, 31, 43, 0.08);
}

.mock-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
}

.mock-preview-head div {
  display: grid;
  gap: 2px;
}

.mock-preview-head span {
  color: var(--orange);
  font-weight: 950;
}

.mock-preview-head small {
  color: var(--muted);
}

.mock-preview-head b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #edf0f3;
  color: var(--ink);
}

.mock-preview-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.mock-preview-body h5,
.mock-preview-body p {
  margin: 0;
}

.mock-preview-body p {
  color: var(--muted);
  line-height: 1.4;
}

.mock-stats {
  align-self: start;
}

.mock-stats-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin: -2px 0 2px;
  padding-bottom: 8px !important;
}

.mock-stats-head div {
  display: grid !important;
  gap: 0;
  border: 0 !important;
  padding: 0 !important;
}

.mock-stats-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-stats-head strong {
  font-size: 1rem;
}

.mock-stats-head b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #edf0f3;
  color: var(--ink);
  font-size: 0.86rem;
}

.mock-stats div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.mock-stats small {
  color: var(--muted);
  font-size: 0.74rem;
}

.excluded-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b42318;
  padding: 0 12px;
  font-weight: 900;
}

.job-link-action.linkedin {
  color: var(--linkedin-blue);
}

.job-link-action.indeed {
  color: var(--indeed);
}

.job-link-action.glassdoor {
  color: var(--glassdoor);
}

.job-link-action span {
  font-weight: 950;
  font-size: 0.78rem;
}

.jobs-stage {
  width: min(980px, 100%);
}

.jobs-keyword-bar {
  width: min(720px, 100%);
  margin: 0 auto;
}

.keyword-toggle {
  display: inline-flex;
  align-items: center;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  appearance: none;
  transform: none;
}

.keyword-toggle:active,
.keyword-toggle:focus {
  transform: none;
}

.keyword-toggle:hover {
  color: var(--blue);
  text-decoration: underline;
}

.extension-toggle {
  display: none;
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-source="indeed"] .extension-toggle {
  display: inline-flex;
}

body[data-source="all"] .extension-toggle {
  display: inline-flex;
}

.extension-toggle.active {
  color: var(--violet);
}

.keyword-panel {
  display: none;
  position: fixed;
  top: 156px;
  right: 18px;
  z-index: 120;
  bottom: 22px;
  flex-direction: column;
  width: min(420px, max(300px, calc((100vw - 720px) / 2 - 38px)));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(22, 31, 43, 0.16);
  padding: 14px;
}

.keyword-panel.open {
  display: flex;
}

.keyword-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.keyword-panel-head h2 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.keyword-panel-head p,
.keyword-panel-actions span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.keyword-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf0f3;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

#requirementsKeywords,
#eliminateKeywords {
  flex: 1;
  min-height: 0;
  resize: vertical;
  line-height: 1.42;
  overflow: auto;
}

.keyword-panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.review-panel {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}

.autoguess-debug-panel {
  width: min(720px, 100%);
  margin: 14px auto 0;
  display: grid;
  gap: 12px;
}

.autoguess-debug-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.autoguess-debug-head span {
  color: var(--solid-action);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.autoguess-debug-head h2 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.autoguess-debug-head small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.autoguess-debug-prompt {
  max-height: 130px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  color: #111827;
  white-space: pre-wrap;
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.autoguess-debug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.autoguess-debug-card {
  min-width: 0;
  border: 1px solid rgba(98, 46, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.autoguess-debug-card.done {
  border-color: rgba(18, 130, 71, 0.22);
  background: rgba(18, 130, 71, 0.04);
}

.autoguess-debug-card.error {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.76);
}

.autoguess-debug-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.autoguess-debug-card-head strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.2;
}

.autoguess-debug-card-head span {
  flex: 0 0 auto;
  color: var(--solid-action);
  font-size: 0.7rem;
  font-weight: 950;
}

.autoguess-debug-card dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.autoguess-debug-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.autoguess-debug-card dd {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.autoguess-debug-card pre {
  max-height: 90px;
  overflow: auto;
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  white-space: pre-wrap;
  font: 0.68rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.auto-guess-control {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.auto-guess-toggle {
  grid-column: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.auto-guess-toggle span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #e5e7eb;
  color: #fff;
  font-size: 0.68rem;
}

.auto-guess-toggle.active {
  border-color: rgba(98, 46, 255, 0.28);
  background: rgba(98, 46, 255, 0.08);
  color: var(--solid-action);
}

.auto-guess-toggle.active span {
  background: var(--solid-action);
}

.auto-guess-control strong {
  min-width: 78px;
  color: var(--text);
  font-size: 0.78rem;
}

.review-meta {
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 14px;
}

.review-search-context {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.review-search-context[hidden] {
  display: none;
}

.review-search-context span {
  color: var(--solid-action);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.review-search-context strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.review-search-context small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.3;
}

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

.preview-toggle {
  min-height: 34px;
  border-radius: 0;
  background: transparent;
  color: #8f98a3;
  padding: 0 4px;
  font-size: 0.88rem;
  font-weight: 500;
}

.preview-toggle:hover,
.preview-toggle.active {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}

.easy-apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  min-width: 124px;
  border-radius: 999px;
  background: var(--linkedin-blue);
  padding: 0 14px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
}

.easy-apply-in {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 2px;
  background: #fff;
  color: var(--linkedin-blue);
  font-size: 0.68rem;
  font-weight: 950;
}

.easy-apply-link:hover {
  color: #fff;
  background: #0959a8;
  transform: translateY(-1px);
}

.job-card {
  height: clamp(430px, 52vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.045);
}

.job-card.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.job-card-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 24px 34px 12px;
}

.job-card-head {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.job-card-title-block {
  min-width: 0;
}

.job-company-logo {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 12px;
  background: #071833;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.job-company-logo span {
  max-width: 56px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.linkedin-company-logo {
  background: linear-gradient(135deg, #0a66c2, #073b78);
}

.indeed-company-logo {
  background: linear-gradient(135deg, #2557a7, #102a63);
}

.glassdoor-company-logo {
  background: linear-gradient(135deg, #0caa41, #065f2b);
}

.job-card-divider {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.eliminate-matches {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 240px;
}

.eliminate-matches span {
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

.job-company {
  color: var(--solid-action);
  font-size: 1.02rem;
  font-weight: 950;
}

.job-title {
  margin: 6px 0;
  font-size: 1.38rem;
  line-height: 1.18;
}

.job-location {
  color: var(--muted);
  font-size: 0.95rem;
}

.requirements {
  margin-top: 0;
  line-height: 1.48;
  font-size: 1rem;
}

.requirements h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.requirements h3:first-child {
  margin-top: 0;
}

.requirements ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.requirements li {
  margin: 9px 0;
  padding-left: 4px;
}

.requirements li::marker {
  color: var(--solid-action);
}

.requirements p {
  color: var(--muted);
}

.requirements-preview-hint {
  font-size: 0.92rem;
}

.requirements-guess {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(98, 46, 255, 0.16);
  border-radius: 8px;
  background: rgba(98, 46, 255, 0.055);
}

.requirements-guess-button {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--solid-action);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.requirements-guess-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.requirements-guess-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.requirements-guess-copy strong {
  color: var(--text);
  font-size: 0.82rem;
}

.requirements-guess-copy strong span {
  color: var(--solid-action);
}

.requirements-guess-status {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--solid-action);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
}

.requirements-guess-found {
  border-color: rgba(18, 130, 71, 0.18);
  background: rgba(18, 130, 71, 0.07);
}

.requirements-guess-guessed {
  border-color: rgba(98, 46, 255, 0.34);
  background: rgba(98, 46, 255, 0.13);
}

.requirements-guess-guessed .requirements-guess-status {
  background: #622eff;
}

.requirements-guess-ai {
  border-color: rgba(239, 80, 45, 0.24);
  background: rgba(239, 80, 45, 0.055);
}

.requirements-guess-ai .requirements-guess-status {
  background: #ef502d;
}

.requirements-guess-ready {
  border-color: rgba(98, 46, 255, 0.34);
  background: rgba(98, 46, 255, 0.08);
}

.requirements-guess-auto {
  border-color: rgba(98, 46, 255, 0.16);
  background: rgba(98, 46, 255, 0.045);
}

.requirement-source-panel[hidden] {
  display: none;
}

@media (min-width: 1120px) {
  #jobsView .jobs-stage {
    width: min(1420px, calc(100vw - 104px));
    justify-items: start;
  }

  #jobsView .jobs-keyword-bar {
    width: min(1120px, 100%);
    margin: 0 auto 10px;
  }

  #jobsView .review-panel {
    width: min(1084px, calc(100% - 84px));
    justify-self: start;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: start;
    padding: 18px;
  }

  #jobsView .review-panel .panel-head {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  #jobsView .review-panel .panel-head h2 {
    font-size: 0.98rem;
  }

  #jobsView .review-panel .step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  #jobsView .review-meta {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    line-height: 1.2;
  }

  #jobsView .review-meta strong {
    display: block;
    color: var(--text);
    font-size: 1.65rem;
    line-height: 1;
  }

  #jobsView .auto-guess-control {
    position: static;
    grid-column: 1;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    text-align: left;
  }

  #jobsView .auto-guess-toggle {
    grid-column: auto;
    width: 100%;
    min-height: 30px;
  }

  #jobsView .auto-guess-control small,
  #jobsView .auto-guess-control strong {
    min-width: 0;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  #jobsView .requirement-source-panel {
    grid-column: 1;
    grid-row: 5;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
  }

  #jobsView .requirement-source-panel[hidden] {
    display: none;
  }

  #jobsView .requirement-source-panel .requirements-guess {
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #jobsView .requirement-source-panel .requirements-guess-status {
    width: 22px;
    height: 22px;
    font-size: 0.64rem;
  }

  #jobsView .requirement-source-panel .requirements-guess-copy {
    display: grid;
    gap: 3px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  #jobsView .requirement-source-panel .requirements-guess-copy strong {
    font-size: 0.72rem;
  }

  #jobsView .requirement-source-panel .requirements-guess-button {
    min-width: 64px;
    min-height: 28px;
    font-size: 0.68rem;
  }

  #jobsView .job-card {
    grid-column: 2;
    grid-row: 1 / 7;
    height: clamp(430px, 54vh, 600px);
  }

  #jobsView .job-card-scroll {
    padding: 16px 18px 8px;
  }

  #jobsView .decision-row {
    grid-column: 2;
    grid-row: 7;
  }

  #jobsView .decision-row button {
    min-height: 50px;
  }

  #jobsView .decision-hint {
    grid-column: 1;
    grid-row: 6;
    align-self: end;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: left;
  }

  #jobsView .review-search-context {
    grid-column: 1;
    grid-row: 3;
  }

  #jobsView .job-title {
    font-size: 1.16rem;
    line-height: 1.16;
  }

  #jobsView .job-company {
    font-size: 0.86rem;
  }

  #jobsView .job-location {
    font-size: 0.8rem;
  }

  #jobsView .eliminate-matches {
    max-width: 320px;
  }

  #jobsView .requirements {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.38;
  }

  #jobsView .requirements h3 {
    margin: 10px 0 6px;
    font-size: 0.92rem;
  }

  #jobsView .requirements li {
    margin: 5px 0;
  }
}

.guess-preview-panel {
  z-index: 2;
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(98, 46, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.guess-preview-panel strong,
.guess-preview-panel span {
  display: block;
}

.guess-preview-panel strong {
  color: var(--solid-start);
  font-size: 0.92rem;
}

.guess-preview-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.guess-preview-actions {
  display: flex;
  gap: 8px;
}

.guess-preview-actions button {
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 12px;
  cursor: pointer;
}

.guess-preview-actions button:first-child {
  border-color: rgba(98, 46, 255, 0.24);
  background: var(--solid-action);
  color: #fff;
}

.guess-preview-actions button:first-child span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.guess-preview-actions button:first-child em {
  font-style: normal;
}

.guess-preview-actions button:first-child.is-adding {
  cursor: wait;
  opacity: 0.96;
}

.guess-highlight {
  margin: 8px 0;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(98, 46, 255, 0.12);
  box-shadow: inset 0 -2px 0 rgba(98, 46, 255, 0.58);
}

.guess-highlight h3:first-child {
  margin-top: 0;
}

.guess-section-actions {
  position: fixed;
  z-index: 130;
  display: none;
  width: 184px;
  padding: 10px;
  border: 1px solid rgba(98, 46, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.guess-section-actions.open {
  display: grid;
  gap: 8px;
}

.guess-section-actions strong {
  color: var(--solid-start);
  font-size: 0.82rem;
  line-height: 1.2;
}

.guess-section-actions button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 10px;
  cursor: pointer;
}

.guess-section-actions button:first-of-type {
  border-color: rgba(98, 46, 255, 0.24);
  background: var(--solid-action);
  color: #fff;
}

.guess-section-actions button:first-of-type span {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.guess-section-actions button em {
  font-style: normal;
}

.guess-section-actions button.is-adding {
  cursor: wait;
  opacity: 0.96;
}

.guess-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 800;
}

.job-link {
  display: inline-flex;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.source-link {
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 2px;
}

.linkedin-link {
  color: var(--linkedin-blue) !important;
}

.indeed-link,
body[data-source="indeed"] .indeed-link {
  color: #c25a00;
}

.glassdoor-link,
body[data-source="glassdoor"] .glassdoor-link {
  color: var(--glassdoor) !important;
}

.ats-link,
body[data-source="ats"] .ats-link {
  color: var(--ats) !important;
}

.job-actions,
.list-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.job-card .job-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 0;
  padding: 14px 34px;
  border-top: 1px solid rgba(214, 221, 231, 0.72);
  background: #fff;
}

.job-source-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.job-action-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.68rem;
}

.list-actions {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  justify-content: start;
}

.job-preview-panel {
  position: fixed;
  top: 156px;
  right: 18px;
  bottom: 22px;
  z-index: 126;
  display: none;
  width: min(420px, max(300px, calc((100vw - 720px) / 2 - 38px)));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(22, 31, 43, 0.18);
  padding: 16px;
}

.job-preview-panel.open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 1120px) {
  body[data-page="app"] .job-preview-panel {
    top: 104px;
    right: auto;
    bottom: 176px;
    left: calc((100vw - min(1160px, calc(100vw - 104px))) / 2 + 150px);
    width: min(1030px, calc(100vw - 430px));
    min-width: 680px;
    padding: 16px;
    border-color: #b9c2cf;
    border-radius: 10px;
    background: #eef1f4;
    box-shadow: none;
  }

  body[data-page="app"] .job-preview-head {
    padding-bottom: 9px;
  }

  body[data-page="app"] .preview-description {
    border: 1px solid #d3d9e2;
    background: #fff;
    padding: 16px 20px;
    font-size: 0.88rem;
  }
}

.job-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.job-preview-head h2 {
  margin: 5px 0 4px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.job-preview-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-description {
  min-width: 0;
  overflow: auto;
  border-radius: 9px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 14px;
  line-height: 1.5;
}

.preview-description h3 {
  margin: 14px 0 8px;
  font-size: 0.98rem;
}

.preview-description h3:first-child {
  margin-top: 0;
}

.preview-description p {
  margin: 0 0 12px;
}

.preview-description ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.preview-description li + li {
  margin-top: 5px;
}

.preview-refresh-note {
  border: 1px solid #d6ccff;
  border-radius: 9px;
  background: #f2efff;
  color: var(--solid-action);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

::highlight(previewRequirementSelection) {
  background: rgba(91, 44, 255, 0.22);
  color: inherit;
}

.list-actions {
  margin-top: 8px;
}

.cover-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 850;
}

.cover-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.cover-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.cover-button.small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.preview-button {
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8f98a3;
  padding: 0 2px;
  font-size: 0.8rem;
  font-weight: 500;
}

.preview-button:hover,
.preview-button.active {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}

.applied-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  grid-column: 4;
  justify-self: end;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfd;
  color: #a0a9b3;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.applied-toggle span:first-child {
  color: #b6bec7;
  font-weight: 950;
}

.applied-toggle.active {
  border-color: rgba(22, 163, 74, 0.3);
  background: #ecfdf3;
  color: #15803d;
}

.applied-toggle.active span:first-child {
  color: #16a34a;
}

.saved-preview-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 33vw;
  z-index: 90;
  display: none;
  background: rgba(246, 247, 248, 0.72);
  backdrop-filter: blur(2px);
  padding: 22px 22px 22px 0;
}

.saved-preview-panel.open {
  display: grid;
}

.saved-preview-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(22, 31, 43, 0.18);
}

.saved-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef1f4;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.saved-preview-close:hover {
  background: #e2e6eb;
}

.saved-preview-head {
  border-bottom: 1px solid var(--line);
  padding: 22px 64px 16px 22px;
}

.saved-preview-head h2 {
  margin: 5px 0 5px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.saved-preview-head p {
  margin-bottom: 10px;
  color: var(--muted);
}

.saved-preview-head a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.saved-preview-head a.hidden {
  display: none;
}

.saved-preview-description {
  min-width: 0;
  overflow: auto;
  padding: 22px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.saved-preview-description h3 {
  margin: 22px 0 9px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.saved-preview-description h3:first-child {
  margin-top: 0;
}

.saved-preview-description p {
  margin: 0 0 14px;
}

.saved-preview-description ul {
  margin: 0 0 15px;
  padding-left: 22px;
}

.saved-preview-description li + li {
  margin-top: 6px;
}

.preview-requirement-add {
  position: fixed;
  z-index: 220;
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  min-height: 36px;
  border: 1px solid rgba(98, 46, 255, 0.28);
  border-radius: 999px;
  background: var(--solid-action);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  padding: 0 12px 0 8px;
  box-shadow: 0 14px 30px rgba(98, 46, 255, 0.26);
  cursor: pointer;
}

.preview-requirement-add.open {
  display: inline-flex;
}

.preview-requirement-add-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
}

.preview-requirement-add.added {
  border-color: #ace2c2;
  background: #128247;
  box-shadow: 0 14px 30px rgba(18, 130, 71, 0.24);
}

.preview-requirement-add.adding {
  cursor: wait;
  opacity: 0.96;
}

.preview-requirement-add.exists {
  border-color: #fed7aa;
  background: #c05621;
  box-shadow: 0 14px 30px rgba(192, 86, 33, 0.22);
}

.decision-row {
  justify-content: stretch;
  margin-top: 12px;
}

.decision-row button {
  flex: 1;
  min-height: 54px;
  font-size: 1.08rem;
  transition: transform 0.08s ease, background 0.08s ease, filter 0.08s ease;
}

.decision-row button.decision-feedback {
  transform: translateY(1px) scale(0.992);
}

.decision-row button.decision-feedback-no {
  background: #d6dbe2;
}

.decision-row button.decision-feedback-yes {
  background: #e94a22;
}

.decision-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* Jobs dashboard restyle: visual only, closer to the provided mockup. */
#jobsView .review-panel {
  width: min(1464px, calc(100vw - 148px));
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#jobsView .review-panel > .panel-head,
#jobsView .review-panel > .review-meta,
#jobsView .review-panel > .review-search-context,
#jobsView .review-panel > .auto-guess-control,
#jobsView .review-panel > .requirement-source-panel,
#jobsView .review-panel > .decision-hint {
  grid-column: 1;
  width: 100%;
  min-height: 108px;
  margin: 0;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.035);
}

#jobsView .review-panel > .panel-head {
  display: none;
}

#jobsView .review-panel > .review-meta {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 22px 24px;
}

#jobsView .review-panel > .review-meta strong {
  display: block;
  color: var(--solid-action);
  font-size: 2.35rem;
  line-height: 0.95;
  letter-spacing: 0;
}

#jobsView .review-meta-copy,
#jobsView .review-card-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#jobsView .review-meta-copy small,
#jobsView .review-card-copy > span {
  color: #303952;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

#jobsView .review-card-copy strong {
  color: #0d0f1a;
  font-size: 0.96rem;
  line-height: 1.22;
}

#jobsView .review-card-copy small {
  color: #5f6878;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

#jobsView .review-card-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  align-self: center;
  background: var(--solid-action);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

#jobsView .review-icon-briefcase {
  mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 3a2 2 0 0 0-2 2v1H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-2V5a2 2 0 0 0-2-2H9Zm6 3H9V5h6v1Zm-4 5h2a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 3a2 2 0 0 0-2 2v1H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-2V5a2 2 0 0 0-2-2H9Zm6 3H9V5h6v1Zm-4 5h2a1 1 0 1 1 0 2h-2a1 1 0 1 1 0-2Z'/%3E%3C/svg%3E");
}

#jobsView .review-icon-search {
  mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E");
}

#jobsView .review-icon-sparkles {
  mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.8 14.2 8l5.2 2.2-5.2 2.2L12 17.6l-2.2-5.2-5.2-2.2L9.8 8 12 2.8Z'/%3E%3Cpath d='M19 14.5 20 17l2.5 1-2.5 1-1 2.5-1-2.5-2.5-1 2.5-1 1-2.5Z'/%3E%3Cpath d='M5 15.5 5.8 17l1.7.8-1.7.7L5 20l-.8-1.5-1.7-.7 1.7-.8L5 15.5Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.8 14.2 8l5.2 2.2-5.2 2.2L12 17.6l-2.2-5.2-5.2-2.2L9.8 8 12 2.8Z'/%3E%3Cpath d='M19 14.5 20 17l2.5 1-2.5 1-1 2.5-1-2.5-2.5-1 2.5-1 1-2.5Z'/%3E%3Cpath d='M5 15.5 5.8 17l1.7.8-1.7.7L5 20l-.8-1.5-1.7-.7 1.7-.8L5 15.5Z'/%3E%3C/svg%3E");
}

#jobsView .review-icon-keyboard {
  mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h.01M11 9h.01M15 9h.01M17 13h.01M13 13h.01M9 13h.01M7 17h10'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h.01M11 9h.01M15 9h.01M17 13h.01M13 13h.01M9 13h.01M7 17h10'/%3E%3C/svg%3E");
}

#jobsView .review-panel > .review-search-context,
#jobsView .review-panel > .auto-guess-control,
#jobsView .review-panel > .requirement-source-panel,
#jobsView .review-panel > .decision-hint {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 22px 24px;
  text-align: left;
}

#jobsView .review-search-context::before,
#jobsView .auto-guess-control::before,
#jobsView .requirement-source-panel::before,
#jobsView .decision-hint::before {
  display: none;
  content: none;
}

#jobsView .auto-guess-control {
  top: auto;
  right: auto;
  display: grid;
  max-width: none;
}

#jobsView .auto-guess-control .review-card-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
}

#jobsView .auto-guess-control .auto-guess-toggle {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  min-height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--solid-action);
  font-size: 0.78rem;
  text-transform: uppercase;
}

#jobsView .auto-guess-control small {
  grid-column: 2;
  justify-self: end;
  border-radius: 999px;
  background: #dcfce7;
  color: #168048;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 950;
}

#jobsView .auto-guess-control strong {
  grid-column: 1 / -1;
  min-width: 0;
  white-space: normal;
}

#jobsView .requirement-source-panel .requirements-guess {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#jobsView .review-main-column {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: grid;
  width: min(100%, 1180px);
  justify-self: start;
  min-width: 0;
  gap: 12px;
}

#jobsView .job-card {
  grid-column: 2;
  height: auto;
  min-height: 0;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.045);
}

#jobsView .job-card-scroll {
  flex: 0 1 auto;
  min-height: clamp(420px, calc(100vh - 430px), 620px);
  max-height: clamp(420px, calc(100vh - 430px), 620px);
  padding: 30px 44px 22px;
  overflow: auto;
}

#jobsView .job-card-head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e8ef;
}

#jobsView .job-company-logo {
  width: 86px;
  height: 86px;
  border-radius: 13px;
  background: linear-gradient(145deg, #06162f, #1f5fb1);
  box-shadow: 0 16px 28px rgba(20, 33, 61, 0.12);
  font-size: 1.08rem;
}

#jobsView .job-company {
  color: var(--solid-action);
  font-size: 1.08rem;
  font-weight: 950;
}

#jobsView .job-title {
  margin: 8px 0 8px;
  font-size: 1.55rem;
  line-height: 1.13;
  letter-spacing: 0;
}

#jobsView .job-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #596172;
  font-size: 1.02rem;
  font-weight: 700;
}

#jobsView .job-salary-separator {
  width: 1px;
  height: 16px;
  background: #cbd5e1;
}

#jobsView .job-salary {
  color: #3f4656;
}

#jobsView .job-card-divider {
  display: none;
}

#jobsView .requirements {
  position: relative;
  padding: 28px 0 0 58px;
  font-size: 1.01rem;
  line-height: 1.7;
}

#jobsView .requirements::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 31px;
  display: block;
  width: 27px;
  height: 27px;
  background: var(--solid-action);
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

#jobsView .requirements h3,
#jobsView .requirements h4,
#jobsView .requirements strong:first-child {
  display: block;
  margin: 0 0 12px;
  color: #090d19;
  font-size: 1.02rem;
  font-weight: 950;
}

#jobsView .requirements h3:not(:first-child),
#jobsView .requirements h4:not(:first-child) {
  margin-top: 28px;
}

#jobsView .requirements ul {
  margin: 0 0 16px 1.1rem;
  padding: 0;
}

#jobsView .requirements li {
  padding-left: 8px;
  margin: 8px 0;
}

#jobsView .requirements li::marker {
  color: var(--solid-action);
  font-size: 0.72em;
}

#jobsView .requirements p {
  max-width: 1050px;
}

#jobsView .job-actions {
  min-height: 70px;
  gap: 36px;
  padding: 0 44px;
  border-top: 1px solid #e3e8ef;
  background: #fff;
}

#jobsView .job-actions .source-logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

#jobsView .job-source-action,
#jobsView .job-actions .source-link {
  color: var(--solid-action);
  font-size: 1.05rem;
  font-weight: 950;
  text-decoration: none;
}

#jobsView .cover-button,
#jobsView .preview-toggle,
#jobsView .easy-apply-link {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #303952;
  font-weight: 900;
  box-shadow: none;
}

#jobsView .cover-button::before,
#jobsView .preview-toggle::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 23px;
  margin-right: 12px;
  background: #303952;
  vertical-align: -6px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

#jobsView .cover-button::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

#jobsView .preview-toggle::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

#jobsView .decision-row {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
  position: sticky;
  bottom: 12px;
  z-index: 20;
}

#jobsView .review-main-column .job-card,
#jobsView .review-main-column .decision-row {
  grid-column: 1;
  margin-top: 0;
}

#jobsView .decision-row button {
  min-height: 60px;
  border-radius: 8px;
  font-size: 1.05rem;
}

#jobsView .decision-row .danger::before,
#jobsView .decision-row .success::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 14px;
  background: currentColor;
  vertical-align: -5px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

#jobsView .decision-row .danger::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

#jobsView .decision-row .success::before {
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
}

#jobsView .review-panel {
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 14px 18px;
  padding-top: 0;
  margin-top: -14px;
}

#jobsView .review-sidebar {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 12px;
  align-self: start;
}

#jobsView .review-sidebar > [hidden] {
  display: none !important;
}

#jobsView .review-sidebar > .review-meta,
#jobsView .review-sidebar > .review-search-context,
#jobsView .review-sidebar > .auto-guess-control,
#jobsView .review-sidebar > .requirement-source-panel,
#jobsView .review-sidebar > .decision-hint,
#jobsView .review-panel > .review-meta,
#jobsView .review-panel > .review-search-context,
#jobsView .review-panel > .auto-guess-control,
#jobsView .review-panel > .requirement-source-panel,
#jobsView .review-panel > .decision-hint {
  min-height: 94px;
  width: 100%;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.03);
}

#jobsView .review-sidebar > .review-meta,
#jobsView .review-sidebar > .review-search-context,
#jobsView .review-sidebar > .auto-guess-control,
#jobsView .review-sidebar > .requirement-source-panel,
#jobsView .review-sidebar > .decision-hint,
#jobsView .review-panel > .review-meta,
#jobsView .review-panel > .review-search-context,
#jobsView .review-panel > .auto-guess-control,
#jobsView .review-panel > .requirement-source-panel,
#jobsView .review-panel > .decision-hint {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
}

#jobsView .review-card-icon {
  width: 31px;
  height: 31px;
}

#jobsView .review-sidebar > .review-meta strong,
#jobsView .review-panel > .review-meta strong {
  color: var(--solid-action);
  font-size: 2rem;
}

#jobsView .review-meta-copy small,
#jobsView .review-card-copy > span {
  color: var(--solid-action);
  font-size: 0.72rem;
}

#jobsView .review-card-copy strong {
  font-size: 0.88rem;
  line-height: 1.18;
}

#jobsView .review-card-copy small {
  font-size: 0.72rem;
  line-height: 1.36;
  display: block;
  margin-top: 5px;
}

#jobsView .review-sidebar .decision-hint {
  margin: 0;
}

#jobsView .review-sidebar .decision-hint span:last-child {
  color: #596172;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.48;
}

#jobsView .auto-guess-control .auto-guess-toggle {
  font-size: 0.74rem;
}

#jobsView .auto-guess-control small {
  padding: 4px 9px;
  font-size: 0.68rem;
}

#jobsView .review-sidebar > .auto-guess-control {
  align-items: start;
}

#jobsView .auto-guess-control .review-card-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}

#jobsView .auto-guess-control .review-card-copy strong {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  font-size: 0.78rem;
  line-height: 1.22;
  color: #0b1020;
}

#jobsView .auto-guess-control .review-card-copy strong span {
  display: block;
}

#jobsView .auto-guess-control .review-card-copy strong b {
  font-weight: 900;
}

#jobsView .auto-guess-control .auto-guess-toggle {
  justify-self: start;
}

#jobsView .auto-guess-control small {
  justify-self: end;
  align-self: center;
}

#jobsView .requirement-source-panel .requirements-guess {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

#jobsView .job-card-scroll {
  min-height: clamp(510px, calc(100vh - 340px), 700px);
  max-height: clamp(510px, calc(100vh - 340px), 700px);
  padding: 24px 36px 14px;
}

#jobsView .job-card-head {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  padding-bottom: 14px;
}

#jobsView .job-company-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  font-size: 0.95rem;
}

#jobsView .job-company-logo-image {
  overflow: hidden;
  background: #fff;
}

#jobsView .job-company-logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#jobsView .job-company {
  font-size: 0.98rem;
}

#jobsView .job-title {
  margin: 3px 0 4px;
  font-size: 1.3rem;
  line-height: 1.1;
}

#jobsView .job-location {
  font-size: 0.92rem;
}

#jobsView .requirements {
  padding: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.43;
}

#jobsView .requirements::before {
  display: none;
  content: none;
}

#jobsView .requirements h3,
#jobsView .requirements h4,
#jobsView .requirements strong:first-child {
  margin: 0 0 9px;
  font-size: 0.98rem;
}

#jobsView .requirements h3:not(:first-child),
#jobsView .requirements h4:not(:first-child) {
  margin-top: 18px;
}

#jobsView .requirements ul {
  margin: 0 0 10px 1rem;
}

#jobsView .requirements li {
  margin: 5px 0;
  padding-left: 6px;
}

#jobsView .requirements p {
  max-width: 100%;
}

#jobsView .job-actions {
  min-height: 58px;
  gap: 28px;
  padding: 0 36px;
}

#jobsView .job-actions .source-logo {
  width: 26px;
  height: 26px;
}

#jobsView .job-source-action,
#jobsView .job-actions .source-link {
  font-size: 0.98rem;
}

#jobsView .cover-button,
#jobsView .preview-toggle,
#jobsView .easy-apply-link {
  min-height: 34px;
  font-size: 0.95rem;
}

#jobsView .cover-button::before,
#jobsView .preview-toggle::before {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: -5px;
}

#jobsView .decision-row {
  gap: 16px;
  margin-top: 10px;
  bottom: 10px;
}

#jobsView .decision-row button {
  min-height: 54px;
  font-size: 0.98rem;
}

#jobsView .decision-row .danger {
  border: 1px solid #d7deea;
  background: linear-gradient(180deg, #eef2f8 0%, #dce3ee 100%);
  color: #111827;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.045);
}

#jobsView .decision-row .success {
  border: 0;
  background: linear-gradient(110deg, #4f1cff 0%, #b51fc4 48%, #ff4b20 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(112, 44, 255, 0.14);
}

#jobsView .decision-row .danger::before,
#jobsView .decision-row .success::before {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 8px 10px;
}

.metrics .metric {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.metrics .metric:last-child {
  border-right: 0;
}

.portal-progress-row {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.portal-progress-row .portal-source-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

@media (max-width: 920px) {
  #jobsView .review-panel {
    width: min(100%, calc(100vw - 24px));
    grid-template-columns: 1fr;
  }

  #jobsView .review-panel > .panel-head,
  #jobsView .review-panel > .review-meta,
  #jobsView .review-panel > .review-search-context,
  #jobsView .review-panel > .auto-guess-control,
  #jobsView .review-panel > .requirement-source-panel,
  #jobsView .review-panel > .decision-hint,
  #jobsView .review-sidebar,
  #jobsView .review-main-column,
  #jobsView .job-card,
  #jobsView .decision-row {
    grid-column: 1;
  }
}

#jobsView .review-search-context::before,
#jobsView .auto-guess-control::before,
#jobsView .requirement-source-panel::before,
#jobsView .decision-hint::before {
  display: none !important;
  content: none !important;
}

#jobsView .review-panel > .review-search-context,
#jobsView .review-panel > .auto-guess-control,
#jobsView .review-panel > .requirement-source-panel,
#jobsView .review-panel > .decision-hint {
  padding-left: 22px !important;
}


.lists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.list-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: initial;
  margin-bottom: 12px;
}

.list-title h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  text-align: left;
}

.list-title span {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #edf0f3;
  font-weight: 850;
}

.reset-list {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.reset-list:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.job-list {
  display: grid;
  gap: 10px;
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: #fbfcfd;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.list-item a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.record-panel,
.extension-panel {
  position: fixed;
  top: 156px;
  right: 18px;
  z-index: 119;
  display: none;
  width: min(340px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  padding: 16px;
}

.search-panel {
  position: relative;
}

.search-history-handle {
  position: absolute;
  top: 42px;
  left: -26px;
  z-index: 122;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 58px;
  border: 0;
  border-radius: 7px 0 0 7px;
  background: #2f343d;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 950;
  line-height: 1;
  padding: 6px 0;
  cursor: pointer;
}

.search-history-handle span:first-child {
  max-height: 34px;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.search-history-handle:hover,
.search-history-handle:focus-visible {
  background: #111827;
}

.search-history-arrow {
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(135deg);
}

.search-history-open .search-history-arrow {
  transform: rotate(315deg);
}

.search-history-drawer {
  position: fixed;
  top: 150px;
  left: clamp(14px, 1.8vw, 36px);
  z-index: 121;
  display: none;
  width: min(300px, calc(100vw - 36px));
  max-height: calc(100vh - 162px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

@media (max-width: 1119px) {
  .search-history-handle {
    top: 16px;
    left: 12px;
    width: auto;
    height: 30px;
    flex-direction: row;
    border-radius: 999px;
    padding: 0 10px;
  }

  .search-history-handle span:first-child {
    max-height: none;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .search-history-drawer {
    top: 92px;
    left: 12px;
    width: min(324px, calc(100% - 24px));
    max-height: calc(100vh - 104px);
  }
}

.search-history-open .search-history-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.search-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.search-history-head div {
  display: grid;
  gap: 2px;
}

.search-history-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
}

.search-history-head strong {
  color: var(--text);
  font-size: 1.02rem;
}

.search-history-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.search-history-series {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.search-history-series button {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0 12px;
  cursor: pointer;
}

.search-history-series button:disabled {
  cursor: default;
  opacity: 0.65;
}

.search-history-series span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
}

.search-history-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.search-history-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.search-history-row-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-history-row-main span,
.search-history-row-meta {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
}

.search-history-row-meta,
.search-history-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-history-row-meta span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 8px;
}

.search-history-row-actions {
  justify-content: space-between;
}

.search-history-row-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--action);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 6px 12px;
}

.search-history-row-actions button.delete {
  color: #b42318;
}

@media (min-width: 1120px) {
  .record-panel,
  .extension-panel {
    left: clamp(14px, 1.8vw, 36px);
    right: auto;
    width: min(300px, calc(100vw - 36px));
  }

  #searchView .status-panel {
    min-width: 0;
  }
}

.extension-panel {
  width: min(306px, calc(100vw - 36px));
  border-radius: 12px;
  max-height: calc(100vh - 168px);
  overflow-y: auto;
}

@media (min-width: 1120px) {
  .extension-panel {
    left: clamp(14px, 1.8vw, 36px);
    right: auto;
    width: min(300px, calc(100vw - 36px));
  }
}

.record-panel.open,
.extension-panel.open {
  display: grid;
  gap: 14px;
}

.indeed-action-panel {
  position: fixed;
  top: 156px;
  right: 18px;
  z-index: 130;
  display: none;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  box-shadow: none;
  padding: 16px;
}

.indeed-action-panel.open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.indeed-action-panel > button {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
}

.indeed-action-panel > div {
  grid-column: 1 / -1;
  grid-row: 1;
  padding-right: 52px;
  pointer-events: none;
}

.indeed-action-panel span {
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.indeed-action-panel h2 {
  margin: 4px 0 8px;
  font-size: 1.12rem;
}

.indeed-action-panel p {
  margin: 0;
  color: #7c2d12;
  line-height: 1.35;
}

.record-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.record-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.record-head h2 {
  margin: 3px 0 0;
  font-size: 1.08rem;
}

.record-stats {
  display: grid;
  gap: 8px;
}

.record-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef1f4;
  padding-bottom: 8px;
}

.record-stats span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.record-stats strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  min-width: 9ch;
  color: var(--ink);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.record-stats small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

html,
body {
  overflow-x: hidden;
}

.admin-stage {
  display: grid;
  gap: 20px;
  width: min(1560px, calc(100vw - 32px));
  margin: 0 auto;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-color: #d9e0ea;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.admin-hero .panel-head,
.compact-head {
  margin-bottom: 0;
}

.admin-dot {
  box-shadow: 0 8px 18px rgba(98, 46, 255, 0.22);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-actions .icon-only {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.admin-instagram-jump img,
.admin-instagram-logo {
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.admin-instagram-jump img {
  width: 22px;
  height: 22px;
}

.admin-instagram-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(188, 42, 141, 0.18);
}

.admin-actions label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-actions select {
  min-width: 145px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.admin-date-input {
  min-width: 142px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.admin-metric {
  padding: 20px;
  border-color: #dce3ed;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.admin-metric strong {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-panel {
  overflow: hidden;
  padding: 22px 24px 18px;
  border-color: #d9e0ea;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.admin-panel:has(#adminUsers),
.admin-panel:has(#adminRequirementGuesses) {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  transform: none;
}

.admin-usage-summary-panel {
  width: min(1560px, calc(100vw - 32px));
  margin: 0 auto;
}

.admin-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  max-height: 560px;
  overflow-y: auto;
  margin-top: 18px;
}

.admin-autoguess-doc {
  overflow: visible;
}

.autoguess-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.autoguess-doc-card {
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fbfcff;
  padding: 16px 18px;
}

.autoguess-doc-card.wide {
  grid-column: 1 / -1;
}

.autoguess-doc-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.autoguess-doc-card ol,
.autoguess-doc-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.autoguess-doc-card li {
  margin: 8px 0;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.45;
}

.autoguess-doc-card strong {
  color: var(--ink);
  font-weight: 950;
}

.autoguess-doc-note {
  margin: 12px 0 0;
  border: 1px solid rgba(91, 44, 255, 0.18);
  border-radius: 10px;
  background: #f7f4ff;
  color: var(--solid-action);
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

body.night-vision .autoguess-doc-card {
  border-color: var(--line);
  background: #111827;
}

body.night-vision .autoguess-doc-card li {
  color: #cbd5e1;
}

body.night-vision .autoguess-doc-note {
  border-color: rgba(139, 92, 246, 0.36);
  background: rgba(91, 44, 255, 0.16);
  color: #c4b5fd;
}

.admin-access-form {
  display: grid;
  grid-template-columns: minmax(240px, 420px) auto;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.admin-access-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
}

.admin-access-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-access-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
}

.admin-access-item strong,
.admin-access-item small {
  display: block;
}

.admin-access-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-access-item.is-admin {
  background: #f4f0ff;
  border-color: #c9b8ff;
}

.admin-access-lock,
.admin-access-remove {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 950;
  font-size: 0.78rem;
}

.admin-access-lock {
  color: #5b35f5;
  background: #ebe5ff;
}

.admin-access-remove {
  border: 1px solid #ffd0bf;
  color: #ff5128;
  background: #fff6f2;
  cursor: pointer;
}

.admin-access-empty {
  color: var(--muted);
  font-weight: 850;
}

.admin-table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-table-tools button {
  min-height: 30px;
  border: 1px solid #ffd5ca;
  border-radius: 6px;
  background: #fff3ef;
  color: #b83316;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.admin-table-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-table-tools span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.admin-table th button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.admin-table th button::after {
  content: "↕";
  margin-left: 6px;
  color: #a3adbb;
  font-size: 0.75em;
}

.admin-table th button[data-sort-direction="asc"]::after {
  content: "↑";
  color: var(--purple);
}

.admin-table th button[data-sort-direction="desc"]::after {
  content: "↓";
  color: var(--purple);
}

.instagram-manager-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.instagram-upload-panel,
.instagram-phone-panel {
  padding: 22px 24px;
}

.instagram-upload-drop {
  display: grid;
  gap: 6px;
  margin: 18px 0 12px;
  border: 1px dashed #c9d3e2;
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px;
  color: var(--muted);
  cursor: pointer;
}

.instagram-upload-drop strong {
  color: var(--ink);
  font-size: 1rem;
}

.instagram-upload-drop input {
  margin-top: 8px;
}

.instagram-upload-panel .primary {
  display: none;
}

.instagram-manager-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.instagram-manager-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 84px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.instagram-caption-box {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
}

.instagram-caption-box:focus {
  border-color: rgba(98, 46, 255, 0.55);
  outline: 3px solid rgba(98, 46, 255, 0.12);
}

.instagram-manager-item img {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 9px;
  object-fit: cover;
}

.instagram-manager-item.hidden-from-feed {
  border-style: dashed;
  background: #f8fafc;
  opacity: 0.72;
}

.instagram-manager-item.hidden-from-feed img {
  filter: grayscale(1);
}

.instagram-manager-item strong,
.instagram-manager-item span {
  display: block;
}

.instagram-manager-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-manager-actions {
  display: flex;
  gap: 6px;
}

.instagram-manager-actions button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d9e1ec;
  border-radius: 9px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.instagram-manager-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.instagram-manager-actions [data-instagram-delete] {
  border-color: #ffd5ca;
  background: #fff3ef;
  color: #b83316;
}

.instagram-manager-actions [data-instagram-email] {
  border-color: #bee5d1;
  background: #effaf4;
  color: #147349;
}

.instagram-manager-actions [data-instagram-hidden] {
  border-color: #d6ccff;
  background: #f2efff;
  color: var(--solid-action);
}

.instagram-phone-panel {
  display: grid;
  justify-items: center;
}

.instagram-phone {
  position: relative;
  width: min(300px, 100%);
  min-height: 594px;
  border: 8px solid #111827;
  border-radius: 34px;
  background: #fff;
  padding: 14px 10px 18px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.instagram-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #111827;
  transform: translateX(-50%);
  z-index: 2;
}

.instagram-phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 12px;
  color: #111827;
  font-size: 0.58rem;
  font-weight: 800;
}

.instagram-phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 6px 10px;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
}

.instagram-phone-bar span {
  color: #111827;
  font-size: 1rem;
}

.instagram-phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 0.8rem;
  text-align: center;
}

.instagram-phone-tabs span {
  padding: 10px 0 8px;
}

.instagram-phone-tabs span:first-child {
  color: #111827;
  border-bottom: 1px solid #111827;
}

.instagram-phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-height: 430px;
  overflow-y: auto;
  border-radius: 0 0 16px 16px;
  background: #fff;
  padding-top: 1px;
}

.instagram-phone-grid img,
.instagram-phone-empty {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.instagram-phone-empty {
  background: #d9d9d9;
}

.instagram-phone-grid .admin-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 12px;
  text-align: center;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

#adminUsers .admin-table {
  min-width: 1360px;
}

#adminRequirementGuesses .admin-table {
  min-width: 1420px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf1f6;
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  background: #fbfcff;
}

.admin-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.admin-table tr.selected td {
  background: #f8f5ff;
}

.admin-row-select {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.admin-row-select.selected {
  border-color: var(--solid-action);
  background: var(--solid-action);
}

.admin-row-select.selected::after {
  content: "";
  width: 7px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}

.admin-usage-summaries {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 10px;
  margin: 0;
}

.admin-no-clear-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.admin-no-clear-summary strong,
.admin-no-clear-summary em {
  color: var(--ink);
  font-weight: 950;
  font-style: normal;
  white-space: nowrap;
}

.admin-no-clear-summary span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-mini-stats {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(104px, 1fr));
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
  padding: 12px;
}

.no-clear-notice {
  display: grid;
  gap: 6px;
  border: 1px solid #d7dee9;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 10px 12px;
  margin: 10px 0;
}

.no-clear-notice strong {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 950;
}

.no-clear-notice span,
.no-clear-notice small {
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-mini-title {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-mini-stats div {
  display: grid;
  gap: 3px;
}

.admin-mini-stats span {
  color: #7a8596;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-mini-stats strong {
  color: var(--ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#adminRequirementGuesses .admin-table th:nth-child(5),
#adminRequirementGuesses .admin-table td:nth-child(5) {
  min-width: 260px;
}

#adminRequirementGuesses .admin-table th:nth-child(6),
#adminRequirementGuesses .admin-table td:nth-child(6) {
  min-width: 220px;
}

#adminRequirementGuesses .admin-table th:nth-child(7),
#adminRequirementGuesses .admin-table td:nth-child(7) {
  min-width: 360px;
}

.admin-heading-action {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.admin-heading-action span {
  display: inline-block;
  max-width: 190px;
  border: 1px solid rgba(98, 46, 255, 0.22);
  border-radius: 7px;
  background: rgba(98, 46, 255, 0.075);
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 900;
  line-height: 1.12;
}

.admin-heading-action button {
  min-height: 26px;
  border: 1px solid #e9d4ae;
  border-radius: 6px;
  background: #fbf1df;
  color: #7a4a12;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}

.admin-heading-action button:disabled {
  cursor: default;
  opacity: 0.72;
}

.admin-heading-action button.added {
  border-color: #ace2c2;
  background: #effaf4;
  color: #147349;
}

.admin-guess-preview {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  max-height: 96px;
  max-width: 360px;
  overflow: hidden;
}

.admin-guess-preview.empty {
  color: #a3adbb;
  font-style: italic;
}

.admin-empty {
  color: var(--muted);
  margin: 16px 0 0;
}

.record-controls {
  display: grid;
  gap: 6px;
}

.record-reset {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.record-reset:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.record-reset.danger:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

.record-reset.danger {
  margin-top: 12px;
  border-color: rgba(255, 87, 34, 0.35);
  background: #fff7ed;
  color: var(--orange);
}

.record-controls p,
.record-status {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.source-performance-stats {
  display: grid;
  gap: 4px;
  margin: 0 0 8px;
  color: #8a95a6;
  font-size: 0.72rem;
  line-height: 1.25;
}

.source-performance-stats div {
  display: grid;
  grid-template-columns: 56px repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.source-performance-stats b {
  color: #6b7280;
  font-weight: 850;
}

.source-performance-stats span {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.extension-content {
  display: grid;
  gap: 12px;
}

.extension-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dbe2eb;
  padding-bottom: 10px;
}

.extension-brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: auto;
}

.extension-app-logo {
  width: 82px;
  max-width: 30vw;
  height: 36px;
  object-fit: contain;
  object-position: center center;
}

.extension-divider {
  width: 1px;
  height: 30px;
  background: #d6dde8;
}

.extension-chrome-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.extension-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extension-steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
}

.extension-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #f1edff;
  color: var(--solid-action);
  font-size: 0.72rem;
  font-weight: 950;
}

.extension-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.32;
}

.extension-steps strong {
  color: var(--ink);
  font-weight: 950;
}

.extension-download {
  color: var(--violet);
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chat-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  width: min(1420px, 100%);
  height: calc(100vh - 112px);
  min-height: 540px;
  margin: -2px auto 19px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.chat-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100%;
  overflow: auto;
  border-right: 1px solid #e8eaee;
  background: transparent;
  padding: 10px 10px 14px 0;
}

.new-chat {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 650;
}

.new-chat {
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e8eaee;
}

.chat-list {
  display: grid;
  gap: 2px;
}

.chat-item.active,
.chat-item:hover {
  background: #eceef2;
}

body[data-source="indeed"] .chat-item.active,
body[data-source="indeed"] .chat-item:hover {
  background: #eceef2;
}

.chat-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 6px 0 12px;
  cursor: pointer;
}

.chat-open {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: transparent;
}

.chat-title-input {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.chat-title-input:focus:not(.editing) {
  background: transparent;
  box-shadow: none;
}

.chat-title-input.editing {
  cursor: text;
  user-select: text;
}

.chat-title-input.editing:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(22, 31, 43, 0.1);
}

.chat-menu-button {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  line-height: 1;
}

.chat-menu-button:hover {
  background: #f4f5f7;
  color: var(--ink);
}

.chat-menu {
  position: absolute;
  right: 6px;
  top: 34px;
  z-index: 5;
  display: none;
  min-width: 116px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(22, 31, 43, 0.14);
  padding: 6px;
}

.chat-menu.open {
  display: block;
}

.chat-menu button {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0 9px;
  font-weight: 800;
}

.chat-menu button:hover {
  background: #f1f3f5;
  color: var(--blue);
}

.chat-main {
  display: grid;
  position: relative;
  z-index: 40;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  background: transparent;
}

.chat-toolbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef0f3;
  padding: 10px min(7vw, 96px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.prompt-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.system-toggle {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 0 12px;
  font-weight: 500;
}

.system-toggle:hover {
  border-color: var(--blue);
  background: #f2f8ff;
}

.system-toggle.active {
  border-color: var(--blue);
  background: #f2f8ff;
}

.cover-style-toggle {
  color: var(--orange);
}

.cover-style-toggle:hover,
.cover-style-toggle.active {
  border-color: var(--orange);
  background: #fff4ee;
}

.system-status {
  color: var(--muted);
  font-size: 0.84rem;
}

.system-popover {
  position: absolute;
  top: 10px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 260;
  display: none;
}

.system-popover.open {
  display: grid;
}

.system-popover-card {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  max-width: none;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22, 31, 43, 0.28);
  padding: 16px;
}

.system-popover-card.active {
  display: grid;
}

.system-popover-card label {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.prompt-counter {
  color: #98a2b3;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 8px;
}

.system-save {
  grid-column: 2;
  min-height: 28px;
  border-radius: 7px;
  background: transparent;
  color: var(--blue);
  padding: 0 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.system-save:hover {
  background: #f2f5f8;
}

.system-popover-card textarea {
  grid-column: 1 / -1;
  height: 100%;
  min-height: 0;
  max-height: none;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

#coverView textarea:focus,
#coverView textarea:focus-visible,
#coverView input:focus-visible,
#coverView select:focus-visible,
#coverView button:focus-visible,
#coverView a:focus-visible {
  outline: none;
  box-shadow: none;
}

#coverView textarea:focus {
  border-color: var(--line);
}

#coverView .chat-composer:focus-within {
  border-color: var(--line);
  box-shadow: none;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
  padding: 24px min(8vw, 120px) 28px;
}

.chat-scroll-bottom {
  position: absolute;
  left: 50%;
  bottom: 94px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(22, 31, 43, 0.14);
  font-size: 1.35rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-scroll-bottom.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.chat-scroll-bottom:hover {
  color: #fff;
  background: var(--solid-action);
}

.empty-chat {
  margin: auto;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
}

.empty-chat.linked,
.empty-chat.missing-job,
.chat-job-notice {
  width: min(680px, 100%);
  margin: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.empty-chat.linked strong,
.empty-chat.missing-job strong,
.chat-job-notice strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.08rem;
}

.empty-chat-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.empty-chat-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f0ff;
  color: #1b6ec2;
  font-size: 0.82rem;
}

.chat-job-notice {
  margin: 0 0 4px;
  background: #fff7ed;
  border-color: #fed7aa;
}

.message {
  max-width: min(760px, 100%);
  line-height: 1.5;
}

.message.user {
  align-self: flex-end;
  max-width: min(640px, 78%);
}

.message.assistant {
  align-self: flex-start;
  width: min(760px, 100%);
}

.message-body {
  border-radius: 18px;
  padding: 0;
  background: transparent;
}

.message-content {
  min-width: 0;
}

.message.user .message-body {
  position: relative;
  max-height: none;
  overflow: visible;
  border-radius: 20px;
  background: #050505;
  color: #fff;
  padding: 12px 16px;
}

.message.collapsible .message-body {
  position: relative;
  overflow: visible;
}

.message.collapsible.collapsed .message-body {
  overflow: hidden;
  padding-bottom: 62px;
}

.message.user.collapsible.collapsed .message-body {
  max-height: calc(1.5em * 8 + 70px);
}

.message.user.collapsible.expanded .message-body {
  max-height: none;
  overflow: hidden;
}

.message.collapsible.collapsed .message-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  border-radius: 0 0 18px 18px;
  pointer-events: none;
}

.message.user.collapsible.collapsed .message-body::after {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), #050505 76%);
}

.message-more {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #4b5563;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 750;
}

.message-more::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.message.expanded .message-more::after {
  transform: translateY(2px) rotate(225deg);
}

.message.user .message-more {
  color: rgba(255, 255, 255, 0.86);
}

.message-more:hover {
  color: var(--solid-action);
}

.message.user .message-more:hover {
  color: #fff;
}

.message.assistant .message-body {
  color: var(--ink);
  font-size: 0.98rem;
}

.message.pending .message-body {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.writing-mark {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-left: 12px;
  animation: writingDot 1.35s ease-in-out infinite;
}

.writing-mark::before,
.writing-mark::after {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: writingDot 1.35s ease-in-out infinite;
}

.writing-mark::before {
  left: -12px;
  background: var(--violet);
  animation-delay: -0.18s;
}

.writing-mark::after {
  left: 12px;
  background: var(--orange);
  animation-delay: 0.18s;
}

@keyframes writingDot {
  0%,
  100% {
    transform: translateY(2px) scale(0.82);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-3px) scale(1.08);
    opacity: 1;
  }
}

.writing-ellipsis {
  display: inline-block;
  min-width: 0.7em;
  animation: ellipsisBlink 1.35s ease-in-out infinite;
}

@keyframes ellipsisBlink {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-left: 0;
}

.message-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.message-action:hover,
.message-action.copied {
  background: #f1f3f5;
  color: var(--ink);
}

.message-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatgpt-action {
  width: 30px;
  min-width: 30px;
  padding: 0;
  color: #68717b;
}

.chatgpt-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chatgpt-status {
  align-self: center;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 500;
}

.chatgpt-status.is-gradient-running {
  color: transparent;
  background: linear-gradient(90deg, #ff4f24, #6a35ff, #0974d3, #ff4f24);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: chatgpt-status-gradient 2.4s ease-in-out 3;
}

@keyframes chatgpt-status-gradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.chatgpt-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: end;
  gap: 10px;
  width: min(840px, calc(100% - 44px));
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(22, 31, 43, 0.08);
}

.chat-composer textarea {
  min-height: 40px;
  max-height: calc(1.45em * 8 + 22px);
  line-height: 1.45;
  border: 0;
  background: transparent;
  resize: none;
  box-shadow: none;
  overflow-y: auto;
  padding: 8px 4px;
}

.chat-composer button {
  align-self: end;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 850;
}

.api-status {
  min-height: 24px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tech-stack-panel {
  margin-top: 18px;
}

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

.tech-stack-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.tech-stack-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.tech-stack-grid li + li {
  margin-top: 7px;
}

.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.key-toggle {
  min-height: 48px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-weight: 850;
}

.key-row input:disabled {
  color: var(--muted);
  background: #f1f4f7;
  -webkit-text-security: none;
}

@media (max-width: 920px) {
  .topbar,
  .center-stage,
  .search-workbench,
  .jobs-stage,
  .lists-grid,
  .tutorial-grid,
  .flow-grid,
  .feature-strip,
  .workflow-benefits-grid,
  .pricing-grid,
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .keyword-sidebar {
    position: static;
    width: 100%;
  }

  .keyword-buttons {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .jobs-stage {
    width: min(980px, 100%);
  }

  .jobs-keyword-bar {
    width: min(720px, 100%);
    margin: -14px auto 0;
  }

  .jobs-keyword-bar .keyword-buttons {
    display: flex;
    gap: 12px;
  }

  .keyword-panel {
    top: 72px;
    left: 10px;
    height: min(560px, calc(100vh - 92px));
    width: calc(100vw - 20px);
  }

  .job-preview-panel {
    top: 72px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .saved-preview-panel {
    left: 10px;
    padding: 10px;
  }

  .record-panel,
  .extension-panel {
    top: 72px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .chat-sidebar {
    position: static;
    height: auto;
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-main,
  .chat-shell {
    height: auto;
    min-height: 680px;
  }

  .system-popover {
    top: 58px;
    left: 10px;
    right: 10px;
  }

  .system-popover-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    display: grid;
    align-items: start;
  }

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

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-hero,
  .account-hero,
  .account-danger,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-usage-summaries,
  .admin-mini-stats {
    grid-template-columns: 1fr;
  }

  .admin-mini-title {
    white-space: normal;
  }

  .account-search-row,
  .account-applied-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .search-series-grid {
    grid-template-columns: 1fr;
  }

  .account-search-line,
  .account-search-stats {
    flex-wrap: wrap;
  }

  .account-search-actions {
    justify-items: stretch;
  }

  .instagram-manager-stage {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .instagram-manager-item {
    grid-template-columns: minmax(160px, 1fr) 84px auto;
  }

  .instagram-manager-item > div:not(.instagram-manager-actions) {
    grid-column: 2 / -1;
  }

  .source-switch {
    padding-left: 0;
  }

}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 18px;
  }

  .tabs,
  .tab,
  .actions,
  .decision-row {
    width: 100%;
  }

  .source-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .instagram-head {
    align-items: start;
    flex-direction: column;
  }

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

  .source-button {
    justify-content: center;
  }

  .field-grid,
  .location-remote-grid,
  .metrics,
  .portal-progress-row,
  .admin-metrics,
  .account-grid,
  .account-metrics,
  .account-daily-usage,
  .account-detail-grid,
  .tutorial-hero > div {
    grid-template-columns: 1fr;
  }

  .tutorial-hero p {
    grid-column: 1;
  }
}

/* Night Vision contrast pass: keep dark surfaces and readable text even after page-specific rules. */
body.night-vision {
  background: #0b1020;
  color: #f8fafc;
}

body.night-vision .topbar,
body.night-vision .panel,
body.night-vision .search-panel,
body.night-vision .status-panel,
body.night-vision .portal-progress-row,
body.night-vision .search-history-drawer,
body.night-vision .account-hero,
body.night-vision .account-card,
body.night-vision .account-panel,
body.night-vision .account-metric,
body.night-vision .daily-limit-card,
body.night-vision .search-series-column,
body.night-vision .search-series-control,
body.night-vision .search-series-list.is-dropzone,
body.night-vision .search-series-item,
body.night-vision .account-search-row,
body.night-vision .account-applied-row,
body.night-vision .account-detail,
body.night-vision .admin-panel,
body.night-vision .admin-metric,
body.night-vision .admin-mini-stats,
body.night-vision .admin-no-clear-summary,
body.night-vision .admin-no-clear-card,
body.night-vision .admin-review-item,
body.night-vision .saved-preview-card,
body.night-vision .preview-description,
body.night-vision .job-preview-card,
body.night-vision .chat-sidebar,
body.night-vision .new-chat,
body.night-vision .chat-main,
body.night-vision .chat-toolbar,
body.night-vision .chat-menu,
body.night-vision .system-popover-card,
body.night-vision .chat-composer,
body.night-vision #jobsView .job-card,
body.night-vision #jobsView .job-card-scroll,
body.night-vision #jobsView .job-actions,
body.night-vision #jobsView .review-sidebar > .review-meta,
body.night-vision #jobsView .review-sidebar > .review-search-context,
body.night-vision #jobsView .review-sidebar > .auto-guess-control,
body.night-vision #jobsView .review-sidebar > .requirement-source-panel,
body.night-vision #jobsView .review-sidebar > .decision-hint,
body.night-vision #jobsView .review-panel > .review-meta,
body.night-vision #jobsView .review-panel > .review-search-context,
body.night-vision #jobsView .review-panel > .auto-guess-control,
body.night-vision #jobsView .review-panel > .requirement-source-panel,
body.night-vision #jobsView .review-panel > .decision-hint {
  background: #172033;
  color: #f8fafc;
  border-color: #334155;
}

body.night-vision #searchView .status-panel .metrics,
body.night-vision .metrics div,
body.night-vision .daily-limit-track,
body.night-vision .account-search-filters span,
body.night-vision .search-series-item-meta span,
body.night-vision .search-series-control .search-series-counts {
  background: #111827;
  border-color: #334155;
}

body.night-vision #searchView .status-panel .metrics div + div,
body.night-vision #jobsView .job-card-divider,
body.night-vision #jobsView .job-actions,
body.night-vision .chat-sidebar,
body.night-vision .chat-toolbar {
  border-color: #334155;
}

body.night-vision input,
body.night-vision select,
body.night-vision textarea,
body.night-vision .remote-toggle-field,
body.night-vision #searchView .remote-toggle-field,
body.night-vision .system-toggle {
  background: #111827;
  color: #f8fafc;
  border-color: #334155;
}

body.night-vision input::placeholder,
body.night-vision textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

body.night-vision .remote-toggle-field > span:first-child,
body.night-vision .job-title,
body.night-vision #jobsView .job-title,
body.night-vision #jobsView .requirements,
body.night-vision #jobsView .requirements h3,
body.night-vision #jobsView .requirements h4,
body.night-vision #jobsView .requirements strong:first-child,
body.night-vision #jobsView .requirements li,
body.night-vision #jobsView .requirements p,
body.night-vision #jobsView .review-card-copy strong,
body.night-vision #jobsView .review-meta strong,
body.night-vision .metrics strong,
body.night-vision #searchView .status-panel .metrics strong,
body.night-vision .portal-progress-main strong,
body.night-vision .search-series-column-head strong,
body.night-vision .search-series-control strong,
body.night-vision .search-series-item strong,
body.night-vision .account-hero h1,
body.night-vision .account-card h2,
body.night-vision .account-panel h2,
body.night-vision .account-search-line strong,
body.night-vision .account-applied-row strong,
body.night-vision .daily-limit-head strong,
body.night-vision .admin-panel h2,
body.night-vision .admin-metric strong,
body.night-vision .admin-mini-stats strong,
body.night-vision .chat-title-input,
body.night-vision .chat-menu button,
body.night-vision .message-body,
body.night-vision .chat-composer textarea {
  color: #f8fafc;
}

body.night-vision .job-location,
body.night-vision #jobsView .job-location,
body.night-vision .metrics span,
body.night-vision .metrics small,
body.night-vision #searchView .status-panel .metrics span,
body.night-vision .portal-progress-row small,
body.night-vision .portal-progress-row > span,
body.night-vision .completion,
body.night-vision .account-hero p,
body.night-vision .account-card p,
body.night-vision .account-metric span,
body.night-vision .account-search-line span,
body.night-vision .account-search-stats,
body.night-vision .account-search-filters span,
body.night-vision .account-applied-row > span,
body.night-vision .account-applied-row div span,
body.night-vision .account-applied-meta span,
body.night-vision .search-series-column-head span,
body.night-vision .search-series-control span,
body.night-vision .search-series-control p,
body.night-vision .search-series-item-meta,
body.night-vision .search-series-item div > span,
body.night-vision .daily-limit-head span,
body.night-vision .daily-limit-card p,
body.night-vision .system-status {
  color: #cbd5e1;
}

body.night-vision .source-button,
body.night-vision .search-source-rail .source-button,
body.night-vision .chat-item,
body.night-vision .secondary,
body.night-vision .tiny-reset {
  background: #111827;
  color: #cbd5e1;
  border-color: #334155;
}

body.night-vision .source-button.active,
body.night-vision .search-source-rail .source-button.active,
body.night-vision .chat-item.active,
body.night-vision .chat-item:hover,
body.night-vision .system-toggle.active,
body.night-vision .system-toggle:hover {
  background: rgba(91, 44, 255, 0.24);
  color: #ddd6fe;
  border-color: rgba(167, 139, 250, 0.56);
}

body.night-vision .cover-style-toggle {
  color: #ffb38f;
}

body.night-vision .cover-style-toggle.active,
body.night-vision .cover-style-toggle:hover {
  background: rgba(255, 90, 31, 0.16);
  border-color: rgba(255, 139, 109, 0.58);
  color: #ffb38f;
}

body.night-vision #jobsView .cover-button,
body.night-vision #jobsView .preview-toggle,
body.night-vision #jobsView .easy-apply-link,
body.night-vision #jobsView .job-source-action,
body.night-vision #jobsView .job-actions .source-link {
  color: #e5e7eb;
}

body.night-vision #jobsView .cover-button::before,
body.night-vision #jobsView .preview-toggle::before {
  background: #e5e7eb;
}

body.night-vision .portal-progress-row > span.running,
body.night-vision .badge.running {
  background: rgba(91, 44, 255, 0.24);
  color: #ddd6fe;
}

body.night-vision .portal-progress-row > span.action {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

body.night-vision .portal-progress-row > span.error {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

body.night-vision .portal-progress-row > span.waiting,
body.night-vision .badge.idle {
  background: #263247;
  color: #cbd5e1;
}

body.night-vision .account-relaunch,
body.night-vision .account-applied-delete,
body.night-vision .search-series-item button {
  border-color: #334155;
}

body.night-vision .account-applied-delete,
body.night-vision .search-series-control .series-clear,
body.night-vision .search-series-item .series-remove {
  background: rgba(255, 90, 31, 0.12);
  color: #ffb38f;
  border-color: rgba(255, 139, 109, 0.42);
}

/* Final visual hardening: keep the logo breathing and make Night Vision legible. */
.brand-lockup,
.app-brand-button.brand-lockup,
body[data-page="app"] .brand-block #appTitle {
  overflow: visible;
}

.app-brand-button.brand-lockup img,
body[data-page="app"] .brand-block #appTitle img {
  width: 250px;
  height: 58px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  box-sizing: border-box;
  mix-blend-mode: normal;
}

body[data-page="app"] .brand-block #appTitle {
  min-height: 58px;
  align-items: center;
}

body.mobile-preview-mode[data-page="app"] .brand-block #appTitle img {
  width: 190px;
  height: 46px;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
}

body.night-vision .brand-lockup img,
body.night-vision .app-brand-button.brand-lockup img,
body.night-vision[data-page="app"] .brand-block #appTitle img {
  background: transparent;
  opacity: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
  mix-blend-mode: normal;
}

body.night-vision .brand-wordmark {
  color: #f8fafc;
}

body.night-vision .brand-wordmark strong {
  color: var(--orange);
}

body.night-vision .status-panel,
body.night-vision .search-panel,
body.night-vision .search-history-row,
body.night-vision #jobsView .job-card,
body.night-vision #jobsView .job-card-scroll,
body.night-vision #jobsView .job-actions,
body.night-vision .account-applied-row,
body.night-vision .list-item,
body.night-vision .review-list-card,
body.night-vision .saved-preview-card,
body.night-vision .preview-description,
body.night-vision .job-preview-card,
body.night-vision .chat-sidebar,
body.night-vision .chat-main,
body.night-vision .chat-toolbar {
  background: #172033;
  color: #f8fafc;
  border-color: #334155;
}

body.night-vision .portal-progress-row,
body.night-vision #searchView .status-panel .portal-progress-row {
  background: #111827;
  color: #f8fafc;
  border-color: #334155;
}

body.night-vision .portal-progress-row *,
body.night-vision #searchView .status-panel .portal-progress-row *,
body.night-vision #jobsView .job-card *,
body.night-vision .account-applied-row *,
body.night-vision .list-item *,
body.night-vision .review-list-card *,
body.night-vision .chat-main *,
body.night-vision .chat-sidebar * {
  opacity: 1;
}

body.night-vision .portal-progress-row small,
body.night-vision .portal-progress-row em,
body.night-vision .portal-progress-row em span,
body.night-vision .search-history-row-main span,
body.night-vision .search-history-row-meta,
body.night-vision #jobsView .job-location,
body.night-vision #jobsView .requirements li,
body.night-vision #jobsView .requirements p,
body.night-vision .account-applied-row span,
body.night-vision .list-item span,
body.night-vision .chat-item,
body.night-vision .message-meta {
  color: #cbd5e1;
}

body.night-vision .portal-progress-row em strong,
body.night-vision .search-history-head strong,
body.night-vision .search-history-row-main strong,
body.night-vision .job-company,
body.night-vision #jobsView .job-company,
body.night-vision .account-applied-row strong,
body.night-vision .list-item strong,
body.night-vision .message-body {
  color: #f8fafc;
}

body.night-vision .portal-progress-row em strong {
  color: #a78bfa;
}

body.night-vision #searchView .status-panel .metrics,
body.night-vision #searchView .status-panel .metrics div {
  background: #111827;
  color: #f8fafc;
  border-color: #334155;
}

body.night-vision #searchView .status-panel .metrics strong {
  color: #f8fafc;
}

body.night-vision #searchView .status-panel .metrics span,
body.night-vision #searchView .status-panel .metrics small {
  color: #cbd5e1;
}

body.night-vision .search-history-row-meta span,
body.night-vision .search-history-series span {
  background: #111827;
  color: #dbeafe;
}

body.night-vision .search-history-row-actions button {
  background: #111827;
  color: #c4b5fd;
  border-color: #475569;
}

body.night-vision .search-history-row-actions button.delete {
  color: #fca5a5;
}

/* Final mobile overrides live at the end so logo/header hardening cannot undo them. */
@media (max-width: 640px) {
  body[data-page="app"] .brand-block #appTitle img {
    width: min(178px, 52vw);
    height: 46px;
  }

  body[data-page="app"] .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: visible;
  }

  body[data-page="app"] .tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  body[data-page="app"] .tab {
    width: auto !important;
    min-width: max-content;
    flex: 0 0 auto;
  }

  body[data-page="app"] #jobsView .review-panel {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  body[data-page="app"] #jobsView .review-main-column {
    order: 1;
  }

  body[data-page="app"] #jobsView .review-sidebar {
    order: 2;
    grid-row: auto !important;
  }
}

body.mobile-preview-mode[data-page="app"] .search-workbench,
body.mobile-preview-mode[data-page="app"] #searchView .center-stage,
body.mobile-preview-mode[data-page="app"] .jobs-stage,
body.mobile-preview-mode[data-page="app"] #jobsView .review-panel {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: grid;
  grid-template: none !important;
  grid-template-columns: 1fr !important;
}

body.mobile-preview-mode[data-page="app"] #searchView .status-panel {
  position: relative;
  top: auto;
  grid-area: auto;
}

body.mobile-preview-mode[data-page="app"] #searchView .search-panel {
  grid-area: auto;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-panel,
body.mobile-preview-mode[data-page="app"] #jobsView .review-main-column,
body.mobile-preview-mode[data-page="app"] #jobsView .review-sidebar,
body.mobile-preview-mode[data-page="app"] #jobsView .job-card,
body.mobile-preview-mode[data-page="app"] #jobsView .decision-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-column: 1 !important;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-panel {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-main-column {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .review-sidebar {
  order: 2;
  display: grid;
  grid-row: auto !important;
  gap: 12px;
}

body.mobile-preview-mode[data-page="app"] #jobsView .job-card-head {
  grid-template-columns: 54px minmax(0, 1fr);
}

body.mobile-preview-mode[data-page="app"] #jobsView .decision-row {
  grid-template-columns: 1fr 1fr;
}
