.btn-hodnotenie-pracovnikov {
  background: none;
  border: 1px solid var(--border2);
  color: #22c55e;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, color .15s;
}

.btn-hodnotenie-pracovnikov:hover {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e;
}

.btn-hodnotenie-pracovnikov svg {
  display: inline-block;
  vertical-align: -.15em;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.hp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(6, 8, 15, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hp-share-modal {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  padding: 18px;
}

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

.hp-share-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.hp-share-subtitle {
  margin-top: 4px;
  color: var(--text2);
  font-size: 13px;
}

.hp-share-url {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  word-break: break-all;
  font-size: 12.5px;
}

.hp-share-hint {
  margin-top: 10px;
  color: var(--text3);
  font-size: 12px;
  line-height: 1.5;
}

.hp-share-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hp-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  font-size: 12px;
  color: var(--text2);
}

.hp-person-chip-flag,
.hp-public-person-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.hp-person-chip-flag .fi,
.hp-public-person-flag .fi {
  font-size: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.95);
}

.hp-share-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-btn-primary,
.hp-btn-secondary {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hp-btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
}

.hp-btn-secondary {
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
}

.hp-copy-ok {
  color: #22c55e;
  font-size: 12.5px;
  font-weight: 600;
}

.hp-public-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 16px 40px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at left top, rgba(170, 192, 226, 0.9), transparent 26%),
    radial-gradient(circle at right top, rgba(243, 223, 165, 0.78), transparent 24%),
    linear-gradient(180deg, #f5f6f8 0%, #eceff3 100%);
}

.hp-public-card {
  width: min(920px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 28, 39, 0.18);
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(77, 89, 112, 0.18);
  padding: 28px 30px;
}

.hp-public-loading,
.hp-public-error-text,
.hp-public-success-text {
  margin-top: 12px;
  color: #4b5563;
  text-align: center;
}

.hp-public-head {
  margin-bottom: 10px;
}

.hp-public-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hp-public-head-text {
  min-width: 0;
}

.hp-public-title {
  font-size: 28px;
  font-weight: 800;
  color: #09090b;
}

.hp-public-lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: end;
  flex: 0 0 auto;
}

.hp-public-lang-btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.hp-public-lang-btn .fi {
  font-size: 18px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(203, 213, 225, 0.95);
}

.hp-public-lang-btn.is-active {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(24, 28, 39, 0.26);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hp-public-lang-btn:hover {
  background: rgba(255, 255, 255, 0.58);
}

.hp-public-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: #1f2937;
  font-weight: 700;
}

.hp-public-date {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}

.hp-public-intro {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0 16px;
}

.hp-public-error {
  min-height: 20px;
  margin-bottom: 8px;
  color: #b91c1c;
  font-size: 13px;
}

.hp-public-error:empty {
  min-height: 0;
  margin-bottom: 0;
}

.hp-public-list {
  display: grid;
  gap: 14px;
}

.hp-public-person-card {
  padding: 5px 22px 5px;
  border-radius: 22px;
  border: 1px solid rgba(24, 28, 39, 0.18);
  background:
    radial-gradient(circle at center, rgba(221, 229, 241, 0.34), rgba(255, 255, 255, 0) 54%),
    rgba(255, 255, 255, 0.82);
}

.hp-public-person-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.hp-public-person-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.hp-public-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
}

.hp-public-metric-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 5px;
  position: relative;
  min-height: 46px;
}

.hp-public-metric-cell:nth-child(odd) {
  border-right: 1px solid rgba(148, 163, 184, 0.24);
}

.hp-public-metric-cell:nth-child(-n+2) {
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.hp-public-metric-label {
  color: #1f2937;
  font-size: 13px;
  line-height: 1.45;
  min-width: 0;
}

.hp-public-rating-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  justify-self: end;
  margin-left: auto;
  transform: translateX(10px);
}

.hp-public-rating-control {
  position: relative;
  width: 117px;
  height: 21px;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.hp-public-stars-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

.hp-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  font-size: 21px;
  line-height: 1;
  color: #c7d1e0;
}

.hp-star::after {
  content: '★';
  position: absolute;
  inset: 0;
  color: #f5b301;
  overflow: hidden;
  width: 0;
}

