/* Praca.ua vacancy correction centre — approved market-shell integration. */
.correction-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.correction-breadcrumbs a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.correction-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.correction-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.correction-progress h2 {
  margin: 0;
  font-size: 17px;
}

.correction-progress strong {
  color: var(--coral-dark);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 25px;
}

.correction-progress p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.correction-progress-track {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.correction-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.correction-visibility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #f2c3ba;
  border-radius: 999px;
  color: var(--danger);
  background: #fff0ed;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.correction-visibility > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.correction-visibility.is-public {
  border-color: #b7dfcd;
  color: #126b50;
  background: var(--success-soft);
}

.correction-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.correction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 20px;
}

.correction-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.vacancy-form-group {
  min-width: 0;
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.correction-groups .vacancy-form-group {
  margin: 0;
}

.vacancy-form-group legend {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 0 7px;
  color: var(--ink);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.vacancy-form-group legend > span {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-family: "Open Sans", sans-serif;
}

.vacancy-form-group-copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.employer-onboarding-card,
.employer-workspace-card,
.vacancy-review-card {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2, #f7f7f9);
}

.employer-onboarding-copy > span,
.vacancy-review-card > div > span {
  color: var(--coral-dark);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.employer-onboarding-copy h3,
.vacancy-review-card h3 {
  margin: 6px 0 7px;
  font-size: 20px;
}

.employer-onboarding-copy p,
.employer-workspace-card p,
.vacancy-review-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.agency-toggle,
.representative-claim {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.agency-toggle[hidden] {
  display: none;
}

.agency-toggle input,
.representative-claim input {
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  accent-color: var(--coral);
}

.registry-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.registry-lookup-button,
.schedule-preset-list button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface, #fff);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.registry-lookup-button:hover,
.registry-lookup-button:focus-visible,
.schedule-preset-list button:hover,
.schedule-preset-list button:focus-visible {
  border-color: var(--coral);
  color: var(--coral-dark);
  outline: 3px solid var(--coral-soft);
  outline-offset: 1px;
}

.registry-lookup-status,
.schedule-presets > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.registry-lookup-status.is-loading { color: var(--coral-dark); }
.registry-lookup-status.is-success { color: #126b50; font-weight: 700; }
.registry-lookup-status.is-error { color: var(--danger); font-weight: 700; }

.registry-address-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #b9dfcf;
  border-radius: 13px;
  color: var(--ink);
  background: #f1fbf6;
}

.registry-address-card[hidden] { display: none; }
.registry-address-card strong { color: #126b50; }
.registry-address-card span { font-size: 13px; line-height: 1.45; }
.registry-address-card small { color: var(--muted); line-height: 1.45; }

.schedule-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.schedule-preset-list button {
  min-height: 39px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
}

.role-specific-guidance {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #efd69f;
  border-radius: 12px;
  color: #70511a;
  background: #fff7e6;
  font-size: 13px;
  line-height: 1.5;
}

.role-specific-guidance[hidden] { display: none; }
.role-specific-guidance strong { color: var(--ink); }

.server-field-error {
  display: block;
  margin-top: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--danger);
  background: #fff0ef;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.employer-workspace-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.employer-workspace-card p {
  margin: 5px 0 0;
}

.registry-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: #825100;
  background: #fff1ca;
  font-size: 11px;
  font-weight: 900;
}

.registry-matched {
  color: #126b50;
  background: var(--success-soft, #e7f7f0);
}

.registry-mismatch {
  color: var(--danger, #a52f20);
  background: #fff0ed;
}

.vacancy-review-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.vacancy-review-card dl > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface, #fff);
}

.vacancy-review-card dt {
  color: var(--muted);
  font-size: 11px;
}

.vacancy-review-card dd {
  margin: 4px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.vacancy-review-card > p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.correction-summary {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.correction-summary h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.correction-summary h3 {
  margin: 18px 0 10px;
  font-size: 14px;
}

.correction-summary dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.correction-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.correction-summary dt {
  color: var(--muted);
}

.correction-summary dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.correction-moderator-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #efd69f;
  border-radius: 11px;
  color: #825100;
  background: #fff7e6;
  font-size: 13px;
}

.correction-moderator-note p {
  margin: 5px 0 0;
}

.correction-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.correction-checklist li {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.correction-checklist li > span:first-child {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--danger);
  background: #fff0ed;
  font-size: 12px;
  font-weight: 900;
}

.correction-checklist b,
.correction-checklist small {
  display: block;
}

.correction-checklist small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.4;
}

.correction-company-link {
  width: 100%;
  margin-top: 18px;
}

.correction-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.correction-ready {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 11px;
  color: #126b50;
  background: var(--success-soft);
  font-weight: 700;
}

.correction-locked {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 760px;
  margin: 24px auto 64px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.correction-locked-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: #17875d;
  font-size: 24px;
  font-weight: 800;
}

.correction-locked h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Montserrat", "Open Sans", sans-serif;
  font-size: 24px;
}

.correction-locked p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.correction-locked .button {
  margin-top: 8px;
}

.vacancy-submitted {
  max-width: 820px;
  margin-top: 30px;
  padding: 30px;
}

.vacancy-submitted .eyebrow {
  margin-bottom: 7px;
  color: #126b50;
}

.vacancy-submitted h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.vacancy-submitted-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 14px;
}

.vacancy-submitted-meta > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2, #f7f7f9);
}

.vacancy-submitted-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.vacancy-submitted-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.vacancy-submitted-note {
  padding: 13px 15px;
  border-radius: 12px;
  color: #126b50 !important;
  background: var(--success-soft);
}

.vacancy-submitted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.vacancy-submitted-actions .button {
  min-height: 48px;
}

.correction-form > .form-actions {
  position: sticky;
  z-index: 8;
  bottom: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(31, 38, 52, .12);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .correction-progress,
html[data-theme="dark"] .vacancy-form-group,
html[data-theme="dark"] .correction-summary,
html[data-theme="dark"] .correction-locked,
html[data-theme="dark"] .vacancy-submitted-meta > div,
html[data-theme="dark"] .employer-onboarding-card,
html[data-theme="dark"] .employer-workspace-card,
html[data-theme="dark"] .vacancy-review-card,
html[data-theme="dark"] .agency-toggle,
html[data-theme="dark"] .representative-claim,
html[data-theme="dark"] .registry-address-card,
html[data-theme="dark"] .registry-lookup-button,
html[data-theme="dark"] .schedule-preset-list button,
html[data-theme="dark"] .vacancy-review-card dl > div {
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme="dark"] .registry-address-card strong { color: #8fe0bd; }

html[data-theme="dark"] .role-specific-guidance {
  border-color: #66552d;
  color: #f0d9a7;
  background: #302816;
}

html[data-theme="dark"] .server-field-error {
  color: #ffb7ad;
  background: #3b1c1d;
}

html[data-theme="dark"] .correction-form > .form-actions {
  border-color: var(--line);
  background: rgba(25, 27, 35, .96);
}

html[data-theme="dark"] .correction-moderator-note {
  border-color: #66552d;
  color: #f3c66e;
  background: #302816;
}

html[data-theme="dark"] .correction-visibility {
  border-color: #74443b;
  background: #3a211d;
}

@media (max-width: 1000px) {
  .correction-layout {
    grid-template-columns: 1fr;
  }

  .correction-summary {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .registry-lookup-row { grid-template-columns: 1fr; }
  .registry-lookup-button { width: 100%; }
  .vacancy-review-card dl {
    grid-template-columns: 1fr;
  }

  .employer-workspace-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .correction-locked {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 48px;
    padding: 20px;
  }

  .correction-locked h2 {
    font-size: 21px;
  }

  .correction-locked .button {
    width: 100%;
    min-height: 44px;
  }

  .vacancy-submitted {
    padding: 20px;
  }

  .vacancy-submitted-meta {
    grid-template-columns: 1fr;
  }

  .vacancy-submitted-actions {
    display: grid;
  }

  .correction-progress {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .correction-progress-head {
    align-items: flex-start;
  }

  .correction-visibility {
    justify-self: start;
  }

  .correction-summary {
    grid-row: auto;
  }

  .vacancy-form-group,
  .correction-summary {
    padding: 16px;
  }

  .vacancy-form-group legend {
    font-size: 15px;
  }

  .correction-form > .form-actions {
    bottom: calc(8px + env(safe-area-inset-bottom));
    flex-direction: row;
    gap: 8px;
    padding: 8px;
  }

  .correction-form > .form-actions .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-inline: 9px;
    font-size: 13px;
  }
}
