.points-page {
  background: #f3f6fa;
  color: #172b45;
}
.points-page [hidden] {
  display: none !important;
}
.points-header,
.points-shell {
  max-width: 1200px;
  margin: auto;
  padding: 22px 24px;
}
.points-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.points-header h1 {
  font-size: 25px;
  margin: 0 0 5px;
}
.points-header p,
.points-hint {
  color: #63758c;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.points-header nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.points-header a {
  color: #176bc0;
  text-decoration: none;
}
.points-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.points-page label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: #3d516c;
}
.points-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.points-page input,
.points-page select,
.points-page textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  background: white;
  color: #172b45;
  font: inherit;
}
.points-page input[type="checkbox"] {
  width: auto;
  accent-color: #0877d8;
}
.points-page textarea {
  resize: vertical;
  min-height: 85px;
}
.points-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.points-tabs button {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: white;
  padding: 10px 17px;
  cursor: pointer;
  color: #50617a;
  font: inherit;
}
.points-tabs button.active {
  background: #0877d8;
  color: white;
  border-color: #0877d8;
}
.points-panel {
  background: white;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.points-panel h2 {
  font-size: 19px;
  margin: 0 0 15px;
}
.points-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.points-card {
  background: white;
  border: 1px solid #e0e7f0;
  border-radius: 10px;
  padding: 19px;
}
.points-card span {
  font-size: 14px;
  color: #63758c;
}
.points-card strong {
  display: block;
  font-size: 29px;
  margin-top: 10px;
  color: #176bc0;
}
.points-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.points-page .btn {
  cursor: pointer;
}
.points-page .btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.points-table-wrap {
  overflow-x: auto;
}
.points-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}
.points-table th {
  text-align: left;
  background: #f6f9fc;
  color: #62748c;
  font-weight: 500;
}
.points-table td,
.points-table th {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf3;
  font-size: 14px;
}
.points-table td {
  vertical-align: top;
}
.points-table .btn {
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.points-empty {
  padding: 35px 10px;
  text-align: center;
  color: #718299;
}
.points-badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  background: #edf3fa;
  color: #4b6480;
}
.points-badge.approved {
  background: #e6f6ed;
  color: #187449;
}
.points-badge.pending {
  background: #fff3da;
  color: #946400;
}
.points-badge.rejected,
.points-error {
  color: #ad3333;
  background: #fff0ef;
}
.points-page dialog {
  border: 0;
  border-radius: 12px;
  width: min(650px, calc(100% - 32px));
  padding: 0;
  max-height: 90dvh;
  box-shadow: 0 20px 80px #172b4540;
}
.points-page dialog::backdrop {
  background: #11243d66;
}
.points-page #dialogContent {
  padding: 25px;
}
.points-page dialog h2 {
  margin: 0 0 20px;
  font-size: 21px;
}
.points-form {
  display: grid;
  gap: 17px;
}
.points-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.points-check {
  display: flex !important;
  align-items: start;
  gap: 8px !important;
  line-height: 1.7;
}
.points-inline-error {
  margin: 0;
  color: #b63030;
  font-size: 14px;
  white-space: pre-wrap;
}
.points-detail {
  display: grid;
  gap: 13px;
  overflow-wrap: anywhere;
}
.points-detail p {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.75;
}
.points-detail dt {
  color: #6a7b90;
  font-size: 13px;
  margin-bottom: 3px;
}
.points-detail dd {
  margin: 0;
}
.points-publication {
  padding: 22px 0;
  border-bottom: 1px solid #e5ecf2;
}
.points-publication:last-child {
  border: 0;
}
.points-publication h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.points-publication p {
  white-space: pre-wrap;
  line-height: 1.8;
}
.points-publication .points-score {
  color: #14764d;
  font-size: 17px;
}
.points-notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 7px;
  background: #e7f4ec;
  color: #21623d;
  line-height: 1.7;
}
.points-error {
  background: #fff0ef;
  color: #ad3333;
}
.points-note {
  padding: 12px 0;
  color: #8c640e;
  line-height: 1.7;
}
.points-page h3 {
  font-size: 16px;
}
.points-page :focus-visible {
  outline: 3px solid #87bef7;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .points-header {
    display: block;
    padding: 20px 16px;
  }
  .points-header nav {
    margin-top: 16px;
    gap: 14px;
    font-size: 14px;
  }
  .points-shell {
    padding: 18px 12px;
  }
  .points-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .points-card:last-child {
    grid-column: 1/-1;
  }
  .points-card {
    padding: 15px;
  }
  .points-card strong {
    font-size: 25px;
  }
  .points-panel {
    padding: 18px 14px;
  }
  .points-toolbar {
    align-items: end;
    gap: 10px;
  }
  .points-toolbar label {
    display: grid;
  }
  .points-tabs {
    gap: 6px;
  }
  .points-tabs button {
    font-size: 14px;
    padding: 9px 11px;
  }
  .points-form-grid {
    grid-template-columns: 1fr;
  }
  .points-page #dialogContent {
    padding: 21px 17px;
  }
  .points-page .points-actions .btn {
    min-height: 38px;
  }
  .points-header h1 {
    font-size: 23px;
  }
}
.points-header,
.points-shell {
  width: 100%;
  min-width: 0;
}
.points-page .points-shell {
  margin: 0 auto;
  padding-bottom: 60px;
}
.points-page dialog {
  margin: auto;
}
.points-toolbar label {
  white-space: nowrap;
}
.points-toolbar input {
  width: auto;
}
.points-panel ul {
  padding-left: 22px;
  line-height: 1.8;
  color: #63758c;
}