.hp-star-full::after {
  width: 100%;
}

.hp-star-half::after {
  width: 50%;
}

.hp-public-stars-hits {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  gap: 3px;
}

.hp-public-star-hit-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 21px;
  min-width: 21px;
}

.hp-public-star-hit {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hp-public-rating-control:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.28);
  border-radius: 10px;
}

.hp-public-rating-value {
  min-width: 42px;
  color: #4b5563;
  font-size: 12px;
  text-align: right;
  padding-right: 5px;
}

.hp-public-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 5px;
}

.hp-public-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 13px;
}

.hp-public-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid rgba(24, 28, 39, 0.35);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  position: relative;
  flex: 0 0 18px;
}

.hp-public-checkbox:checked {
  background: #f5b301;
  border-color: #d39a00;
}

.hp-public-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hp-public-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.24);
}

.hp-public-notes-wrap {
  display: block;
  margin-top: 10px;
}

.hp-public-notes-wrap > span {
  display: block;
  margin-bottom: 5px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hp-public-notes {
  width: 100%;
  min-height: 31px;
  height: 31px;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(24, 28, 39, 0.2);
  background: rgba(243, 244, 246, 0.95);
  color: #111827;
  padding: 5px 13px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.hp-public-notes::placeholder {
  color: #9ca3af;
}

.hp-public-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.hp-public-submit {
  min-width: 220px;
}

.hp-public-error-title,
.hp-public-success-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

@media (max-width: 900px) {
  .hp-public-shell {
    background: #fff;
    padding: 0 0 24px;
  }

  .btn-hodnotenie-pracovnikov {
    width: auto;
    min-width: auto;
    min-height: auto;
    height: auto;
    padding: 0;
    justify-content: center;
    font-size: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: #22c55e;
  }

  .btn-hodnotenie-pracovnikov svg {
    margin: 0;
    width: 13px;
    height: 13px;
  }

  .hp-public-card {
    width: 100%;
    padding: 0 16px 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .hp-public-person-card {
    padding: 14px;
    border: 1px solid rgba(24, 28, 39, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
  }

  .hp-public-person-head {
    padding: 0;
  }

  .hp-public-head-top {
    flex-direction: column;
    align-items: center;
  }

  .hp-public-lang-switch {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .hp-public-title {
    font-size: 22px;
    text-align: center;
  }

  .hp-public-head-text,
  .hp-public-subtitle,
  .hp-public-intro {
    text-align: center;
  }

  .hp-public-intro {
    margin: 10px 0 4px;
  }

  .hp-public-head {
    margin-bottom: 4px;
  }

  .hp-public-list {
    gap: 4px;
  }

  .hp-public-metric-list {
    grid-template-columns: 1fr;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
    background: transparent;
  }

  .hp-public-checkbox-row,
  .hp-public-notes-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hp-public-metric-cell {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 4px;
    padding: 6px 10px;
    min-height: 38px;
    border-right: none !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  }

  .hp-public-metric-cell:last-child {
    border-bottom: none;
  }

  .hp-public-rating-wrap {
    width: 105px;
    min-width: 105px;
    justify-content: flex-end;
    justify-self: end;
    margin-left: auto;
    gap: 0;
    transform: none;
  }

  .hp-public-metric-label {
    font-size: 13px;
    line-height: 1.3;
  }

  .hp-public-rating-control {
    width: 105px;
    height: 21px;
  }

  .hp-public-stars-visual {
    gap: 0;
  }

  .hp-public-stars-hits {
    gap: 0;
  }

  .hp-star {
    width: 21px;
    height: 21px;
    font-size: 20px;
  }

  .hp-public-star-hit-group {
    width: 21px;
    min-width: 21px;
  }

  .hp-public-rating-value {
    display: none;
  }

  .hp-public-lang-btn {
    min-height: 30px;
    padding: 0 5px;
    border-radius: 10px;
    gap: 4px;
    font-size: 11px;
  }

  .hp-public-lang-btn .fi {
    font-size: 16px;
  }

  .hp-share-head,
  .hp-share-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-btn-primary,
  .hp-btn-secondary,
  .hp-public-submit {
    width: 100%;
  }
}
