.p80-records-page .p80-record-card {
  min-width: 0;
  border: 1px solid var(--p80-line);
  background: #fff;
}

.p80-records-profile-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.p80-records-profile-head h2,
.p80-records-profile-head p {
  margin: 0;
}

.p80-records-profile-head h2 {
  color: var(--p80-text);
  font-size: 18px;
}

.p80-records-profile-head p {
  margin-top: 4px;
  color: var(--p80-muted);
  font-size: 13px;
}

.p80-profile-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.p80-profile-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.p80-profile-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.p80-profile-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.p80-profile-form-head h2,
.p80-profile-form-head p {
  margin: 0;
}

.p80-profile-form-head h2 {
  color: var(--p80-text);
  font-size: 20px;
}

.p80-profile-form-head p {
  margin-top: 6px;
  color: var(--p80-muted);
  font-size: 13px;
}

.p80-profile-dialog-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.p80-profile-form > label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.p80-profile-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
}

.p80-profile-form input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
}

.p80-profile-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--p80-muted);
  font-size: 13px;
}

.p80-profile-form-status[data-state="success"] { color: #15803d; }
.p80-profile-form-status[data-state="warning"] { color: #b45309; }
.p80-profile-form-status[data-state="error"] { color: #b91c1c; }

.p80-profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.p80-records-page .p80-record-card h3 {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.p80-records-page .p80-record-meta {
  min-height: 44px;
}

.p80-records-page .p80-record-action-unavailable {
  align-self: end;
  justify-self: start;
  color: var(--p80-muted);
  font-size: 13px;
  font-weight: 800;
}

.p80-records-page .p80-records-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 36px 24px;
  text-align: center;
}

.p80-records-page .p80-records-empty h3 {
  max-width: 620px;
  margin: 0;
  color: var(--p80-text);
  font-size: 17px;
  line-height: 1.6;
}

.p80-records-page .p80-records-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.p80-records-page .p80-records-empty-actions .p80-btn,
.p80-records-page .p80-recap-item .p80-btn {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.p80-records-page .p80-recap-item {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
}

.p80-records-page .p80-recap-attempt {
  margin-top: -7px;
  color: var(--p80-muted);
  overflow-wrap: anywhere;
}

.p80-records-page .p80-recap-reasons {
  width: 100%;
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
}

.p80-records-page .p80-recap-reasons > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--p80-text);
  font-size: 13px;
}

.p80-records-page .p80-recap-reasons ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.p80-records-page .p80-recap-reasons li,
.p80-records-page .p80-recap-reasons-empty {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.p80-records-page .p80-recap-item p {
  margin-bottom: 14px;
}

.p80-records-page .p80-recap-item .p80-btn {
  margin-top: auto;
}

.p80-records-page [data-records-recap-section][hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .p80-records-page .p80-recap-grid {
    grid-template-columns: 1fr;
  }

  .p80-records-page .p80-record-meta {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .p80-records-profile-head {
    align-items: stretch;
    flex-direction: column;
  }

  .p80-records-profile-head .p80-btn,
  .p80-profile-form-actions .p80-btn {
    width: 100%;
  }

  .p80-profile-form {
    padding: 20px 16px;
  }

  .p80-profile-form-actions {
    flex-direction: column-reverse;
  }

  .p80-records-page .p80-records-empty {
    padding: 28px 16px;
  }

  .p80-records-page .p80-records-empty-actions {
    width: 100%;
    flex-direction: column;
  }

  .p80-records-page .p80-records-empty-actions .p80-btn {
    width: 100%;
  }
}
