:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #17202a;
  background: #f2f5f8;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 80px; }
.page-wide { width: min(1500px, calc(100% - 28px)); }
.hero { margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: #0a7f67; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; }
h2 { margin: 0 0 16px; font-size: 22px; }
.subtitle { max-width: 760px; color: #596775; font-size: 18px; line-height: 1.5; }
.panel { margin-bottom: 22px; padding: 28px; border: 1px solid #dde4eb; border-radius: 20px; background: white; box-shadow: 0 12px 40px rgba(28, 48, 68, .06); }
section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e9edf1; }
label { display: flex; flex-direction: column; gap: 8px; color: #354350; font-size: 14px; font-weight: 750; }
textarea, input, select { width: 100%; border: 1px solid #cfd8e1; border-radius: 10px; padding: 12px 13px; font: inherit; font-weight: 400; color: #17202a; background: #fff; }
textarea { resize: vertical; line-height: 1.45; }
textarea:focus, input:focus, select:focus { outline: 3px solid rgba(10, 143, 115, .14); border-color: #0a8f73; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.check { margin-top: 14px; flex-direction: row; align-items: center; }
.check input { width: 19px; height: 19px; accent-color: #0a8f73; }
.primary { margin-top: 28px; width: 100%; border: 0; border-radius: 12px; padding: 15px 22px; background: #0a8f73; color: #fff; font-size: 16px; font-weight: 850; cursor: pointer; }
.primary:hover { background: #08745f; }
.hidden { display: none !important; }
.error { margin-top: 14px; padding: 13px; border-radius: 10px; background: #fff0f0; color: #a12b2b; }
.progress-top { display: flex; align-items: center; justify-content: space-between; }
#progress-number { color: #0a8f73; font-size: 28px; }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e6ecef; }
#progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a8f73, #39b98e); transition: width 300ms ease; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.downloads a { padding: 10px 13px; border-radius: 9px; background: #edf8f5; color: #08745f; font-weight: 800; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e7ebef; text-align: left; vertical-align: top; }
th { color: #61707d; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
td:nth-child(6) { min-width: 320px; }
.parser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.parser-card { display: block; min-height: 240px; padding: 26px; border: 1px solid #dde4eb; border-radius: 22px; background: #fff; box-shadow: 0 12px 40px rgba(28, 48, 68, .06); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.parser-card:hover { transform: translateY(-3px); border-color: rgba(10, 143, 115, .35); box-shadow: 0 18px 50px rgba(28, 48, 68, .1); text-decoration: none; }
.parser-card h2 { margin: 16px 0 10px; font-size: 26px; letter-spacing: -.02em; }
.parser-card p { min-height: 72px; margin: 0 0 22px; color: #596775; line-height: 1.5; }
.parser-card strong { color: #08745f; }
.parser-label { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: #edf8f5; color: #08745f; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roadmap > div { padding: 16px; border-radius: 14px; background: #f7faf9; }
.roadmap h3 { margin: 0 0 8px; }
.roadmap p { margin: 0; color: #596775; line-height: 1.45; }
.module-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.module-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border-radius: 10px; font-weight: 850; text-decoration: none; }
.primary-link { background: #0a8f73; color: #fff; }
.primary-link:hover { background: #08745f; text-decoration: none; }
.secondary-link { background: #edf2f6; color: #354350; }
.secondary-link:hover { background: #e0e8ef; text-decoration: none; }
.module-note p { margin: 0 0 10px; color: #596775; line-height: 1.5; }
.module-note.ready { border-color: rgba(10, 143, 115, .25); }
.muted-line { color: #6b7785 !important; }
code { padding: 2px 5px; border-radius: 5px; background: #edf2f6; }
.embed-shell { height: 82vh; min-height: 720px; overflow: hidden; border: 1px solid #dde4eb; border-radius: 20px; background: #111318; box-shadow: 0 12px 40px rgba(28, 48, 68, .08); }
.embed-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.manual-parser-shell {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(13, 20, 28, .72);
}
.manual-parser-shell summary {
  cursor: pointer;
  color: #d9f8ee;
  font-size: 18px;
  font-weight: 900;
}
.manual-parser-shell .embed-shell {
  margin-top: 16px;
}
@media (max-width: 820px) {
  .page { width: min(100% - 20px, 1120px); padding-top: 24px; }
  .panel { padding: 20px; }
  .split, .grid-4 { grid-template-columns: 1fr; }
  .parser-grid, .roadmap { grid-template-columns: 1fr; }
  .module-hero { display: block; }
  .module-actions { justify-content: flex-start; }
  .embed-shell { min-height: 640px; }
}

/* Leadspikers dark product skin */
:root {
  color: #eef7f4;
  background:
    radial-gradient(circle at top left, rgba(30, 215, 151, .18), transparent 34rem),
    radial-gradient(circle at top right, rgba(84, 108, 255, .2), transparent 34rem),
    #080d12;
}
body {
  min-height: 100vh;
  color: #eef7f4;
  background:
    linear-gradient(135deg, rgba(14, 24, 32, .96), rgba(6, 9, 14, .98)),
    #080d12;
}
.hero-shell {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.eyebrow { color: #49e6aa; }
h1, h2, h3 { color: #f6fffc; }
.subtitle { color: #a7b8c4; }
.hero-metrics { display: flex; gap: 12px; }
.hero-metrics div {
  min-width: 112px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.hero-metrics strong { display: block; font-size: 34px; line-height: 1; color: #49e6aa; }
.hero-metrics span { display: block; margin-top: 6px; color: #a7b8c4; font-size: 13px; }
.panel,
.parser-card,
.preset-card {
  border-color: rgba(255,255,255,.09);
  background: rgba(13, 20, 28, .84);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}
.accent-panel {
  background: linear-gradient(135deg, rgba(18, 34, 42, .92), rgba(13, 20, 28, .86));
}
section + section { border-top-color: rgba(255,255,255,.08); }
label { color: #d7e4df; }
textarea,
input,
select {
  border-color: rgba(255,255,255,.1);
  color: #f4fbf8;
  background: rgba(4, 8, 12, .72);
}
textarea::placeholder,
input::placeholder { color: #73848f; }
.parser-card:hover {
  border-color: rgba(73, 230, 170, .45);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.parser-card p,
.module-note p,
.roadmap p,
.preset-card p,
.muted-line { color: #a7b8c4 !important; }
.hint-line {
  margin: 10px 0 0;
  color: #8fa2ad;
  font-size: 13px;
}
.parser-label,
.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(73, 230, 170, .12);
  color: #49e6aa;
  border: 1px solid rgba(73, 230, 170, .18);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.soft-pill {
  color: #a7b8c4;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
  text-transform: none;
  letter-spacing: 0;
}
.primary,
.primary-link {
  background: linear-gradient(135deg, #18c98d, #0a8f73);
  color: #03100c;
}
.primary:hover,
.primary-link:hover { background: linear-gradient(135deg, #49e6aa, #10a77f); }
.secondary-link,
.downloads a {
  background: rgba(255,255,255,.07);
  color: #d9f8ee;
  border: 1px solid rgba(255,255,255,.08);
}
.secondary-link:hover,
.downloads a:hover {
  background: rgba(73, 230, 170, .12);
  color: #49e6aa;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title-row h2 { margin-bottom: 0; }
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.preset-card {
  padding: 18px;
  border-radius: 18px;
}
.preset-topline,
.preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.preset-topline { justify-content: space-between; }
.preset-card h3 { margin: 16px 0 8px; font-size: 18px; }
.preset-card p { min-height: 62px; margin: 0 0 16px; line-height: 1.45; }
.preset-actions { justify-content: space-between; }
.preset-form { display: grid; gap: 16px; }
.field-hint {
  display: block;
  margin-top: 8px;
  color: #8ea2b0;
  font-size: 13px;
  line-height: 1.45;
}
.url-builder {
  display: grid;
  gap: 12px;
}
.url-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.url-builder-list {
  display: grid;
  gap: 12px;
}
.url-builder-row {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(360px, 1.3fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.url-builder-row label {
  margin: 0;
}
.remove-url-button {
  min-width: 92px;
}
.bulk-import {
  padding: 12px 14px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.bulk-import summary {
  cursor: pointer;
  color: #d9f8ee;
  font-weight: 800;
}
.compact-primary { width: auto; min-width: 220px; margin-top: 4px; }
.card-actions,
.history-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.card-actions { justify-content: space-between; }
.registry-actions { margin-top: 18px; }
.ghost-button,
.secondary-button,
.danger-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.ghost-button {
  border: 1px solid rgba(255,255,255,.08);
  color: #a7b8c4;
  background: rgba(255,255,255,.04);
}
.ghost-button:hover { color: #f4fbf8; background: rgba(255,255,255,.08); }
.secondary-button {
  border: 1px solid rgba(73,230,170,.18);
  color: #49e6aa;
  background: rgba(73,230,170,.1);
}
.danger-button {
  border: 1px solid rgba(255,91,91,.28);
  color: #ffb4b4;
  background: rgba(255,91,91,.1);
}
.danger-button:hover { background: rgba(255,91,91,.18); }
.slim-panel { padding-top: 20px; padding-bottom: 20px; }
.hidden-module-list {
  display: grid;
  gap: 10px;
}
.hidden-module-list form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.history-list { display: grid; gap: 12px; }
.history-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.history-row strong { display: block; margin-bottom: 4px; color: #f6fffc; }
.history-row span { display: block; color: #a7b8c4; font-size: 13px; }
.history-row p { margin: 8px 0 0; color: #a7b8c4; }
.monitor-card > .history-list,
.monitor-card > .saved-url-list {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.monitor-card > .saved-url-list {
  margin-top: 4px;
}
.history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history-stats span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(73,230,170,.1);
  color: #d9f8ee;
}
.saved-url-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.saved-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.saved-url-row .hh-monitor-run-form {
  justify-self: end;
}
.saved-url-main {
  min-width: 0;
}
.saved-url-main strong {
  display: block;
  color: #f6fffc;
}
.saved-url-summary {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a7b8c4;
  font-size: 13px;
}
.saved-url-details {
  margin-top: 8px;
}
.saved-url-details summary {
  cursor: pointer;
  color: #49e6aa;
  font-size: 12px;
  font-weight: 800;
}
.saved-url-details code {
  display: block;
  max-height: 92px;
  margin-top: 7px;
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #cfe9df;
  font-size: 12px;
  line-height: 1.35;
}
.compact-button {
  min-height: 34px;
  padding: 7px 12px;
}
.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.notice.success { color: #49e6aa; background: rgba(73,230,170,.1); }
.notice.error { color: #ffb4b4; background: rgba(255,74,74,.11); }
.json-preview {
  display: grid;
  gap: 14px;
  color: #d9f8ee;
}
.json-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.json-preview-title {
  flex: 1 1 260px;
  min-width: 0;
  color: #f6fffc;
}
.json-preview-title strong {
  color: #49e6aa;
}
.json-preview-details {
  padding: 12px 14px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.json-preview-details summary {
  cursor: pointer;
  color: #d9f8ee;
  font-weight: 850;
}
.keyword-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
.keyword-preview-column {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.035);
}
.keyword-preview-column h4 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 11px 12px;
  background: rgba(0,0,0,.22);
  color: #f6fffc;
  font-size: 14px;
}
.keyword-preview-list {
  display: grid;
  max-height: 260px;
  overflow: auto;
}
.keyword-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #d9f8ee;
  font-size: 13px;
}
.keyword-row:first-child {
  border-top: 0;
}
.keyword-word {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.keyword-score {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(73,230,170,.12);
  color: #49e6aa;
  font-weight: 850;
  font-size: 12px;
}
.keyword-score.negative {
  background: rgba(255,74,74,.12);
  color: #ffb4b4;
}
.keyword-remove {
  border: 1px solid rgba(255,74,74,.4);
  background: rgba(255,74,74,.14);
  color: #ffb4b4;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.keyword-remove:hover {
  background: rgba(255,74,74,.25);
  color: #fff;
}
@media (min-width: 860px) {
  .keyword-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.roadmap > div { background: rgba(255,255,255,.055); }
code { color: #d9f8ee; background: rgba(255,255,255,.07); }
table { color: #eaf5f1; }
th, td { border-bottom-color: rgba(255,255,255,.08); }
th { color: #8fa2ad; }
.progress-track { background: rgba(255,255,255,.08); }
.progress-track > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16c99a, #49e6aa);
  transition: width 300ms ease;
}
.error-line {
  color: #ffb4b4 !important;
  background: rgba(255,74,74,.1);
  border: 1px solid rgba(255,74,74,.18);
  border-radius: 10px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
.error { background: rgba(255,74,74,.12); color: #ffb4b4; }
@media (max-width: 980px) {
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shell { display: block; }
  .hero-metrics { margin-top: 18px; }
}
@media (max-width: 820px) {
  .preset-grid { grid-template-columns: 1fr; }
  .section-title-row { display: block; }
  .history-row { grid-template-columns: 1fr; }
  .url-builder-head { display: grid; }
  .url-builder-row { grid-template-columns: 1fr; }
}

.account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(73,230,170,.18);
  border-radius: 16px;
  background: rgba(9,24,29,.82);
}
.account-strip > div,
.account-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-strip a { color: #d9f8ee; text-decoration: none; font-weight: 750; }
.account-strip form { margin: 0; }
.auth-page { min-height: 100vh; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid rgba(73,230,170,.2);
  border-radius: 24px;
  background: rgba(9,24,29,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.auth-card-wide { width: min(100%, 620px); }
.auth-card h1 { margin-top: 6px; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-form label { display: grid; gap: 8px; font-weight: 750; }
.auth-form input,
.inline-project-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.24);
  color: #eefaf6;
}
.compact-hero { min-height: 0; }
.project-grid { display: grid; gap: 12px; }
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.project-card h2 { margin: 10px 0 0; }
.project-card-active { border-color: rgba(73,230,170,.42); background: rgba(73,230,170,.07); }
.inline-project-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.account-grid > div { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.04); }
.client-list { display: grid; gap: 10px; }
.client-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.client-row > div { display: grid; gap: 5px; }
.client-row span { color: #a9bbc4; }
.admin-client-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-client-form label { display: grid; gap: 7px; font-weight: 750; }
.admin-client-form input {
  width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px; background: rgba(0,0,0,.24); color: #eefaf6;
}
.admin-client-form .primary { align-self: end; }
@media (max-width: 820px) {
  .account-strip,
  .account-strip > div,
  .account-strip-actions { align-items: stretch; flex-direction: column; }
  .inline-project-form,
  .admin-client-form,
  .account-grid { grid-template-columns: 1fr; }
  .client-row { grid-template-columns: 1fr; }
}

/* Parsing workspace: standalone product tab ready to mount in the main service. */
.parsing-workspace-body {
  min-height: 100vh;
  color: #eef0f8;
  background: #08090d;
}
.parsing-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background:
    radial-gradient(circle at 64% -15%, rgba(112, 91, 255, .12), transparent 33rem),
    #0a0b10;
}
.parsing-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(8, 9, 13, .96);
}
.parsing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 20px;
}
.parsing-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #9a87ff, #6651ee);
  box-shadow: 0 8px 26px rgba(111, 84, 255, .35);
  font-weight: 900;
}
.parsing-brand div,
.parsing-project-switcher > span:nth-child(2),
.parsing-account a > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.parsing-brand strong { color: #fff; font-size: 15px; }
.parsing-brand span:last-child,
.parsing-brand div span { color: #777c8e; font-size: 12px; }
.parsing-project-switcher {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  color: #eff1f7;
  background: rgba(255,255,255,.035);
  text-decoration: none;
}
.parsing-project-switcher:hover { border-color: rgba(137,116,255,.45); }
.parsing-project-avatar,
.parsing-account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #c8bdff;
  background: rgba(128, 103, 255, .15);
  font-size: 13px;
  font-weight: 850;
}
.parsing-project-switcher small,
.parsing-account small { color: #74798b; font-size: 10px; }
.parsing-project-switcher strong,
.parsing-account strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.parsing-chevron { color: #73788a; }
.parsing-nav { display: grid; gap: 6px; margin-top: 28px; }
.parsing-nav-caption {
  padding: 0 10px 8px;
  color: #575c6d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.parsing-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #9ca1b2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.parsing-nav a.active {
  border-color: rgba(138, 117, 255, .2);
  color: #fff;
  background: linear-gradient(90deg, rgba(126, 101, 255, .18), rgba(126, 101, 255, .05));
  box-shadow: inset 2px 0 #8e79ff;
}
.parsing-nav-icon { color: #9b89ff; font-size: 20px; }
.parsing-sidebar-bottom { display: grid; gap: 14px; margin-top: auto; }
.parsing-usage-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.parsing-usage-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.parsing-usage-card span,
.parsing-usage-card small { color: #777d8f; font-size: 11px; }
.parsing-usage-card strong { color: #d9dcee; font-size: 12px; }
.parsing-usage-track { height: 5px; overflow: hidden; border-radius: 99px; background: #22242e; }
.parsing-usage-track span { display: block; height: 100%; border-radius: inherit; background: #8069ff; }
.parsing-account {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.parsing-account > a { display: flex; align-items: center; gap: 10px; min-width: 0; color: #eff1f7; text-decoration: none; }
.parsing-account form { margin: 0; }
.parsing-account button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: #7d8293;
  background: transparent;
  cursor: pointer;
}
.parsing-account button:hover { color: #fff; background: rgba(255,255,255,.06); }
.parsing-main { min-width: 0; }
.parsing-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(10, 11, 16, .72);
  backdrop-filter: blur(18px);
}
.parsing-breadcrumb { display: flex; gap: 10px; align-items: center; color: #666b7c; font-size: 13px; }
.parsing-breadcrumb b { color: #383b46; }
.parsing-breadcrumb strong { color: #e9ebf4; }
.parsing-top-actions { display: flex; align-items: center; gap: 8px; }
.parsing-top-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 9px;
  color: #9298aa;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.parsing-top-actions a:hover { color: #fff; background: rgba(255,255,255,.05); }
.parsing-top-actions .parsing-button-secondary { border: 1px solid rgba(255,255,255,.09); color: #daddE8; }
.parsing-content { width: min(1220px, calc(100% - 54px)); margin: 0 auto; padding: 48px 0 80px; }
.parsing-content section + section { margin-top: 22px; padding-top: 0; border-top: 0; }
.parsing-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.parsing-intro > div:first-child { max-width: 680px; }
.parsing-kicker,
.parsing-step {
  margin: 0 0 10px;
  color: #8f79ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.parsing-intro h1 {
  margin: 0;
  color: #f7f7fb;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.parsing-intro p:last-child { margin: 15px 0 0; color: #8b91a3; font-size: 15px; line-height: 1.55; }
.parsing-overview-stats { display: flex; gap: 10px; }
.parsing-overview-stats div {
  min-width: 116px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.parsing-overview-stats strong { display: block; color: #fff; font-size: 22px; }
.parsing-overview-stats span { color: #6f7485; font-size: 10px; }
.parsing-launch-panel,
.parsing-section {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background: rgba(15, 16, 23, .84);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.parsing-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.parsing-section-head.compact { align-items: center; }
.parsing-section-head h2 { margin: 0; color: #f2f3f8; font-size: 20px; letter-spacing: -.02em; }
.parsing-section-head a { color: #9d8cff; text-decoration: none; font-size: 12px; font-weight: 750; }
.parsing-section-note { color: #6d7283; font-size: 11px; }
.parsing-source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.parsing-source-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  color: inherit;
  background: rgba(255,255,255,.025);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.parsing-source-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  opacity: 0;
  background: var(--source-accent);
  transition: opacity .2s ease;
}
.parsing-source-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--source-accent) 55%, transparent); background: rgba(255,255,255,.042); }
.parsing-source-card:hover::before { opacity: 1; }
.parsing-source-card.accent-violet { --source-accent: #8c76ff; }
.parsing-source-card.accent-blue { --source-accent: #4d8dff; }
.parsing-source-card.accent-cyan { --source-accent: #38c9d6; }
.parsing-source-card.accent-amber { --source-accent: #e6a94d; }
.parsing-source-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.parsing-source-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--source-accent) 45%, transparent);
  border-radius: 11px;
  color: var(--source-accent);
  background: color-mix(in srgb, var(--source-accent) 10%, transparent);
  font-size: 16px;
  font-weight: 900;
}
.parsing-recommended {
  padding: 5px 8px;
  border-radius: 99px;
  color: #bdb3ff;
  background: rgba(132, 105, 255, .12);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.parsing-source-label { color: var(--source-accent); font-size: 10px; font-weight: 800; }
.parsing-source-card h3 { margin: 7px 0 9px; color: #f4f5fa; font-size: 18px; letter-spacing: -.02em; }
.parsing-source-card > p { margin: 0; color: #858a9b; font-size: 12px; line-height: 1.5; }
.parsing-source-result { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; }
.parsing-source-result span { color: #5f6475; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.parsing-source-result strong { color: #bec2d0; font-size: 11px; font-weight: 650; }
.parsing-open-source { display: flex; justify-content: space-between; margin-top: 16px; color: #dfe1eb; font-size: 11px; font-weight: 800; }
.parsing-open-source b { color: var(--source-accent); font-size: 15px; }
.parsing-flow-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 19px 24px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}
.parsing-flow-strip div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.parsing-flow-strip div > span { grid-row: 1 / 3; color: #615c7d; font-size: 10px; font-weight: 850; }
.parsing-flow-strip strong { color: #d9dce7; font-size: 12px; }
.parsing-flow-strip small { color: #696e7e; font-size: 10px; }
.parsing-flow-strip > i { color: #3d3f4b; font-style: normal; }
.parsing-scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.parsing-scenario-grid a,
.parsing-processor-grid a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 13px;
  color: inherit;
  background: rgba(255,255,255,.02);
  text-decoration: none;
}
.parsing-scenario-grid a:hover,
.parsing-processor-grid a:hover { border-color: rgba(139, 118, 255, .38); background: rgba(139, 118, 255, .045); }
.parsing-scenario-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #c2b7ff;
  background: rgba(132,105,255,.12);
  font-weight: 850;
}
.parsing-scenario-grid a > span:nth-child(2),
.parsing-processor-grid a > span:nth-child(2) { display: grid; gap: 4px; }
.parsing-scenario-grid strong,
.parsing-processor-grid strong { color: #e7e9f0; font-size: 12px; }
.parsing-scenario-grid small,
.parsing-processor-grid small { overflow: hidden; color: #737889; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.parsing-scenario-grid b,
.parsing-processor-grid b { color: #6e7384; }
.parsing-processor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.parsing-processor-index { color: #77709b; font-size: 10px; font-weight: 850; }
.parsing-history-table { overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 13px; }
.parsing-history-header,
.parsing-history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(100px, .7fr) minmax(105px, .7fr) minmax(70px, .5fr);
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
}
.parsing-history-header { color: #555b6b; background: rgba(255,255,255,.018); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.parsing-history-row { border-top: 1px solid rgba(255,255,255,.055); color: #8d92a2; font-size: 11px; }
.parsing-history-row > div:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.parsing-history-row > div:first-child > span:last-child { display: grid; gap: 3px; min-width: 0; }
.parsing-history-row strong { color: #e4e6ee; }
.parsing-history-row small { color: #656a7a; }
.parsing-run-avatar {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #bfb5ff;
  background: rgba(132,105,255,.11);
  font-weight: 850;
}
.parsing-status { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.parsing-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.parsing-status.status-success { color: #59dba8; background: rgba(52,197,142,.09); }
.parsing-status.status-active { color: #a997ff; background: rgba(137,113,255,.1); }
.parsing-status.status-danger { color: #f0838e; background: rgba(228,81,97,.1); }
.parsing-status.status-muted { color: #9297a7; background: rgba(255,255,255,.05); }
.parsing-run-actions { display: flex; justify-content: flex-end; }
.parsing-run-actions a { color: #a998ff; text-decoration: none; font-size: 10px; font-weight: 800; }
.parsing-empty-state { display: grid; justify-items: center; gap: 7px; padding: 40px 20px; color: #737889; text-align: center; }
.parsing-empty-state > span { color: #8f7aff; font-size: 30px; }
.parsing-empty-state strong { color: #dfe1e9; }
.parsing-empty-state p { margin: 0; font-size: 11px; }
@media (max-width: 1120px) {
  .parsing-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parsing-source-card { min-height: 300px; }
  .parsing-intro { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 820px) {
  .parsing-app-shell { grid-template-columns: 1fr; }
  .parsing-sidebar { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; }
  .parsing-project-switcher,
  .parsing-sidebar-bottom,
  .parsing-nav-caption { display: none; }
  .parsing-brand { padding: 0; }
  .parsing-nav { margin: 0; }
  .parsing-topbar { padding: 0 18px; }
  .parsing-top-actions a:not(.parsing-button-secondary) { display: none; }
  .parsing-content { width: min(100% - 28px, 1220px); padding-top: 30px; }
  .parsing-overview-stats { width: 100%; overflow-x: auto; }
  .parsing-overview-stats div { min-width: 130px; }
  .parsing-processor-grid,
  .parsing-scenario-grid { grid-template-columns: 1fr; }
  .parsing-flow-strip { grid-template-columns: 1fr; }
  .parsing-flow-strip > i { display: none; }
  .parsing-history-header { display: none; }
  .parsing-history-row { grid-template-columns: 1fr auto; }
  .parsing-history-row > span:nth-child(2),
  .parsing-history-row > span:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .parsing-source-grid { grid-template-columns: 1fr; }
  .parsing-source-card { min-height: 285px; }
  .parsing-section-head { align-items: flex-start; flex-direction: column; }
  .parsing-overview-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .parsing-overview-stats div { min-width: 0; }
}

/* Light parsing module. This is the client UI; the dark hub remains admin-only. */
.parsing-light-body {
  min-height: 100vh;
  color: #22231f;
  background: #f7f7f3;
}
.parsing-light-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: #f7f7f3;
}
.parsing-light-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid #e7e7e0;
  background: #fcfcfa;
}
.parsing-light-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 25px;
  color: #181914;
  text-decoration: none;
}
.parsing-light-brand > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid #20211d;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.parsing-light-brand strong { font-size: 17px; letter-spacing: -.03em; }
.parsing-light-brand small { align-self: flex-start; margin-top: 3px; color: #9a9b91; font-size: 8px; font-weight: 750; }
.parsing-light-project {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e6e6df;
  border-radius: 10px;
  color: #272822;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26,27,23,.03);
}
.parsing-light-project > span,
.parsing-light-user > a > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #43463a;
  background: #eff0e8;
  font-size: 12px;
  font-weight: 850;
}
.parsing-light-project div,
.parsing-light-user a div { display: grid; gap: 2px; min-width: 0; }
.parsing-light-project strong,
.parsing-light-user strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.parsing-light-project small,
.parsing-light-user small { color: #98998f; font-size: 9px; }
.parsing-light-project b { color: #9a9b92; font-size: 12px; }
.parsing-light-new {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: 9px;
  color: #fff;
  background: #20211d;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(32,33,29,.12);
}
.parsing-light-new:hover { background: #080905; }
.parsing-light-nav { display: grid; gap: 3px; margin-top: 26px; }
.parsing-light-nav p {
  margin: 0 9px 8px;
  color: #a4a59b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.parsing-light-nav a {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #6f7068;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
}
.parsing-light-nav a:hover { color: #23241f; background: #f1f1eb; }
.parsing-light-nav a.active { color: #20211d; background: #eeeee8; font-weight: 800; }
.parsing-light-nav a > span { color: #8f9087; font-size: 16px; text-align: center; }
.parsing-light-nav a small { min-width: 21px; text-align: right; color: #a3a49a; font-size: 9px; }
.parsing-light-admin-nav { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ecece5; }
.parsing-light-sidebar-footer { display: grid; gap: 15px; margin-top: auto; }
.parsing-light-plan {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #e4e5dc;
  border-radius: 11px;
  background: #f4f5ed;
}
.parsing-light-plan > span { color: #76786d; font-size: 9px; }
.parsing-light-plan > strong { color: #25271f; font-size: 19px; }
.parsing-light-plan > strong small { color: #999b90; font-size: 11px; font-weight: 600; }
.parsing-light-plan > div { height: 4px; overflow: hidden; border-radius: 99px; background: #dedfd4; }
.parsing-light-plan i { display: block; height: 100%; border-radius: inherit; background: #6f7650; }
.parsing-light-user {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e8e8e1;
}
.parsing-light-user > a { display: flex; align-items: center; gap: 9px; min-width: 0; color: #292a25; text-decoration: none; }
.parsing-light-user form { margin: 0; }
.parsing-light-user button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #919288; background: transparent; cursor: pointer; }
.parsing-light-user button:hover { color: #20211d; background: #efefe9; }
.parsing-light-main { min-width: 0; }
.parsing-light-topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid #e7e7e0;
  background: rgba(255,255,253,.88);
  backdrop-filter: blur(14px);
}
.parsing-light-topbar > div { display: flex; align-items: center; gap: 10px; color: #a0a198; font-size: 10px; }
.parsing-light-topbar b { color: #c6c7be; }
.parsing-light-topbar strong { color: #44453f; }
.parsing-light-topbar a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #e3e3dc;
  border-radius: 7px;
  color: #565850;
  background: #fff;
  text-decoration: none;
  font-weight: 750;
}
.parsing-light-notice {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid #ecebdc;
  color: #727366;
  background: #f8f7e9;
  font-size: 9px;
}
.parsing-light-notice a { color: #6e714d; text-decoration: none; font-weight: 800; }
.parsing-light-content { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 44px 0 80px; }
.parsing-light-content section + section { margin-top: 24px; padding-top: 0; border-top: 0; }
.parsing-light-heading { position: relative; margin-bottom: 28px; }
.parsing-light-heading p,
.parsing-light-section-title p {
  margin: 0 0 10px;
  color: #9a9b91;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.parsing-light-heading h1 { margin: 0; color: #20211d; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.055em; line-height: 1.03; }
.parsing-light-heading > span { display: block; margin-top: 13px; color: #85867d; font-size: 13px; }
.parsing-light-heading > a {
  position: absolute;
  right: 0;
  bottom: 2px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #dfe0d8;
  border-radius: 8px;
  color: #45463f;
  background: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(35,36,31,.04);
}
.parsing-light-builder { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 18px; }
.parsing-light-form-card,
.parsing-light-result-card,
.parsing-light-secondary {
  border: 1px solid #e2e2db;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(35,36,31,.035);
}
.parsing-light-form-card { overflow: hidden; }
.parsing-light-source-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
  border-bottom: 1px solid #e8e8e1;
  background: #fbfbf8;
}
.parsing-light-source {
  position: relative;
  min-height: 110px;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 5px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #565850;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.parsing-light-source + .parsing-light-source { border-left-color: #eeeeE8; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.parsing-light-source:hover { background: #f5f5ef; }
.parsing-light-source.selected { z-index: 1; border-color: #a7ad80; border-radius: 10px; background: #f5f6ed; box-shadow: 0 0 0 2px rgba(117,124,78,.08); }
.parsing-light-source-icon { height: 24px; color: #6f7650; font-size: 18px; font-weight: 850; }
.parsing-light-source strong { color: #393a34; font-size: 11px; }
.parsing-light-source small { color: #a0a197; font-size: 9px; }
.parsing-light-source i { position: absolute; top: 12px; right: 12px; display: none; color: #6f7650; font-size: 11px; font-style: normal; }
.parsing-light-source.selected i { display: block; }
.parsing-light-config { display: grid; grid-template-columns: auto 1fr; gap: 13px; padding: 28px 28px 20px; }
.parsing-light-config-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #252620;
  font-size: 10px;
  font-weight: 850;
}
.parsing-light-config p { margin: 1px 0 5px; color: #a0a198; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.parsing-light-config h2 { margin: 0; color: #252620; font-size: 19px; letter-spacing: -.025em; }
.parsing-light-config span { display: block; max-width: 580px; margin-top: 7px; color: #7d7e75; font-size: 11px; line-height: 1.5; }
.parsing-light-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 28px 28px 67px; }
.parsing-light-config-grid > div { display: grid; gap: 6px; padding: 15px; border: 1px solid #e7e7df; border-radius: 9px; background: #fafaf7; }
.parsing-light-field-label { color: #a0a198; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.parsing-light-config-grid strong { color: #44463d; font-size: 11px; }
.parsing-light-config-grid small { color: #95968c; font-size: 9px; line-height: 1.45; }
.parsing-light-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 16px 28px;
  border-top: 1px solid #e7e7e0;
  background: #fbfbf8;
}
.parsing-light-form-footer > span { color: #a0a198; font-size: 9px; }
.parsing-light-form-footer a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border-radius: 8px;
  color: #fff;
  background: #20211d;
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
}
.parsing-light-form-footer a:hover { background: #070803; }
.parsing-light-result-card { position: sticky; top: 82px; padding: 23px; background: #f1f3e7; border-color: #e1e3d3; }
.parsing-light-result-card > p { margin: 0 0 24px; color: #858978; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.parsing-light-result-card h2 { margin: 0; color: #2d3026; font-size: 22px; letter-spacing: -.035em; }
.parsing-light-result-card ul { display: grid; gap: 13px; margin: 22px 0; padding: 0 0 22px; border-bottom: 1px solid #dcded0; list-style: none; }
.parsing-light-result-card li { display: flex; gap: 9px; color: #656959; font-size: 10px; }
.parsing-light-result-card li span { color: #737b4f; font-weight: 900; }
.parsing-light-result-card > div { display: grid; gap: 4px; }
.parsing-light-result-card > div span { color: #969989; font-size: 8px; text-transform: uppercase; }
.parsing-light-result-card > div strong { color: #45493a; font-size: 11px; }
.parsing-light-result-card > small { display: block; margin-top: 18px; color: #8f9283; font-size: 9px; line-height: 1.55; }
.parsing-light-secondary { padding: 22px; }
.parsing-light-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.parsing-light-section-title p { margin-bottom: 5px; }
.parsing-light-section-title h2 { margin: 0; color: #31322d; font-size: 17px; }
.parsing-light-section-title > span { color: #a0a198; font-size: 9px; }
.parsing-light-scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.parsing-light-scenarios a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e7e7e0;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
}
.parsing-light-scenarios a:hover { border-color: #bec29e; background: #fafbf4; }
.parsing-light-scenarios a > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #686f49; background: #f0f2e5; font-size: 10px; font-weight: 850; }
.parsing-light-scenarios a > div { display: grid; gap: 3px; min-width: 0; }
.parsing-light-scenarios strong { color: #474842; font-size: 10px; }
.parsing-light-scenarios small { overflow: hidden; color: #9a9b92; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.parsing-light-scenarios b { color: #a4a59c; font-size: 11px; }
.parsing-light-history { overflow: hidden; border: 1px solid #e6e6df; border-radius: 9px; }
.parsing-light-history-head,
.parsing-light-history article {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) minmax(130px, 1fr) 80px 100px 65px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
}
.parsing-light-history-head { color: #aaaba2; background: #fafaf7; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.parsing-light-history article { border-top: 1px solid #ecece6; color: #7d7e76; font-size: 9px; }
.parsing-light-history article > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.parsing-light-history article > div:first-child > span { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #656b48; background: #f0f2e5; font-weight: 850; }
.parsing-light-history article > div:first-child > div { display: grid; gap: 2px; min-width: 0; }
.parsing-light-history article strong { overflow: hidden; color: #45463f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.parsing-light-history article small { color: #aaaBa2; font-size: 8px; }
.parsing-light-history article > div:last-child { text-align: right; }
.parsing-light-history article a { color: #687047; text-decoration: none; font-weight: 800; }
.light-status { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 800; }
.light-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.light-status-success { color: #4d795d; background: #edf5ef; }
.light-status-active { color: #7665a8; background: #f0edfa; }
.light-status-danger { color: #a45e62; background: #faeeee; }
.light-status-muted { color: #888a80; background: #f0f0eb; }
.parsing-light-empty { padding: 27px; border: 1px dashed #ddddd5; border-radius: 9px; color: #9a9b92; background: #fafaf7; text-align: center; font-size: 10px; }
@media (max-width: 1040px) {
  .parsing-light-builder { grid-template-columns: 1fr; }
  .parsing-light-result-card { position: static; }
}
@media (max-width: 820px) {
  .parsing-light-shell { grid-template-columns: 1fr; }
  .parsing-light-sidebar { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 13px 18px; }
  .parsing-light-brand { padding: 0; }
  .parsing-light-project,
  .parsing-light-new,
  .parsing-light-admin-nav,
  .parsing-light-sidebar-footer,
  .parsing-light-nav p { display: none; }
  .parsing-light-nav { margin: 0; }
  .parsing-light-nav a:not(.active) { display: none; }
  .parsing-light-topbar,
  .parsing-light-notice { padding-left: 18px; padding-right: 18px; }
  .parsing-light-content { width: min(100% - 28px, 1120px); padding-top: 30px; }
  .parsing-light-heading > a { position: static; margin-top: 18px; }
  .parsing-light-source-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .parsing-light-source + .parsing-light-source { border-left-color: transparent; border-radius: 10px; }
  .parsing-light-config-grid { grid-template-columns: 1fr; padding-left: 28px; }
  .parsing-light-scenarios { grid-template-columns: 1fr; }
  .parsing-light-history-head { display: none; }
  .parsing-light-history article { grid-template-columns: 1fr auto; }
  .parsing-light-history article > span:nth-child(2),
  .parsing-light-history article > span:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .parsing-light-topbar > div:first-child span,
  .parsing-light-topbar > div:first-child b,
  .parsing-light-topbar > div:last-child > span { display: none; }
  .parsing-light-notice { display: none; }
  .parsing-light-source-picker { grid-template-columns: 1fr; }
  .parsing-light-form-footer { align-items: stretch; flex-direction: column; }
  .parsing-light-form-footer a { justify-content: center; }
  .parsing-light-section-title { align-items: flex-start; flex-direction: column; }
}

/* Client HH workflow */
.hh-client-page,
.hh-run-page { width: min(1180px, calc(100% - 56px)); }
.hh-client-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 25px;
  color: #777970;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}
.hh-client-back:hover { color: #292b25; }
.hh-client-heading { margin-bottom: 30px; }
.hh-client-alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 9px; font-size: 10px; font-weight: 700; }
.hh-client-alert.error { color: #9b5558; border-color: #efd6d7; background: #fff5f5; }
.hh-client-alert.success { color: #50705a; border-color: #d6e6d9; background: #f2f8f3; }
.hh-client-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 20px; }
.hh-client-steps { display: grid; gap: 14px; }
.hh-client-card,
.hh-client-submit,
.hh-run-status-card,
.hh-run-panel {
  border: 1px solid #e2e2da;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(35,36,31,.035);
}
.hh-client-card { overflow: hidden; }
.hh-client-card > header,
.hh-run-panel > header { display: flex; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid #e9e9e2; }
.hh-client-card > header > span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #292a25; font-size: 10px; font-weight: 850; }
.hh-client-card header p,
.hh-run-panel header p { margin: 0 0 4px; color: #a0a198; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hh-client-card header h2,
.hh-run-panel header h2 { margin: 0; color: #30312c; font-size: 16px; letter-spacing: -.02em; }
.hh-client-card-body { display: grid; gap: 17px; padding: 22px; }
.hh-client-field { display: grid; gap: 7px; color: #4f5149; font-size: 10px; font-weight: 800; }
.hh-client-field input,
.hh-client-field textarea,
.hh-client-field select,
.hh-criteria-row input,
.hh-criteria-row select,
.hh-criteria-save input,
.hh-run-result-tools input,
.hh-run-result-tools select {
  width: 100%;
  border: 1px solid #dfdfd7;
  border-radius: 9px;
  outline: 0;
  color: #30312d;
  background: #fff;
  font: inherit;
  font-weight: 600;
}
.hh-client-field input,
.hh-client-field select { min-height: 42px; padding: 10px 12px; }
.hh-client-field textarea { min-height: 118px; padding: 12px; resize: vertical; line-height: 1.55; }
.hh-client-field input:focus,
.hh-client-field textarea:focus,
.hh-client-field select:focus,
.hh-criteria-row input:focus,
.hh-criteria-row select:focus { border-color: #92986b; box-shadow: 0 0 0 3px rgba(117,124,78,.09); }
.hh-client-field small { color: #9b9c93; font-size: 8px; font-weight: 500; line-height: 1.5; }
.hh-client-field small b { color: #6f7458; }
.hh-client-example { padding: 10px 12px; border-radius: 8px; color: #85877d; background: #f7f7f2; font-size: 8px; overflow-wrap: anywhere; }
.hh-criteria-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hh-criteria-modes label { position: relative; display: grid; gap: 5px; padding: 13px; border: 1px solid #e3e3dc; border-radius: 10px; cursor: pointer; }
.hh-criteria-modes label:hover { background: #fafaf7; }
.hh-criteria-modes label.selected { border-color: #aab086; background: #f5f6ed; box-shadow: 0 0 0 2px rgba(117,124,78,.07); }
.hh-criteria-modes input { position: absolute; opacity: 0; pointer-events: none; }
.hh-criteria-modes strong { color: #464840; font-size: 10px; }
.hh-criteria-modes small { color: #999a91; font-size: 8px; line-height: 1.35; }
.hh-criteria-panel[hidden],
.hh-criteria-save[hidden],
#max-pages-field[hidden] { display: none; }
.hh-criteria-table-head,
.hh-criteria-row { display: grid; grid-template-columns: 1.05fr 76px 1.6fr 105px 28px; gap: 7px; align-items: center; }
.hh-criteria-table-head { padding: 0 3px 7px; color: #a2a399; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.hh-criteria-row + .hh-criteria-row { margin-top: 7px; }
.hh-criteria-row input,
.hh-criteria-row select { min-height: 38px; padding: 8px 10px; font-size: 9px; }
.hh-remove-row { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #a2a399; background: transparent; cursor: pointer; }
.hh-remove-row:hover { color: #a15155; background: #fff0f0; }
.hh-add-row,
.hh-template-link { display: inline-flex; align-items: center; width: max-content; margin-top: 10px; border: 0; color: #687047; background: transparent; text-decoration: none; font-size: 9px; font-weight: 850; cursor: pointer; }
.hh-client-upload { min-height: 94px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed #cfd0c7; border-radius: 10px; color: #4c4e46; background: #fafaf7; cursor: pointer; }
.hh-client-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hh-client-upload span { font-size: 10px; font-weight: 800; }
.hh-client-upload small { color: #9b9c93; font-size: 8px; }
.hh-client-empty { padding: 16px; border-radius: 9px; color: #909188; background: #f7f7f2; text-align: center; font-size: 9px; line-height: 1.5; }
.hh-criteria-save { display: grid; grid-template-columns: 1fr minmax(200px, .8fr); align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid #ecece6; }
.hh-criteria-save label { color: #62645b; font-size: 9px; }
.hh-criteria-save input[type="text"],
.hh-criteria-save > input { min-height: 38px; padding: 8px 10px; font-size: 9px; }
.hh-client-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-client-review { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 20px 22px; }
.hh-client-review > div { display: grid; gap: 5px; padding: 12px; border: 1px solid #e9e9e2; border-radius: 9px; background: #fafaf7; }
.hh-client-review span { color: #a0a198; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.hh-client-review strong { color: #464840; font-size: 10px; }
.hh-client-submit { position: sticky; top: 82px; padding: 22px; background: #f1f3e7; border-color: #dfe1d2; }
.hh-client-submit > p { margin: 0 0 6px; color: #909483; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.hh-client-submit h2 { margin: 0; color: #32352b; font-size: 18px; }
.hh-client-submit ul { display: grid; gap: 11px; margin: 21px 0; padding: 18px 0; border-block: 1px solid #dbddd0; list-style: none; }
.hh-client-submit li { display: flex; gap: 8px; color: #676b5d; font-size: 9px; line-height: 1.4; }
.hh-client-submit li span { color: #737b4f; font-weight: 900; }
.hh-client-submit button { width: 100%; min-height: 43px; border: 0; border-radius: 9px; color: #fff; background: #23241f; font-size: 10px; font-weight: 850; cursor: pointer; }
.hh-client-submit button:hover { background: #080904; }
.hh-client-submit button.secondary { margin-top: 8px; border: 1px solid #d6d8ca; color: #5f6354; background: transparent; }
.hh-client-submit button.secondary:hover { background: #e8eadc; }
.hh-client-existing { display: grid; gap: 3px; margin-top: 15px; color: #777b6d; font-size: 8px; text-align: center; }
.hh-client-existing small { color: #9b9e90; }

/* Durable run and result page */
.hh-run-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 24px; }
.hh-run-heading p { margin: 0 0 9px; color: #9a9b91; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hh-run-heading h1 { margin: 0; color: #20211d; font-size: 34px; letter-spacing: -.045em; }
.hh-run-heading span { display: block; margin-top: 9px; color: #94958b; font-size: 9px; }
.hh-run-heading-actions { display: flex; align-items: center; gap: 8px; }
.hh-run-heading-actions form { margin: 0; }
.hh-run-heading-actions a,
.hh-run-heading-actions button { min-height: 37px; display: inline-flex; align-items: center; padding: 9px 13px; border: 1px solid #dedfd7; border-radius: 8px; color: #55574f; background: #fff; text-decoration: none; font-size: 9px; font-weight: 800; cursor: pointer; }
.hh-run-heading-actions button { color: #fff; border-color: #292a25; background: #292a25; }
.hh-run-status-card { padding: 22px; border-color: #dfdfd6; }
.hh-run-status-card.status-done { border-color: #d4e3d6; background: #f7fbf7; }
.hh-run-status-card.status-error { border-color: #edd2d3; background: #fff8f8; }
.hh-run-status-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.hh-run-status-top h2 { margin: 7px 0 0; color: #30312b; font-size: 17px; }
.hh-run-status-top > strong { color: #6e7453; font-size: 25px; letter-spacing: -.04em; }
.hh-run-live { display: inline-flex; align-items: center; gap: 7px; color: #777b6a; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.hh-run-live i { width: 7px; height: 7px; border-radius: 50%; background: #87905c; box-shadow: 0 0 0 4px rgba(135,144,92,.12); }
.status-running .hh-run-live i,
.status-queued .hh-run-live i { animation: hh-pulse 1.4s ease-in-out infinite; }
.status-error .hh-run-live { color: #a55a5d; }
.status-error .hh-run-live i { background: #b96367; box-shadow: 0 0 0 4px rgba(185,99,103,.12); }
@keyframes hh-pulse { 50% { opacity: .35; transform: scale(.8); } }
.hh-run-progress { height: 7px; margin-top: 20px; overflow: hidden; border-radius: 99px; background: #e9eae3; }
.hh-run-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #747b50, #a0a978); transition: width .35s ease; }
.status-error .hh-run-progress i { background: #b96367; }
.hh-run-counters { display: flex; gap: 28px; margin-top: 18px; }
.hh-run-counters > div { display: grid; gap: 4px; }
.hh-run-counters span { color: #a0a198; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.hh-run-counters strong { color: #53554d; font-size: 10px; }
.hh-run-background-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e7e7df; color: #878980; font-size: 9px; }
.hh-run-error { margin-top: 16px; padding: 11px; border-radius: 8px; color: #985256; background: #fbe9ea; font-size: 9px; line-height: 1.5; }
.hh-run-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 14px; margin-top: 14px; }
.hh-run-panel { overflow: hidden; }
.hh-run-panel > header { justify-content: space-between; }
.hh-run-panel > header > span { color: #a1a298; font-size: 8px; }
.hh-run-parameters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 17px 20px; }
.hh-run-parameters > div { display: grid; gap: 5px; padding: 11px; border-radius: 8px; background: #f8f8f4; }
.hh-run-parameters span { color: #a0a198; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.hh-run-parameters strong { color: #4d4f47; font-size: 9px; line-height: 1.4; }
.hh-run-links { margin: 0 20px 18px; border: 1px solid #e7e7e0; border-radius: 9px; overflow: hidden; }
.hh-run-links summary { padding: 11px 12px; color: #60625a; background: #fafaf7; font-size: 9px; font-weight: 800; cursor: pointer; }
.hh-run-links summary span { float: right; color: #999b91; }
.hh-run-links a { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 12px; border-top: 1px solid #ededE7; color: inherit; text-decoration: none; }
.hh-run-links a strong { color: #4d4f47; font-size: 9px; }
.hh-run-links a small { overflow: hidden; color: #a0a198; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.hh-run-links a b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #7a805d; }
.hh-run-files { display: grid; gap: 7px; padding: 16px; }
.hh-run-files a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e6e6df; border-radius: 8px; color: inherit; text-decoration: none; }
.hh-run-files a > span { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #687047; background: #f0f2e5; font-size: 7px; font-weight: 900; }
.hh-run-files a > div { display: grid; gap: 3px; min-width: 0; }
.hh-run-files strong { overflow: hidden; color: #4c4e46; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.hh-run-files small { color: #a2a39a; font-size: 7px; }
.hh-run-files b { color: #777c59; }
.hh-run-placeholder { margin: 16px; padding: 25px; border: 1px dashed #deded7; border-radius: 9px; color: #999b91; background: #fafaf7; text-align: center; font-size: 9px; }
.hh-run-links-progress,
.hh-run-results { margin-top: 14px; }
.hh-run-link-stats { display: grid; gap: 6px; padding: 15px 18px; }
.hh-run-link-stats article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e8e8e1; border-radius: 8px; }
.hh-run-link-stats article > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #60704f; background: #eff3e7; font-size: 8px; font-weight: 850; }
.hh-run-link-stats article.failed > span { color: #9d565a; background: #f9eaea; }
.hh-run-link-stats article > div { display: grid; gap: 3px; min-width: 0; }
.hh-run-link-stats strong { color: #4b4d45; font-size: 9px; }
.hh-run-link-stats small { overflow: hidden; color: #a0a198; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.hh-run-link-stats article > b { color: #55594a; font-size: 11px; }
.hh-run-result-tools { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #ecece6; background: #fafaf7; }
.hh-run-result-tools label { flex: 1; position: relative; }
.hh-run-result-tools label span { position: absolute; left: 11px; top: 10px; color: #9c9e94; }
.hh-run-result-tools input,
.hh-run-result-tools select { min-height: 35px; padding: 8px 10px; font-size: 8px; }
.hh-run-result-tools input { padding-left: 30px; }
.hh-run-result-tools select { width: 160px; }
.hh-run-table-wrap { overflow: auto; }
.hh-run-table { width: 100%; border-collapse: collapse; color: #686a62; font-size: 8px; }
.hh-run-table th { padding: 9px 12px; color: #aaaba2; background: #fcfcfa; text-align: left; font-size: 7px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.hh-run-table td { padding: 12px; border-top: 1px solid #ededE7; vertical-align: top; }
.hh-run-table td:first-child,
.hh-run-table td:nth-child(5) { min-width: 170px; }
.hh-run-table td > strong,
.hh-run-table td > small { display: block; }
.hh-run-table td > strong { color: #454740; font-size: 9px; }
.hh-run-table td > small { max-width: 360px; margin-top: 4px; color: #9b9d93; font-size: 7px; line-height: 1.45; }
.hh-run-table td:last-child a { color: #69714a; text-decoration: none; font-weight: 800; white-space: nowrap; }
.hh-score { display: inline-grid; min-width: 27px; height: 24px; place-items: center; padding: 0 6px; border-radius: 7px; color: #5f6743; background: #eef1e5; }
.hh-lead-status { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: #587060; background: #edf5ef; font-size: 7px; font-weight: 800; white-space: nowrap; }
.hh-run-no-results { padding: 24px; color: #999b91; text-align: center; font-size: 9px; }
.internet-criteria-table-head,
.internet-criteria-row { display: grid; grid-template-columns: 1.05fr 76px 1.7fr 28px; gap: 7px; align-items: center; }
.internet-criteria-table-head { padding: 0 3px 7px; color: #a2a399; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.internet-criteria-row + .internet-criteria-row { margin-top: 7px; }
.internet-criteria-row input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #dfdfd7; border-radius: 9px; outline: 0; color: #30312d; background: #fff; font-size: 9px; font-weight: 600; }
.internet-criteria-row input:focus { border-color: #92986b; box-shadow: 0 0 0 3px rgba(117,124,78,.09); }
.internet-client-check { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #e7e7df; border-radius: 9px; color: #4f5149; cursor: pointer; }
.internet-client-check input { margin-top: 2px; accent-color: #747b50; }
.internet-client-check > span { display: grid; gap: 4px; }
.internet-client-check strong { font-size: 9px; }
.internet-client-check small { color: #989a90; font-size: 8px; line-height: 1.45; }
.internet-client-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.internet-cooldown { max-width: 280px; }
.internet-run-query { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-top: 1px solid #ededE7; }
.internet-run-query strong { color: #4d4f47; font-size: 9px; }
.internet-run-query small { grid-column: 1; overflow: hidden; color: #9b9d93; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.internet-run-query > span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #7a805d; font-size: 8px; font-weight: 850; }
.internet-run-table td:nth-child(2) { max-width: 210px; }
.internet-run-table td:nth-child(2) a { display: block; overflow: hidden; max-width: 210px; color: #687047; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.internet-priority { display: inline-flex; padding: 4px 7px; border-radius: 99px; font-size: 7px; font-weight: 850; }
.internet-priority.priority-hot { color: #9c574c; background: #faece9; }
.internet-priority.priority-warm { color: #92743f; background: #faf3df; }
.internet-priority.priority-low { color: #6e7168; background: #f0f0eb; }

@media (max-width: 1060px) {
  .hh-client-layout,
  .hh-run-grid { grid-template-columns: 1fr; }
  .hh-client-submit { position: static; }
}
@media (max-width: 820px) {
  .hh-client-page,
  .hh-run-page { width: min(100% - 28px, 1180px); }
  .hh-criteria-modes,
  .hh-client-review,
  .hh-run-parameters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-criteria-table-head { display: none; }
  .hh-criteria-row { grid-template-columns: 1fr 80px 34px; padding: 10px; border: 1px solid #e7e7df; border-radius: 9px; }
  .hh-criteria-row input:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .hh-criteria-row select { grid-column: 1 / 3; grid-row: 3; }
  .hh-remove-row { grid-column: 3; grid-row: 1; }
  .internet-criteria-table-head { display: none; }
  .internet-criteria-row { grid-template-columns: 1fr 80px 34px; padding: 10px; border: 1px solid #e7e7df; border-radius: 9px; }
  .internet-criteria-row input:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .internet-criteria-row .hh-remove-row { grid-column: 3; grid-row: 1; }
  .hh-run-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .hh-criteria-modes,
  .hh-client-settings,
  .hh-client-review,
  .hh-run-parameters,
  .hh-criteria-save { grid-template-columns: 1fr; }
  .hh-run-heading-actions,
  .hh-run-counters,
  .hh-run-result-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .hh-run-heading-actions a,
  .hh-run-heading-actions button { justify-content: center; width: 100%; }
  .hh-run-result-tools select { width: 100%; }
  .internet-client-options { grid-template-columns: 1fr; }
}

/* Dark client workspace aligned with the existing CRMchat dashboard. */
.parsing-light-body {
  color-scheme: dark;
  color: #f4f6f8;
  background: #0b0d10;
}
.parsing-light-shell { background: #0b0d10; }
.parsing-light-sidebar {
  border-color: #2c323a;
  background: #111419;
}
.parsing-light-brand { color: #f4f6f8; }
.parsing-light-brand > span { border-color: #f4f6f8; }
.parsing-light-brand small,
.parsing-light-project small,
.parsing-light-user small { color: #8f98a4; }
.parsing-light-project {
  color: #f4f6f8;
  border-color: #2c323a;
  background: #171b20;
  box-shadow: none;
}
.parsing-light-project > span,
.parsing-light-user > a > span {
  color: #dbe7ff;
  background: #1b2c49;
}
.parsing-light-project b { color: #7f8995; }
.parsing-light-new {
  color: #fff;
  background: #245fd6;
  box-shadow: 0 7px 22px rgba(36, 95, 214, .2);
}
.parsing-light-new:hover { background: #3470e8; }
.parsing-light-nav p { color: #717b87; }
.parsing-light-nav a { color: #a2abb6; }
.parsing-light-nav a > span { color: #7d8793; }
.parsing-light-nav a small { color: #77818c; }
.parsing-light-nav a:hover { color: #f4f6f8; background: #1b2026; }
.parsing-light-nav a.active { color: #dce8ff; background: #162642; }
.parsing-light-admin-nav,
.parsing-light-user { border-color: #2c323a; }
.parsing-light-plan {
  border-color: #2c323a;
  background: #171b20;
}
.parsing-light-plan > span { color: #8f98a4; }
.parsing-light-plan > strong { color: #f4f6f8; }
.parsing-light-plan > strong small { color: #828c98; }
.parsing-light-plan > div { background: #292f37; }
.parsing-light-plan i { background: #74a8ff; }
.parsing-light-user > a { color: #f4f6f8; }
.parsing-light-user button { color: #8d97a2; }
.parsing-light-user button:hover { color: #fff; background: #1d2229; }
.parsing-light-topbar {
  border-color: #2c323a;
  background: rgba(15, 18, 22, .92);
}
.parsing-light-topbar > div { color: #7f8995; }
.parsing-light-topbar b { color: #505963; }
.parsing-light-topbar strong { color: #f4f6f8; }
.parsing-light-topbar a {
  color: #d7dde4;
  border-color: #343b44;
  background: #171b20;
}
.parsing-light-topbar a:hover { color: #fff; border-color: #74a8ff; background: #1b2027; }
.parsing-light-notice {
  color: #aab0a0;
  border-color: #303325;
  background: #1b1d15;
}
.parsing-light-notice a { color: #c6cf90; }
.parsing-light-heading p,
.parsing-light-section-title p,
.hh-run-heading p { color: #7d8792; }
.parsing-light-heading h1,
.parsing-light-section-title h2,
.hh-run-heading h1 { color: #f4f6f8; }
.parsing-light-heading > span,
.hh-run-heading span { color: #9ca4af; }
.parsing-light-heading > a,
.hh-run-heading-actions a {
  color: #d7dde4;
  border-color: #343b44;
  background: #171b20;
  box-shadow: none;
}
.parsing-light-form-card,
.parsing-light-result-card,
.parsing-light-secondary,
.hh-client-card,
.hh-client-submit,
.hh-run-status-card,
.hh-run-panel {
  color: #f4f6f8;
  border-color: #2c323a;
  background: #15181d;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
.parsing-light-source-picker,
.parsing-light-form-footer,
.hh-run-result-tools {
  border-color: #2c323a;
  background: #12151a;
}
.parsing-light-source { color: #b9c0c8; }
.parsing-light-source + .parsing-light-source { border-left-color: #292f36; }
.parsing-light-source:hover { background: #1b2026; }
.parsing-light-source.selected {
  color: #fff;
  border-color: #4e81df;
  background: #162642;
  box-shadow: 0 0 0 2px rgba(116, 168, 255, .08);
}
.parsing-light-source-icon,
.parsing-light-source i { color: #74a8ff; }
.parsing-light-source strong { color: #f0f3f7; }
.parsing-light-source small { color: #8d96a1; }
.parsing-light-config-number,
.hh-client-card > header > span { color: #fff; background: #245fd6; }
.parsing-light-config p,
.parsing-light-field-label,
.hh-client-card header p,
.hh-run-panel header p,
.hh-run-panel > header > span { color: #7f8994; }
.parsing-light-config h2,
.parsing-light-config-grid strong,
.hh-client-card header h2,
.hh-run-panel header h2 { color: #f4f6f8; }
.parsing-light-config span,
.parsing-light-config-grid small,
.parsing-light-form-footer > span { color: #929ba6; }
.parsing-light-config-grid > div,
.hh-client-review > div,
.hh-run-parameters > div {
  color: #dfe4ea;
  border-color: #2c323a;
  background: #1a1e24;
}
.parsing-light-form-footer a,
.hh-client-submit button,
.hh-run-heading-actions button { color: #fff; background: #245fd6; border-color: #245fd6; }
.parsing-light-form-footer a:hover,
.hh-client-submit button:hover,
.hh-run-heading-actions button:hover { background: #3470e8; }
.parsing-light-result-card,
.hh-client-submit { border-color: #33415a; background: #141c29; }
.parsing-light-result-card > p,
.hh-client-submit > p { color: #8392a6; }
.parsing-light-result-card h2,
.hh-client-submit h2 { color: #f4f6f8; }
.parsing-light-result-card ul,
.hh-client-submit ul { border-color: #2b3a52; }
.parsing-light-result-card li,
.hh-client-submit li { color: #b4bdc8; }
.parsing-light-result-card li span,
.hh-client-submit li span { color: #74a8ff; }
.parsing-light-result-card > div span,
.parsing-light-result-card > small,
.hh-client-existing,
.hh-client-existing small { color: #8994a1; }
.parsing-light-result-card > div strong { color: #eef3fa; }
.parsing-light-section-title > span { color: #89939f; }
.parsing-light-scenarios a,
.parsing-light-history,
.hh-run-links,
.hh-run-files a,
.hh-run-link-stats article {
  color: #c5cbd2;
  border-color: #2c323a;
  background: #171b20;
}
.parsing-light-scenarios a:hover { border-color: #4c7ccc; background: #1a2029; }
.parsing-light-scenarios a > span,
.parsing-light-history article > div:first-child > span,
.hh-run-files a > span,
.hh-run-link-stats article > span,
.hh-score {
  color: #a9c8ff;
  background: #192b48;
}
.parsing-light-scenarios strong,
.parsing-light-history article strong,
.hh-run-files strong,
.hh-run-link-stats strong { color: #eef1f5; }
.parsing-light-scenarios small,
.parsing-light-history article,
.parsing-light-history article small,
.hh-run-files small,
.hh-run-link-stats small { color: #89939f; }
.parsing-light-history-head,
.hh-run-table th { color: #89939f; background: #111419; }
.parsing-light-history article,
.hh-run-table td,
.internet-run-query { border-color: #292f36; }
.parsing-light-history article a,
.hh-run-table td:last-child a,
.internet-run-table td:nth-child(2) a { color: #8db7ff; }
.light-status-success,
.hh-lead-status { color: #7fe09f; background: #143020; }
.light-status-active { color: #aabfff; background: #1b2c4b; }
.light-status-danger { color: #ff9a94; background: #3a1d20; }
.light-status-muted { color: #a1a9b2; background: #252a31; }
.parsing-light-empty,
.hh-client-empty,
.hh-run-placeholder {
  color: #89939f;
  border-color: #343b44;
  background: #111419;
}
.hh-client-back { color: #9ca6b1; }
.hh-client-back:hover { color: #fff; }
.hh-client-alert.error { color: #ffaaa5; border-color: #653337; background: #2e191c; }
.hh-client-alert.success { color: #86dfa3; border-color: #28583a; background: #14271b; }
.hh-client-card > header,
.hh-run-panel > header { border-color: #2c323a; }
.hh-client-field,
.internet-client-check { color: #d7dde4; }
.hh-client-field input,
.hh-client-field textarea,
.hh-client-field select,
.hh-criteria-row input,
.hh-criteria-row select,
.hh-criteria-save input,
.hh-run-result-tools input,
.hh-run-result-tools select,
.internet-criteria-row input {
  color: #f4f6f8;
  border-color: #343b44;
  background: #101318;
}
.hh-client-field input:focus,
.hh-client-field textarea:focus,
.hh-client-field select:focus,
.hh-criteria-row input:focus,
.hh-criteria-row select:focus,
.internet-criteria-row input:focus { border-color: #74a8ff; box-shadow: 0 0 0 3px rgba(116, 168, 255, .1); }
.hh-client-field small,
.hh-client-example,
.hh-criteria-modes small,
.hh-client-upload small,
.internet-client-check small { color: #8f99a4; }
.hh-client-field small b,
.hh-add-row,
.hh-template-link { color: #8db7ff; }
.hh-client-example,
.hh-client-upload { color: #d9dfe6; border-color: #3b424b; background: #111419; }
.hh-criteria-modes label,
.internet-client-check { border-color: #323941; background: #171b20; }
.hh-criteria-modes label:hover,
.internet-client-check:hover { background: #1c2128; }
.hh-criteria-modes label.selected { border-color: #4d80da; background: #162642; box-shadow: 0 0 0 2px rgba(116, 168, 255, .08); }
.hh-criteria-modes strong,
.hh-client-review strong { color: #eef1f5; }
.hh-criteria-table-head,
.internet-criteria-table-head,
.hh-client-review span { color: #7f8994; }
.hh-remove-row { color: #8f98a2; }
.hh-remove-row:hover { color: #ff9b96; background: #351b1e; }
.hh-criteria-save { border-color: #2c323a; }
.hh-criteria-save label { color: #aab2bc; }
.hh-client-submit button.secondary { color: #c5cdd6; border-color: #3a4658; background: #19212d; }
.hh-client-submit button.secondary:hover { color: #fff; background: #202c3c; }
.hh-run-status-card.status-done { border-color: #28583a; background: #122219; }
.hh-run-status-card.status-error { border-color: #653337; background: #2a181b; }
.hh-run-status-top h2,
.hh-run-counters strong,
.hh-run-parameters strong,
.hh-run-links a strong,
.internet-run-query strong,
.hh-run-table td > strong { color: #edf1f5; }
.hh-run-status-top > strong,
.hh-run-live,
.internet-run-query > span { color: #8db7ff; }
.hh-run-live i { background: #74a8ff; box-shadow: 0 0 0 4px rgba(116, 168, 255, .12); }
.hh-run-progress { background: #282f37; }
.hh-run-progress i { background: linear-gradient(90deg, #3478ea, #79b1ff); }
.hh-run-counters span,
.hh-run-background-note,
.hh-run-parameters span,
.hh-run-links summary span,
.hh-run-table td > small,
.internet-run-query small { color: #8d97a2; }
.hh-run-background-note { border-color: #2c323a; }
.hh-run-error { color: #ffaaa5; background: #351b1e; }
.hh-run-links summary { color: #cdd3da; background: #111419; }
.hh-run-links a { border-color: #292f36; }
.hh-run-link-stats article > b { color: #d9dfe5; }
.hh-run-result-tools label span { color: #7f8994; }
.hh-run-table { color: #a9b1ba; }
.internet-priority.priority-hot { color: #ffaaa5; background: #3a1d20; }
.internet-priority.priority-warm { color: #f4c86b; background: #382c16; }
.internet-priority.priority-low { color: #aab2bb; background: #252a31; }

@media (max-width: 820px) {
  .parsing-light-sidebar { border-bottom: 1px solid #2c323a; }
  .hh-criteria-row,
  .internet-criteria-row { border-color: #343b44; background: #15181d; }
}
