* {
  box-sizing: border-box;
}

.profile-hero {
  margin-bottom: 14px;
}

.profile-hero-main {
  display: grid;
  gap: 8px;
}

.profile-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.profile-admin-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.profile-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-center-wrap {
  display: grid;
  gap: 12px;
}

.profile-center-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.profile-center-tabs .tab {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.profile-edit-top-btn {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pc-tab-panel {
  border-top: 1px dashed #dccfb9;
  padding-top: 10px;
}

.pc-panel-title {
  font-size: 14px;
  color: #5f5342;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.profile-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1005;
  padding: 14px;
}

.profile-edit-modal.active {
  display: flex;
}

.profile-edit-dialog {
  width: min(560px, 100%);
  background: #fffdfa;
  border: 1px solid #ded4c2;
  padding: 14px;
}

#pcEditMsg {
  margin-top: 10px !important;
  padding: 10px 12px;
  border: 1px solid #d7c4a8;
  background: #fcf7ee;
  color: #4f4536;
  font-size: 14px;
  line-height: 1.6;
}

.pc-empty {
  color: #8a7d6a;
  font-size: 13px;
  padding: 4px 0;
}

.profile-reply-kind {
  border: 1px solid #d6c8b3;
  background: #f7f2e8;
  color: #6a5f4c;
  border-radius: 12px;
  font-size: 11px;
  padding: 2px 8px;
}

.profile-back-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.profile-back-link {
  border: none;
  background: transparent;
  color: #7a6f5c;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  line-height: 1.4;
}

.profile-back-link.disabled {
  color: #a0907a;
  text-decoration: none;
  cursor: default;
}

.pc-workbench-card {
  border: 1px solid #e4dbc9;
  background: #fffcf7;
  padding: 10px;
  margin-bottom: 10px;
}

.pc-workbench-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pc-workbench-select {
  min-width: 180px;
  flex: 1 1 200px;
}

.pc-workbench-title {
  font-size: 13px;
  color: #5f5342;
  letter-spacing: 0.06em;
}

.pc-workbench-empty {
  color: #8a7d6a;
  font-size: 13px;
  padding: 6px 0;
}

@media (max-width: 640px) {
  .profile-hero-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .profile-admin-actions {
    width: 100%;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .profile-edit-top-btn {
    width: auto;
    min-height: 36px;
    padding: 0 10px;
  }

  .profile-center-tabs .tab {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    letter-spacing: 0.04em;
    font-size: 12px;
  }

  .pc-workbench-select {
    min-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
}
